[Scummvm-cvs-logs] SF.net SVN: scummvm: [29280] scummvm/trunk
sev at users.sourceforge.net
sev at users.sourceforge.net
Sun Oct 28 12:27:00 CET 2007
Revision: 29280
http://scummvm.svn.sourceforge.net/scummvm/?rev=29280&view=rev
Author: sev
Date: 2007-10-28 04:27:00 -0700 (Sun, 28 Oct 2007)
Log Message:
-----------
Implement FR #1775044: "set extrapath from commandline"
Modified Paths:
--------------
scummvm/trunk/README
scummvm/trunk/base/commandLine.cpp
Modified: scummvm/trunk/README
===================================================================
--- scummvm/trunk/README 2007-10-28 04:42:22 UTC (rev 29279)
+++ scummvm/trunk/README 2007-10-28 11:27:00 UTC (rev 29280)
@@ -735,6 +735,7 @@
-c, --config=CONFIG Use alternate configuration file
-p, --path=PATH Path to where the game is installed
+ --extrapath=PATH Extra path to additional game data
-x, --save-slot[=NUM] Savegame slot to load (default: autosave)
-f, --fullscreen Force full-screen mode
-F, --no-fullscreen Force windowed mode
Modified: scummvm/trunk/base/commandLine.cpp
===================================================================
--- scummvm/trunk/base/commandLine.cpp 2007-10-28 04:42:22 UTC (rev 29279)
+++ scummvm/trunk/base/commandLine.cpp 2007-10-28 11:27:00 UTC (rev 29280)
@@ -102,6 +102,7 @@
" acorn, amiga, atari, c64, fmtowns, nes, mac, pc,\n"
" pce, segacd, windows)\n"
" --savepath=PATH Path to where savegames are stored\n"
+ " --extrapath=PATH Extra path to additional game data\n"
" --soundfont=FILE Select the SoundFont for MIDI playback (only\n"
" supported by some MIDI drivers)\n"
" --multi-midi Enable combination Adlib and native MIDI\n"
@@ -471,6 +472,15 @@
}
END_OPTION
+ DO_LONG_OPTION("extrapath")
+ FilesystemNode path(option);
+ if (!path.exists()) {
+ usage("Non-existent extra path '%s'", option);
+ } else if (!path.isReadable()) {
+ usage("Non-readable extra path '%s'", option);
+ }
+ END_OPTION
+
DO_LONG_OPTION_INT("talkspeed")
END_OPTION
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list