Fixed windows compilation

This commit is contained in:
KiritoDv
2024-02-21 21:05:28 -06:00
parent b8bcb110c2
commit 1682451d2e
3 changed files with 6 additions and 1 deletions
+4
View File
@@ -1,6 +1,10 @@
#include <stdio.h>
#include <stdlib.h>
#if defined(_WIN32) || defined(_WIN64)
#include <string.h>
#else
#include <strings.h>
#endif
#define STBI_NO_LINEAR
#define STBI_NO_HDR
+1
View File
@@ -152,6 +152,7 @@ LICENSE
#define INCLUDE_STB_IMAGE_WRITE_H
#include <stdlib.h>
#include <stdint.h>
// if STB_IMAGE_WRITE_STATIC causes problems, try defining STBIWDEF to 'inline' or 'static inline'
#ifndef STBIWDEF
+1 -1
View File
@@ -192,7 +192,7 @@ void Companion::ParseModdingConfig() {
if(!fs::exists(path)) {
throw std::runtime_error("No modding config found, please run in export mode first");
}
auto modding = YAML::LoadFile(path);
auto modding = YAML::LoadFile(path.string());
for(auto assets = modding["assets"].begin(); assets != modding["assets"].end(); ++assets) {
auto name = assets->first.as<std::string>();
auto asset = assets->second.as<std::string>();