Windows issues (#13)

* Fix build errors in MSVS.

* Fixes issues in types for light factory.
This commit is contained in:
Kenix3
2023-11-17 08:39:13 -06:00
committed by GitHub
parent 0700ca68b1
commit a71c9b187f
3 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -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;
+1
View File
@@ -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>
+3 -3
View File
@@ -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);