git repos / blockattack-game

commit dddcbb9c

sago007 · 2019-04-25 18:03
dddcbb9c141fd912eb8a51c98e031c4c7dfde270 patch · browse files
parent 9aac65b6994c461a1868f1a1a28198d9a8b03c84

It turns out that the search order has always been exactly the opposite of that it should be

Changed files

M source/code/main.cpp before
diff --git a/source/code/main.cpp b/source/code/main.cpp index 17c14aa..157b179 100644 --- a/source/code/main.cpp +++ b/source/code/main.cpp
@@ -98,9 +98,9 @@ static void FsSearchParthMainAppend(std::vector<std::string>& paths) {
static void PhysFsSetSearchPath(const vector<string>& paths, const string& savepath) {
for (const string& path : paths) {
- PHYSFS_mount(path.c_str(), "/", 1);
+ PHYSFS_mount(path.c_str(), "/", 0);
}
- PHYSFS_mount(savepath.c_str(), "/", 1);
+ PHYSFS_mount(savepath.c_str(), "/", 0);
PHYSFS_setWriteDir(savepath.c_str());
}