From 90f47c7b1d9725c13d972a0e2a61b2cd966bbab5 Mon Sep 17 00:00:00 2001
From: dhewg
Date: Sat, 9 Apr 2011 18:28:02 +0200
Subject: ANDOID: Replace mkmanifest.pl with sh/sed code
Removes build dependencies like perl and its XML modules
---
dists/android/mkmanifest.pl | 170 -----------------------------------
dists/android/mkplugin.sh | 17 ++++
dists/android/plugin-manifest.xml | 35 ++++++++
dists/android/plugin-manifest.xml.in | 35 ++++++++
dists/android/plugin-strings.xml | 7 ++
5 files changed, 94 insertions(+), 170 deletions(-)
delete mode 100755 dists/android/mkmanifest.pl
create mode 100755 dists/android/mkplugin.sh
create mode 100644 dists/android/plugin-manifest.xml
create mode 100644 dists/android/plugin-manifest.xml.in
create mode 100644 dists/android/plugin-strings.xml
(limited to 'dists')
diff --git a/dists/android/mkmanifest.pl b/dists/android/mkmanifest.pl
deleted file mode 100755
index 62caa64a55..0000000000
--- a/dists/android/mkmanifest.pl
+++ /dev/null
@@ -1,170 +0,0 @@
-#!/usr/bin/perl
-
-use File::Basename qw(dirname);
-use File::Path qw(mkpath);
-use IO::File;
-use XML::Writer;
-use XML::Parser;
-use Getopt::Long;
-
-use warnings;
-use strict;
-
-use constant ANDROID => 'http://schemas.android.com/apk/res/android';
-
-my $id;
-my $package_versionName;
-my $package_versionCode;
-my $configure = 'configure';
-my $stringres = 'res/string/values.xml';
-my $manifest = 'AndroidManifest.xml';
-my $master_manifest;
-my @unpack_libs;
-GetOptions('id=s' => \$id,
- 'version-name=s' => \$package_versionName,
- 'version-code=i' => \$package_versionCode,
- 'configure=s' => \$configure,
- 'stringres=s' => \$stringres,
- 'manifest=s' => \$manifest,
- 'master-manifest=s' => \$master_manifest,
- 'unpacklib=s' => \@unpack_libs,
- ) or die;
-die "Missing required arg"
- unless $id and $package_versionName and $package_versionCode;
-
-
-sub grope_engine_info {
- my $configure = shift;
- my @ret;
- while (<$configure>) {
- m/^add_engine \s+ (\w+) \s+ "(.*?)" \s+ \w+ (?:\s+ "([\w\s]*)")?/x
- or next;
- my $subengines = $3 || '';
- my %info = (id => $1, name => $2,
- subengines => [split / /, $subengines]);
- push @ret, \%info;
- }
- return @ret;
-}
-
-sub read_constraints {
- my $manifest = shift;
- my @constraints;
- my $parser = new XML::Parser Handlers => {
- Start => sub {
- my $expat = shift;
- my $elem = shift;
- return if $elem !~
- /^(uses-configuration|supports-screens|uses-sdk)$/;
- my @constraint = ($elem);
- while (@_) {
- my $attr = shift;
- my $value = shift;
- $attr = [ANDROID, $attr] if $attr =~ s/^android://;
- push @constraint, $attr, $value;
- }
- push @constraints, \@constraint;
- },
- };
- $parser->parse($manifest);
- return @constraints;
-}
-
-sub print_stringres {
- my $output = shift;
- my $info = shift;
-
- my $writer = new XML::Writer(OUTPUT => $output, ENCODING => 'utf-8',
- DATA_MODE => 1, DATA_INDENT => 2);
-
- $writer->xmlDecl();
- $writer->startTag('resources');
-
- while (my ($k,$v) = each %$info) {
- $writer->dataElement('string', $v, name => $k);
- }
-
- $writer->endTag('resources');
- $writer->end();
-}
-
-sub print_manifest {
- my $output = shift;
- my $info = shift;
- my $constraints = shift;
-
- my $writer = new XML::Writer(OUTPUT => $output, ENCODING => 'utf-8',
- DATA_MODE => 1, DATA_INDENT => 2,
- NAMESPACES => 1,
- PREFIX_MAP => {ANDROID, 'android'});
-
- $writer->xmlDecl();
-
- $writer->startTag(
- 'manifest',
- 'package' => "org.inodes.gus.scummvm.plugin.$info->{name}",
- [ANDROID, 'versionCode'] => $package_versionCode,
- [ANDROID, 'versionName'] => $package_versionName,
- [ANDROID, 'installLocation'] => 'preferExternal',
- );
-
- $writer->startTag(
- 'application',
- [ANDROID, 'label'] => '@string/app_name',
- [ANDROID, 'description'] => '@string/app_desc',
- [ANDROID, 'icon'] => '@drawable/scummvm',
- );
-
- $writer->startTag(
- 'receiver',
- [ANDROID, 'name'] => 'org.inodes.gus.scummvm.PluginProvider',
- [ANDROID, 'process'] => 'org.inodes.gus.scummvm');
-
- $writer->startTag('intent-filter');
- $writer->emptyTag('action', [ANDROID, 'name'] =>
- 'org.inodes.gus.scummvm.action.PLUGIN_QUERY');
- $writer->emptyTag('category', [ANDROID, 'name'] =>
- 'android.intent.category.INFO');
- $writer->endTag('intent-filter');
- $writer->emptyTag(
- 'meta-data',
- [ANDROID, 'name'] => 'org.inodes.gus.scummvm.meta.UNPACK_LIB',
- [ANDROID, 'value'] => $_)
- for @{$info->{unpack_libs}};
-
- $writer->endTag('receiver');
- $writer->endTag('application');
-
- $writer->emptyTag('uses-permission', [ANDROID, 'name'] =>
- 'org.inodes.gus.scummvm.permission.SCUMMVM_PLUGIN');
-
- $writer->emptyTag(@$_) foreach @$constraints;
-
- $writer->endTag('manifest');
- $writer->end();
-}
-
-
-my %engines;
-for my $engine (grope_engine_info(new IO::File $configure, 'r')) {
- $engines{$engine->{id}} = $engine;
-}
-
-my @games = ($id, @{$engines{$id}{subengines}});
-my $games_desc = join('; ', map $engines{$_}{name}, @games);
-
-my @constraints = read_constraints(new IO::File $master_manifest, 'r');
-
-print "Writing $stringres ...\n";
-mkpath(dirname($stringres));
-print_stringres(IO::File->new($stringres, 'w'),
- {app_name => qq{ScummVM plugin: "$id"},
- app_desc => "Game engine for: $games_desc",
- });
-
-print "Writing $manifest ...\n";
-mkpath(dirname($manifest));
-print_manifest(IO::File->new($manifest, 'w'),
- {name => $id, unpack_libs => \@unpack_libs}, \@constraints);
-
-exit 0;
diff --git a/dists/android/mkplugin.sh b/dists/android/mkplugin.sh
new file mode 100755
index 0000000000..f4643132cf
--- /dev/null
+++ b/dists/android/mkplugin.sh
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+if [ $# -ne 5 ]; then
+ echo "usage: $0 configure plugin template versioncode target"
+ exit 1
+fi
+
+CONFIGURE=$1
+PLUGIN_NAME=$2
+TEMPLATE=$3
+PLUGIN_VERSION_CODE=$4
+TARGET=$5
+
+PLUGIN_DESC=`sed -n s/add_engine\s$PLUGIN_NAME\s\"\(.\+\)\"\s.*/\1/p` < $CONFIGURE
+
+sed "s|@PLUGIN_NAME@|$PLUGIN_NAME|;s|@PLUGIN_VERSION_CODE@|$PLUGIN_VERSION_CODE|;s|@PLUGIN_DESC@|$PLUGIN_DESC|" < $TEMPLATE > $TARGET
+
diff --git a/dists/android/plugin-manifest.xml b/dists/android/plugin-manifest.xml
new file mode 100644
index 0000000000..2442d3f32a
--- /dev/null
+++ b/dists/android/plugin-manifest.xml
@@ -0,0 +1,35 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/dists/android/plugin-manifest.xml.in b/dists/android/plugin-manifest.xml.in
new file mode 100644
index 0000000000..c941b2f48c
--- /dev/null
+++ b/dists/android/plugin-manifest.xml.in
@@ -0,0 +1,35 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/dists/android/plugin-strings.xml b/dists/android/plugin-strings.xml
new file mode 100644
index 0000000000..363503f8d8
--- /dev/null
+++ b/dists/android/plugin-strings.xml
@@ -0,0 +1,7 @@
+
+
+
+ ScummVM plugin: "@PLUGIN_NAME@"
+ Game engine for: @PLUGIN_DESC@
+
+
--
cgit v1.2.3
From b0351e1b85a550ec4f2422d4439e5ce17150f5a3 Mon Sep 17 00:00:00 2001
From: dhewg
Date: Sat, 9 Apr 2011 18:37:06 +0200
Subject: ANDROID: Automate the Manifest's versionCode
---
dists/android/AndroidManifest.xml | 2 +-
dists/android/AndroidManifest.xml.in | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
(limited to 'dists')
diff --git a/dists/android/AndroidManifest.xml b/dists/android/AndroidManifest.xml
index 68c58d9aea..cae1f369e7 100644
--- a/dists/android/AndroidManifest.xml
+++ b/dists/android/AndroidManifest.xml
@@ -3,7 +3,7 @@
diff --git a/dists/android/AndroidManifest.xml.in b/dists/android/AndroidManifest.xml.in
index 7a75b6fd0b..a8d40bdddc 100644
--- a/dists/android/AndroidManifest.xml.in
+++ b/dists/android/AndroidManifest.xml.in
@@ -3,7 +3,7 @@
--
cgit v1.2.3
From 6cf1de87acdb878e3a3e4ef7cc33d45adee4a592 Mon Sep 17 00:00:00 2001
From: Max Horn
Date: Sat, 9 Apr 2011 23:47:35 +0200
Subject: DEVTOOLS: Renamed 'tools' directory to 'devtools'
---
dists/msvc10/readme.txt | 2 +-
dists/msvc8/readme.txt | 2 +-
dists/msvc9/readme.txt | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
(limited to 'dists')
diff --git a/dists/msvc10/readme.txt b/dists/msvc10/readme.txt
index be7b8a4db5..fa077fa485 100644
--- a/dists/msvc10/readme.txt
+++ b/dists/msvc10/readme.txt
@@ -1,5 +1,5 @@
The Visual Studio project files can now be created automatically from the GCC
-files using the create_project tool inside the /tools/create_project folder.
+files using the create_project tool inside the /devtools/create_project folder.
To create the default project files, build create_project.exe, copy it inside
this folder and run the create_msvc10.bat file for a default build. You can run
diff --git a/dists/msvc8/readme.txt b/dists/msvc8/readme.txt
index 461e5c9bd5..95b55e973a 100644
--- a/dists/msvc8/readme.txt
+++ b/dists/msvc8/readme.txt
@@ -1,5 +1,5 @@
The Visual Studio project files can now be created automatically from the GCC
-files using the create_project tool inside the /tools/create_project folder.
+files using the create_project tool inside the /devtools/create_project folder.
To create the default project files, build create_project.exe, copy it inside
this folder and run the create_msvc8.bat file for a default build. You can run
diff --git a/dists/msvc9/readme.txt b/dists/msvc9/readme.txt
index 059c9e556b..410b8ea403 100644
--- a/dists/msvc9/readme.txt
+++ b/dists/msvc9/readme.txt
@@ -1,5 +1,5 @@
The Visual Studio project files can now be created automatically from the GCC
-files using the create_project tool inside the /tools/create_project folder.
+files using the create_project tool inside the /devtools/create_project folder.
To create the default project files, build create_project.exe, copy it inside
this folder and run the create_msvc9.bat file for a default build. You can run
--
cgit v1.2.3
From 7c5c6803abe774cd77dcc38dd4ede00e7eec76e4 Mon Sep 17 00:00:00 2001
From: Klaus Reimer
Date: Sun, 3 Apr 2011 00:01:26 +0200
Subject: WEBOS: Add webos backend
IPK can be built with "make webosrelease".
---
dists/webos/mojo/appinfo.json | 10 ++++++++++
dists/webos/mojo/icon.png | Bin 0 -> 3290 bytes
dists/webos/mojo/package.properties | 1 +
dists/webos/mojo/scummvmrc-default | 36 ++++++++++++++++++++++++++++++++++++
dists/webos/mojo/start | 27 +++++++++++++++++++++++++++
5 files changed, 74 insertions(+)
create mode 100644 dists/webos/mojo/appinfo.json
create mode 100644 dists/webos/mojo/icon.png
create mode 100644 dists/webos/mojo/package.properties
create mode 100644 dists/webos/mojo/scummvmrc-default
create mode 100755 dists/webos/mojo/start
(limited to 'dists')
diff --git a/dists/webos/mojo/appinfo.json b/dists/webos/mojo/appinfo.json
new file mode 100644
index 0000000000..1008dfe82c
--- /dev/null
+++ b/dists/webos/mojo/appinfo.json
@@ -0,0 +1,10 @@
+{
+ "id": "org.scummvm",
+ "version": "1.3.0001",
+ "vendor": "ScummVM Team",
+ "type": "pdk",
+ "main": "start",
+ "title": "ScummVM",
+ "icon": "icon.png",
+ "requiredMemory": 64
+}
diff --git a/dists/webos/mojo/icon.png b/dists/webos/mojo/icon.png
new file mode 100644
index 0000000000..eb9d8e37e7
Binary files /dev/null and b/dists/webos/mojo/icon.png differ
diff --git a/dists/webos/mojo/package.properties b/dists/webos/mojo/package.properties
new file mode 100644
index 0000000000..962e809ec6
--- /dev/null
+++ b/dists/webos/mojo/package.properties
@@ -0,0 +1 @@
+filemode.755=start,bin/scummvm
diff --git a/dists/webos/mojo/scummvmrc-default b/dists/webos/mojo/scummvmrc-default
new file mode 100644
index 0000000000..2961fb2733
--- /dev/null
+++ b/dists/webos/mojo/scummvmrc-default
@@ -0,0 +1,36 @@
+[scummvm]
+mute=false
+speech_volume=192
+native_mt32=false
+midi_gain=100
+talkspeed=60
+subtitles=true
+multi_midi=false
+fullscreen=true
+sfx_volume=192
+music_volume=192
+autosave_period=300
+music_driver=auto
+opl_driver=auto
+aspect_ratio=false
+versioninfo=1.0.0
+speech_mute=false
+enable_gs=false
+browser_lastpath=/media/internal/ScummVM/Games
+themepath=/media/internal/ScummVM/Themes
+savepath=/media/internal/ScummVM/Saves
+extrapath=/media/internal/ScummVM/Extras
+pluginspath=/media/internal/ScummVM/Plugins
+vkeybdpath=/media/cryptofs/apps/usr/palm/applications/org.scummvm/share/scummvm
+
+[keymapper]
+keymap_global_VIRT=C+k
+keymap_global_SKCT=A+ESCAPE
+keymap_global_REMP=AT
+keymap_global_MENU=A+FORWARD
+keymap_gui_CLOS=A+ESCAPE
+keymap_gui_CLIK=RETURN
+keymap_global_PAUS=SPACE
+keymap_global_SKLI=PERIOD
+keymap_gui_VIRT=C+k
+keymap_gui_REMP=AT
diff --git a/dists/webos/mojo/start b/dists/webos/mojo/start
new file mode 100755
index 0000000000..5a338e0b62
--- /dev/null
+++ b/dists/webos/mojo/start
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+# Get app directory
+APPDIR=$(readlink -f $(dirname $0))
+
+# 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
+
+# Install default configuration file if not already present
+if [ ! -f $APPDIR/scummvmrc ]
+then
+ cp $APPDIR/scummvmrc-default $APPDIR/scummvmrc
+fi
+
+# Change into the screenshots directory so screenshots are saved there
+cd /media/internal/ScummVM/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
--
cgit v1.2.3
From ba97f8daf32027e0d0f0884615a69fa4f5133796 Mon Sep 17 00:00:00 2001
From: Klaus Reimer
Date: Wed, 6 Apr 2011 22:48:20 +0200
Subject: WEBOS: Correct package name, fix default key mapping
---
dists/webos/mojo/appinfo.json | 2 +-
dists/webos/mojo/scummvmrc-default | 20 ++++++++++----------
2 files changed, 11 insertions(+), 11 deletions(-)
(limited to 'dists')
diff --git a/dists/webos/mojo/appinfo.json b/dists/webos/mojo/appinfo.json
index 1008dfe82c..00762c9410 100644
--- a/dists/webos/mojo/appinfo.json
+++ b/dists/webos/mojo/appinfo.json
@@ -1,5 +1,5 @@
{
- "id": "org.scummvm",
+ "id": "org.scummvm.scummvm",
"version": "1.3.0001",
"vendor": "ScummVM Team",
"type": "pdk",
diff --git a/dists/webos/mojo/scummvmrc-default b/dists/webos/mojo/scummvmrc-default
index 2961fb2733..e71f0fb799 100644
--- a/dists/webos/mojo/scummvmrc-default
+++ b/dists/webos/mojo/scummvmrc-default
@@ -24,13 +24,13 @@ pluginspath=/media/internal/ScummVM/Plugins
vkeybdpath=/media/cryptofs/apps/usr/palm/applications/org.scummvm/share/scummvm
[keymapper]
-keymap_global_VIRT=C+k
-keymap_global_SKCT=A+ESCAPE
-keymap_global_REMP=AT
-keymap_global_MENU=A+FORWARD
-keymap_gui_CLOS=A+ESCAPE
-keymap_gui_CLIK=RETURN
-keymap_global_PAUS=SPACE
-keymap_global_SKLI=PERIOD
-keymap_gui_VIRT=C+k
-keymap_gui_REMP=AT
+keymap_global_MEN=FORWARD
+keymap_gui_VIR=C+k
+keymap_global_SKL=PERIOD
+keymap_global_SKC=ESCAPE
+keymap_gui_REM=AT
+keymap_global_PAU=SPACE
+keymap_gui_CLO=ESCAPE
+keymap_gui_CLI=RETURN
+keymap_global_VIR=C+k
+keymap_global_REM=AT
--
cgit v1.2.3
From 2160ecfe3a81eb9ab4fff9b5ac1b2c96200d3a07 Mon Sep 17 00:00:00 2001
From: Klaus Reimer
Date: Sun, 3 Apr 2011 23:28:04 +0200
Subject: WEBOS: Disable vkeybd, fix more directory references with wrong
package name
The vkeybd XML can't be read for some reason.
---
dists/webos/mojo/scummvmrc-default | 4 ++--
dists/webos/mojo/start | 3 +++
2 files changed, 5 insertions(+), 2 deletions(-)
(limited to 'dists')
diff --git a/dists/webos/mojo/scummvmrc-default b/dists/webos/mojo/scummvmrc-default
index e71f0fb799..d29a0fc6db 100644
--- a/dists/webos/mojo/scummvmrc-default
+++ b/dists/webos/mojo/scummvmrc-default
@@ -1,4 +1,5 @@
[scummvm]
+gui_theme=scummmodern
mute=false
speech_volume=192
native_mt32=false
@@ -13,7 +14,6 @@ autosave_period=300
music_driver=auto
opl_driver=auto
aspect_ratio=false
-versioninfo=1.0.0
speech_mute=false
enable_gs=false
browser_lastpath=/media/internal/ScummVM/Games
@@ -21,7 +21,7 @@ themepath=/media/internal/ScummVM/Themes
savepath=/media/internal/ScummVM/Saves
extrapath=/media/internal/ScummVM/Extras
pluginspath=/media/internal/ScummVM/Plugins
-vkeybdpath=/media/cryptofs/apps/usr/palm/applications/org.scummvm/share/scummvm
+vkeybdpath=/media/cryptofs/apps/usr/palm/applications/org.scummvm.scummvm/share/scummvm
[keymapper]
keymap_global_MEN=FORWARD
diff --git a/dists/webos/mojo/start b/dists/webos/mojo/start
index 5a338e0b62..55a7999502 100755
--- a/dists/webos/mojo/start
+++ b/dists/webos/mojo/start
@@ -17,6 +17,9 @@ then
cp $APPDIR/scummvmrc-default $APPDIR/scummvmrc
fi
+# Copy themes to theme directory
+cp -f $APPDIR/share/scummvm/*.zip /media/internal/ScummVM/Themes
+
# Change into the screenshots directory so screenshots are saved there
cd /media/internal/ScummVM/Screenshots
--
cgit v1.2.3
From 874ef4a73f0c5d4812df771c607dfe32ac599dd9 Mon Sep 17 00:00:00 2001
From: Klaus Reimer
Date: Sat, 9 Apr 2011 18:05:02 +0200
Subject: WEBOS: Add a README file
---
dists/webos/README.WebOS | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
create mode 100644 dists/webos/README.WebOS
(limited to 'dists')
diff --git a/dists/webos/README.WebOS b/dists/webos/README.WebOS
new file mode 100644
index 0000000000..3623cebdd1
--- /dev/null
+++ b/dists/webos/README.WebOS
@@ -0,0 +1,20 @@
+README for the WebOS port of ScummVM
+------------------------------------
+
+CONTROLS
+
+ Touchscreen
+
+ The touchscreen operates like a touchpad. The mouse cursor is independent
+ of the touched point, it is moved relative to its current position.
+
+ Tap + movement: Mouse movement
+ Tap without movement: Left mouse button click
+ Tap held for >0.5s without movement: Right mouse button click
+ Tap held for >1s without movement: Middle mouse button click
+ Double Tap + movement: Drag and drop
+
+ Gesture area
+
+ Back gesture: Escape
+ Forward gesture: ScummVM menu
--
cgit v1.2.3
From 20863c761bda22ef34581db90231d09280c9a623 Mon Sep 17 00:00:00 2001
From: Klaus Reimer
Date: Sat, 9 Apr 2011 18:20:15 +0200
Subject: WEBOS: Add installation instructions to README
---
dists/webos/README.WebOS | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
(limited to 'dists')
diff --git a/dists/webos/README.WebOS b/dists/webos/README.WebOS
index 3623cebdd1..5947d86f20 100644
--- a/dists/webos/README.WebOS
+++ b/dists/webos/README.WebOS
@@ -1,6 +1,23 @@
README for the WebOS port of ScummVM
------------------------------------
+INSTALLATION
+
+ When starting ScummVM the first time on a WebOS device it creates the
+ following directory structure on the flash drive:
+
+ ScummVM/
+ Extras/
+ Games/
+ Plugins/
+ Saves/
+ Screenshots/
+ Themes/
+
+ To install the games switch your WebOS device to USB drive mode and copy
+ the game folders into the ScummVM/Games directory. Then start ScummVM,
+ click "Add game" and select the game folder.
+
CONTROLS
Touchscreen
--
cgit v1.2.3
From 872e6f9b8c475700fdb79eed033fccb37dd3b75f Mon Sep 17 00:00:00 2001
From: Klaus Reimer
Date: Sat, 9 Apr 2011 18:41:09 +0200
Subject: 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.
---
dists/webos/mojo/start | 26 ++++++++++++++------------
1 file changed, 14 insertions(+), 12 deletions(-)
mode change 100755 => 100644 dists/webos/mojo/start
(limited to 'dists')
diff --git a/dists/webos/mojo/start b/dists/webos/mojo/start
old mode 100755
new mode 100644
index 55a7999502..3bdb9a59d8
--- 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
--
cgit v1.2.3
From 2a2d65051da0edd6075da74b0adcb6e8c8469f3d Mon Sep 17 00:00:00 2001
From: Klaus Reimer
Date: Sat, 9 Apr 2011 18:42:14 +0200
Subject: WEBOS: Correct executable flag on start script
---
dists/webos/mojo/start | 0
1 file changed, 0 insertions(+), 0 deletions(-)
mode change 100644 => 100755 dists/webos/mojo/start
(limited to 'dists')
diff --git a/dists/webos/mojo/start b/dists/webos/mojo/start
old mode 100644
new mode 100755
--
cgit v1.2.3