mirror of
https://github.com/izzy2lost/Torch.git
synced 2026-07-06 00:18:35 -07:00
Windows issues (#13)
* Fix build errors in MSVS. * Fixes issues in types for light factory.
This commit is contained in:
+1
-1
@@ -329,7 +329,7 @@ void Companion::Process() {
|
||||
std::ofstream file(output, std::ios::binary);
|
||||
|
||||
if(gExporterType == ExportType::Header) {
|
||||
std::string symbol = entry.path().stem();
|
||||
std::string symbol = entry.path().stem().string();
|
||||
std::transform(symbol.begin(), symbol.end(), symbol.begin(), toupper);
|
||||
file << "#ifndef " << symbol << "_H" << std::endl;
|
||||
file << "#define " << symbol << "_H" << std::endl << std::endl;
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
#include <string>
|
||||
#include <optional>
|
||||
#include <yaml-cpp/yaml.h>
|
||||
#include <strhash64/StrHash64.h>
|
||||
#include <binarytools/BinaryWriter.h>
|
||||
|
||||
@@ -68,9 +68,9 @@ std::optional<std::shared_ptr<IParsedData>> LightsFactory::parse(std::vector<uin
|
||||
// Directional light
|
||||
|
||||
// Ambient
|
||||
auto r = reader.ReadInt8();
|
||||
auto g = reader.ReadInt8();
|
||||
auto b = reader.ReadInt8();
|
||||
auto r = (uint8_t)reader.ReadInt8();
|
||||
auto g = (uint8_t)reader.ReadInt8();
|
||||
auto b = (uint8_t)reader.ReadInt8();
|
||||
//auto nil = reader.ReadInt32();
|
||||
reader.Seek(5, LUS::SeekOffsetType::Current);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user