git repos / saland

commit 72a9af2b

sago007 · 2020-12-31 13:57
72a9af2bca94d356b751f8a3a830cc188d4ec066 patch · browse files
parent e719e177b8df37b1c16f766c1b9344afa6f47d67

Place package in a sub folder to allow easier patching

Changed files

M packdata.sh before
M src/saland.cpp before
diff --git a/packdata.sh b/packdata.sh index 476a7f6..c3fad63 100755 --- a/packdata.sh +++ b/packdata.sh
@@ -1,5 +1,6 @@
#!/bin/bash
set -e
+mkdir -p packages
pushd data
-zip -9X ../saland.data $(find * | sort)
-popd
\ No newline at end of file
+zip -9X ../packages/saland-0001.data $(find * | sort)
+popd
diff --git a/src/saland.cpp b/src/saland.cpp index cfee652..4d21d7a 100644 --- a/src/saland.cpp +++ b/src/saland.cpp
@@ -265,7 +265,7 @@ void runGame() {
int main(int argc, char* argv[]) {
PHYSFS_init(argv[0]);
- PHYSFS_addToSearchPath((std::string(PHYSFS_getBaseDir())+"/saland.data").c_str(), 1);
+ PHYSFS_addToSearchPath((std::string(PHYSFS_getBaseDir())+"/packages/saland-0001.data").c_str(), 1);
PHYSFS_addToSearchPath((std::string(PHYSFS_getBaseDir())+"/data").c_str(), 1);
std::string savepath = getPathToSaveFiles();
OsCreateSaveFolder();