Skip to content

Commit

Permalink
changed data.zip path to be in same folder as user data, fixed make_o…
Browse files Browse the repository at this point in the history
…pk script
  • Loading branch information
Jakz committed Mar 9, 2021
1 parent 10bb933 commit 9b5577e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
8 changes: 4 additions & 4 deletions desktop_version/make_opk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ OPK_NAME=vvvvvv.opk
echo ${OPK_NAME}

# create default.gcw0.desktop
cat > default.gcw0.desktop <<EOF
cat > default.funkey-s.desktop <<EOF
[Desktop Entry]
Name=VVVVVV
Comment=2D puzzle platformer created by Terry Cavanagh
Expand All @@ -19,11 +19,11 @@ EOF

# create opk
FLIST="build/vvvvvv.x86"
FLIST="${FLIST} default.gcw0.desktop"
FLIST="${FLIST} default.funkey-s.desktop"
FLIST="${FLIST} vvvvvv.png"

rm -f ${OPK_NAME}
mksquashfs ${FLIST} ${OPK_NAME} -all-root -no-xattrs -noappend -no-exports

cat default.gcw0.desktop
rm -f default.gcw0.desktop
cat default.funkey-s.desktop
rm -f default.funkey-s.desktop
5 changes: 3 additions & 2 deletions desktop_version/src/FileSystemUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,12 @@ void FILESYSTEM_init(char *argvZero)
strcpy(output, PHYSFS_getBaseDir());
strcat(output, "data.zip");
#else
strcpy(output, "data.zip");
PLATFORM_getOSDirectory(output);
strcat(output, "data.zip");
#endif
if (!PHYSFS_mount(output, NULL, 1))
{
printf("data.zip missing!\n");
printf("data.zip is missing! Place it in %s\n", output);
abort();
}
}
Expand Down

0 comments on commit 9b5577e

Please sign in to comment.