[Scummvm-cvs-logs] CVS: residual main.cpp,1.46,1.47
Pawel Kolodziejski
aquadran at users.sourceforge.net
Wed Jan 12 10:13:13 CET 2005
- Previous message: [Scummvm-cvs-logs] CVS: residual driver.h,NONE,1.1 driver_tinygl.cpp,NONE,1.1 driver_tinygl.h,NONE,1.1 Makefile.common,1.13,1.14 TODO,1.43,1.44 actor.cpp,1.41,1.42 bitmap.cpp,1.30,1.31 bitmap.h,1.13,1.14 driver_gl.cpp,1.26,1.27 driver_gl.h,1.14,1.15 engine.cpp,1.61,1.62 main.cpp,1.45,1.46 material.cpp,1.12,1.13 material.h,1.8,1.9 model.cpp,1.24,1.25 scene.cpp,1.36,1.37 scene.h,1.23,1.24 smush.cpp,1.58,1.59 textobject.cpp,1.15,1.16 textobject.h,1.6,1.7 walkplane.h,1.11,1.12
- Next message: [Scummvm-cvs-logs] CVS: residual Makefile.common,1.14,1.15
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/scummvm/residual
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23857
Modified Files:
main.cpp
Log Message:
moved code to handle startup params properly
Index: main.cpp
===================================================================
RCS file: /cvsroot/scummvm/residual/main.cpp,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -d -r1.46 -r1.47
--- main.cpp 12 Jan 2005 18:06:43 -0000 1.46
+++ main.cpp 12 Jan 2005 18:12:11 -0000 1.47
@@ -83,24 +83,7 @@
int main(int argc, char *argv[]) {
int i;
- if (SDL_Init(SDL_INIT_EVERYTHING) < 0)
- return 1;
-
- atexit(quit);
-
g_registry = new Registry();
- g_engine = new Engine();
- g_resourceloader = new ResourceLoader();
- g_localizer = new Localizer();
- g_mixer = new SoundMixer();
- g_mixer->setVolume(255);
- g_timer = new Timer();
- g_smush = new Smush();
- if (TINYGL_GLOBAL)
- g_driver = new DriverTinyGL(640, 480, 16);
- else
- g_driver = new DriverGL(640, 480, 24);
- g_imuse = new Imuse(20);
// Parse command line
ZBUFFER_GLOBAL = parseBoolStr(g_registry->get("zbuffer"));
@@ -130,6 +113,24 @@
}
}
+ if (SDL_Init(SDL_INIT_EVERYTHING) < 0)
+ return 1;
+
+ atexit(quit);
+
+ g_engine = new Engine();
+ g_resourceloader = new ResourceLoader();
+ g_localizer = new Localizer();
+ g_mixer = new SoundMixer();
+ g_mixer->setVolume(255);
+ g_timer = new Timer();
+ g_smush = new Smush();
+ if (TINYGL_GLOBAL)
+ g_driver = new DriverTinyGL(640, 480, 16);
+ else
+ g_driver = new DriverGL(640, 480, 24);
+ g_imuse = new Imuse(20);
+
Bitmap *splash_bm = g_resourceloader->loadBitmap("splash.bm");
SDL_Event event;
- Previous message: [Scummvm-cvs-logs] CVS: residual driver.h,NONE,1.1 driver_tinygl.cpp,NONE,1.1 driver_tinygl.h,NONE,1.1 Makefile.common,1.13,1.14 TODO,1.43,1.44 actor.cpp,1.41,1.42 bitmap.cpp,1.30,1.31 bitmap.h,1.13,1.14 driver_gl.cpp,1.26,1.27 driver_gl.h,1.14,1.15 engine.cpp,1.61,1.62 main.cpp,1.45,1.46 material.cpp,1.12,1.13 material.h,1.8,1.9 model.cpp,1.24,1.25 scene.cpp,1.36,1.37 scene.h,1.23,1.24 smush.cpp,1.58,1.59 textobject.cpp,1.15,1.16 textobject.h,1.6,1.7 walkplane.h,1.11,1.12
- Next message: [Scummvm-cvs-logs] CVS: residual Makefile.common,1.14,1.15
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list