Minor scons improvements and fix an error in MinGW build

This commit is contained in:
2017-09-16 22:36:43 -04:00
parent 39f11dddb5
commit 51c6bdd5ea
2 changed files with 6 additions and 3 deletions

View File

@@ -23,7 +23,7 @@ namespace ResMgr {
/// Each line in the file becomes one string in the resulting list.
/// (Empty lines are included too.)
template<> inline StringRsrc* resLoader<StringRsrc>::operator() (fs::path fpath) {
std::ifstream fin(fpath.c_str());
std::ifstream fin(fpath.string().c_str());
if(fin.fail()) {
std::cerr << std_fmterr << ": Error opening file";
throw xResMgrErr("Failed to load string list: " + fpath.string());