aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Reimer2011-04-09 18:41:09 +0200
committerMax Horn2011-04-12 11:11:18 +0200
commit872e6f9b8c475700fdb79eed033fccb37dd3b75f (patch)
treee2b798ef0c6baf43fbb386f829ed3eba3c22bfdc
parent20863c761bda22ef34581db90231d09280c9a623 (diff)
downloadscummvm-rg350-872e6f9b8c475700fdb79eed033fccb37dd3b75f.tar.gz
scummvm-rg350-872e6f9b8c475700fdb79eed033fccb37dd3b75f.tar.bz2
scummvm-rg350-872e6f9b8c475700fdb79eed033fccb37dd3b75f.zip
WEBOS: Move scummvmrc to ScummVM data directory
scummvmrc is now located in ScummVM data directory and no longer in app directory so it is accessible via USB drive mode.
-rw-r--r--backends/platform/webos/webos.cpp2
-rw-r--r--[-rwxr-xr-x]dists/webos/mojo/start26
2 files changed, 15 insertions, 13 deletions
diff --git a/backends/platform/webos/webos.cpp b/backends/platform/webos/webos.cpp
index 2f3cd3d9d2..7db17f4b9f 100644
--- a/backends/platform/webos/webos.cpp
+++ b/backends/platform/webos/webos.cpp
@@ -33,7 +33,7 @@ using namespace Common;
OSystem_SDL_WebOS::OSystem_SDL_WebOS()
:
- OSystem_POSIX("/media/cryptofs/apps/usr/palm/applications/org.scummvm.scummvm/scummvmrc") {
+ OSystem_POSIX() {
}
/**
diff --git a/dists/webos/mojo/start b/dists/webos/mojo/start
index 55a7999502..3bdb9a59d8 100755..100644
--- a/dists/webos/mojo/start
+++ b/dists/webos/mojo/start
@@ -1,30 +1,32 @@
#!/bin/sh
-# Get app directory
+# Setup directories
APPDIR=$(readlink -f $(dirname $0))
+SCUMMVMDIR=/media/internal/ScummVM
+
# Create the initial ScummVM directory structure
-mkdir -p /media/internal/ScummVM/Games
-mkdir -p /media/internal/ScummVM/Saves
-mkdir -p /media/internal/ScummVM/Screenshots
-mkdir -p /media/internal/ScummVM/Themes
-mkdir -p /media/internal/ScummVM/Extras
-mkdir -p /media/internal/ScummVM/Plugins
+mkdir -p $SCUMMVMDIR/Games
+mkdir -p $SCUMMVMDIR/Saves
+mkdir -p $SCUMMVMDIR/Screenshots
+mkdir -p $SCUMMVMDIR/Themes
+mkdir -p $SCUMMVMDIR/Extras
+mkdir -p $SCUMMVMDIR/Plugins
# Install default configuration file if not already present
-if [ ! -f $APPDIR/scummvmrc ]
+if [ ! -f $SCUMMVMDIR/scummvmrc ]
then
- cp $APPDIR/scummvmrc-default $APPDIR/scummvmrc
+ cp $APPDIR/scummvmrc-default $SCUMMVMDIR/scummvmrc
fi
# Copy themes to theme directory
-cp -f $APPDIR/share/scummvm/*.zip /media/internal/ScummVM/Themes
+cp -f $APPDIR/share/scummvm/*.zip $SCUMMVMDIR/Themes
# Change into the screenshots directory so screenshots are saved there
-cd /media/internal/ScummVM/Screenshots
+cd $SCUMMVMDIR/Screenshots
# Set library path so the app finds its custom shared libraries
export LD_LIBRARY_PATH=$APPDIR/lib
# Run the game
-exec $APPDIR/bin/scummvm -c $APPDIR/scummvmrc
+exec $APPDIR/bin/scummvm -c $SCUMMVMDIR/scummvmrc