mirror of
https://github.com/izzy2lost/Torch.git
synced 2026-07-06 00:18:35 -07:00
Fixed windows compilation
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
@@ -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>();
|
||||
|
||||
Reference in New Issue
Block a user