projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20001203-4-src
[rocksndiamonds.git]
/
src
/
main.c
diff --git
a/src/main.c
b/src/main.c
index c31ace49ffa462879952156ce24152e67917fbf4..40a19333c34cb2f928e5ca636a988e0cfeaa4473 100644
(file)
--- a/
src/main.c
+++ b/
src/main.c
@@
-19,9
+19,11
@@
#include "events.h"
#include "joystick.h"
#include "events.h"
#include "joystick.h"
+#if 0
#if defined(PLATFORM_MSDOS)
#include <fcntl.h>
#endif
#if defined(PLATFORM_MSDOS)
#include <fcntl.h>
#endif
+#endif
#if 0
DrawWindow window = None;
#if 0
DrawWindow window = None;
@@
-65,7
+67,9
@@
char *joystick_device_name[MAX_PLAYERS] =
DEV_JOYSTICK_3
};
DEV_JOYSTICK_3
};
+#if 0
char *program_name = NULL;
char *program_name = NULL;
+#endif
int game_status = MAINMENU;
boolean level_editor_test_game = FALSE;
int game_status = MAINMENU;
boolean level_editor_test_game = FALSE;
@@
-132,7
+136,9
@@
int TimeFrames, TimePlayed, TimeLeft;
boolean network_player_action_received = FALSE;
boolean network_player_action_received = FALSE;
+#if 0
struct LevelDirInfo *leveldir_first = NULL, *leveldir_current = NULL;
struct LevelDirInfo *leveldir_first = NULL, *leveldir_current = NULL;
+#endif
struct LevelInfo level;
struct PlayerInfo stored_player[MAX_PLAYERS], *local_player = NULL;
struct HiScore highscore[MAX_SCORE_ENTRIES];
struct LevelInfo level;
struct PlayerInfo stored_player[MAX_PLAYERS], *local_player = NULL;
struct HiScore highscore[MAX_SCORE_ENTRIES];
@@
-988,15
+994,23
@@
void TEST_SDL_JOYSTICK()
int main(int argc, char *argv[])
{
int main(int argc, char *argv[])
{
+#if 0
program_name = (strrchr(argv[0],'/') ? strrchr(argv[0],'/') + 1 : argv[0]);
program_name = (strrchr(argv[0],'/') ? strrchr(argv[0],'/') + 1 : argv[0]);
+#endif
+
+ InitCommandName(argv[0]);
+ InitExitFunction(CloseAllAndExit);
+ InitPlatformDependantStuff();
+#if 0
#if defined(PLATFORM_MSDOS)
_fmode = O_BINARY;
#endif
#if defined(PLATFORM_MSDOS)
_fmode = O_BINARY;
#endif
+#endif
#if 1
GetOptions(argv);
#if 1
GetOptions(argv);
- OpenAll(
argc,argv
);
+ OpenAll();
#endif
#if 0
#endif
#if 0