aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2004-04-12 22:37:54 +0000
committerEugene Sandulenko2004-04-12 22:37:54 +0000
commit728470074112062584b6ff9298bec2d36697b0a7 (patch)
tree1f3334b52e060181e4ae420a2b0c87280be20cd1
parent6055328d27f73f27c016eac414531b9c1081a41a (diff)
downloadscummvm-rg350-728470074112062584b6ff9298bec2d36697b0a7.tar.gz
scummvm-rg350-728470074112062584b6ff9298bec2d36697b0a7.tar.bz2
scummvm-rg350-728470074112062584b6ff9298bec2d36697b0a7.zip
File is not needed
svn-id: r13568
-rw-r--r--saga/cmdline.cpp95
-rw-r--r--saga/module.mk1
-rw-r--r--saga/reinherit.h16
3 files changed, 0 insertions, 112 deletions
diff --git a/saga/cmdline.cpp b/saga/cmdline.cpp
deleted file mode 100644
index 6848230190..0000000000
--- a/saga/cmdline.cpp
+++ /dev/null
@@ -1,95 +0,0 @@
-/* ScummVM - Scumm Interpreter
- * Copyright (C) 2004 The ScummVM project
- *
- * The ReInherit Engine is (C)2000-2003 by Daniel Balsom.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
-
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
-
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- *
- * $Header$
- *
- */
-/*
- Description:
-
- Command line parser
-
- Notes:
-
-*/
-
-#include "reinherit.h"
-
-namespace Saga {
-
-int R_ReadCommandLine(int argc, char **argv, R_EXECINFO * execinfo)
-{
-
- int arg;
- int intparam;
-
- for (arg = 1; arg < argc; arg++) {
-
- if (strcmp(argv[arg], "-scene") == 0) {
- arg++;
- if (arg <= argc) {
- intparam = atoi(argv[arg]);
- execinfo->start_scene = intparam;
- if (intparam == 0) {
- R_printf(R_STDERR,
- "Error: Invalid parameter to '-scene'.\n");
- return -1;
- }
- } else {
- R_printf(R_STDERR,
- "Error: '-scene' requires a parameter.\n");
- return -1;
- }
- }
-
- if (strcmp(argv[arg], "-gamedir") == 0) {
- arg++;
- if (arg <= argc) {
-
- execinfo->game_dir = argv[arg];
- } else {
- R_printf(R_STDERR,
- "Error: '-gamedir' requires a parameter.\n");
- return -1;
- }
- }
-
- if (strcmp(argv[arg], "-noverify") == 0) {
- execinfo->no_verify = 1;
- }
-
- if (strcmp(argv[arg], "-nosound") == 0) {
- execinfo->no_sound = 1;
- }
-
- if (strcmp(argv[arg], "-nomusic") == 0) {
- execinfo->no_music = 1;
- }
-
- if (strcmp(argv[arg], "-windowed") == 0) {
- execinfo->windowed = 1;
- }
-
- }
-
- return 0;
-
-}
-
-} // End of namespace Saga
diff --git a/saga/module.mk b/saga/module.mk
index 430a9912bc..f26b86bbb5 100644
--- a/saga/module.mk
+++ b/saga/module.mk
@@ -5,7 +5,6 @@ MODULE_OBJS = \
saga/actor.o \
saga/actordata.o \
saga/animation.o \
- saga/cmdline.o \
saga/console.o \
saga/cvar.o \
saga/events.o \
diff --git a/saga/reinherit.h b/saga/reinherit.h
index 567340b232..b4ae7e8c36 100644
--- a/saga/reinherit.h
+++ b/saga/reinherit.h
@@ -173,22 +173,6 @@ enum R_ERRORCODE {
/*
- * r_cmdline.c
-\*--------------------------------------------------------------------------*/
-typedef struct R_EXECINFO_tag {
-
- int start_scene;
- int no_verify;
- int no_sound;
- int no_music;
- int windowed;
- char *game_dir;
-
-} R_EXECINFO;
-
-int R_ReadCommandLine(int argc, char **argv, R_EXECINFO * execinfo);
-
-/*
* r_main.c
\*--------------------------------------------------------------------------*/
int main(int argc, char *argv[]);