commit 72a9af2b
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();