aboutsummaryrefslogtreecommitdiff
path: root/scummvm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scummvm.cpp')
-rw-r--r--scummvm.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/scummvm.cpp b/scummvm.cpp
index e6b23a1b20..e99a2992a7 100644
--- a/scummvm.cpp
+++ b/scummvm.cpp
@@ -22,6 +22,7 @@
#include "stdafx.h"
#include "scumm.h"
#include "gui.h"
+#include "string.h"
void Scumm::initRandSeeds() {
_randSeed1 = 0xA943DE35;
@@ -192,6 +193,8 @@ void Scumm::scummMain(int argc, char **argv) {
_maxHeapThreshold = 450000;
_minHeapThreshold = 400000;
+
+ _gameDataPath = NULL;
parseCommandLine(argc, argv);
@@ -203,6 +206,10 @@ void Scumm::scummMain(int argc, char **argv) {
_features = GF_DEFAULT;
}
+ if (!_gameDataPath) {
+ warning("No path was provided. Assuming that data file are in the current directory");
+ }
+
if(_features & GF_AFTER_V7)
setupScummVarsNew();
else
@@ -401,12 +408,15 @@ void Scumm::parseCommandLine(int argc, char **argv) {
case 'v':
printf("ScummVM " SCUMMVM_VERSION "\nBuilt on " __DATE__ " " __TIME__ "\n");
exit(1);
+ case 'p':
+ _gameDataPath = argv[++i];
+ break;
default:
ShowHelpAndExit:;
printf(
"ScummVM - Scumm Interpreter\n"
"Syntax:\n"
- "\tscummvm [-b<num>] game\n"
+ "\tscummvm [-b<num>] [-p path] game\n"
"Flags:\n"
"\tb<num> - start in that room\n"
"\tf - fullscreen mode\n");