diff --git a/src/sdl/main.c b/src/sdl/main.c
index 217890a0425ece6750a72a493ab714a3fdb1463c..23f331175700a01b6a4522245248b166464d2b1c 100644 (file)
--- a/src/sdl/main.c
+++ b/src/sdl/main.c
#include "system.h"
#include "input.h"
#include "system.h"
#include "input.h"
-#include "my.h" // fexists
#include "player.h" // pl1 pl2
#include "menu.h" // G_keyf
#include "error.h" // logo
#include "player.h" // pl1 pl2
#include "menu.h" // G_keyf
#include "error.h" // logo
vprintf(s, ap);
va_end(ap);
puts("");
vprintf(s, ap);
va_end(ap);
puts("");
- exit(1);
+ abort();
}
void ERR_fatal (char *s, ...) {
}
void ERR_fatal (char *s, ...) {
vprintf(s, ap);
va_end(ap);
puts("");
vprintf(s, ap);
va_end(ap);
puts("");
- exit(1);
+ abort();
}
void ERR_quit (void) {
}
void ERR_quit (void) {
}
int main (int argc, char *argv[]) {
}
int main (int argc, char *argv[]) {
- char *pw;
logo("main: initialize SDL\n");
if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_TIMER) == -1) {
logo("main: failed to init SDL: %s\n", SDL_GetError());
logo("main: initialize SDL\n");
if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_TIMER) == -1) {
logo("main: failed to init SDL: %s\n", SDL_GetError());
pl2.kp = KEY_E;
srand(SDL_GetTicks());
F_startup();
pl2.kp = KEY_E;
srand(SDL_GetTicks());
F_startup();
-#ifndef WIN32
- pw = "/usr/share/doom2d-rembo/doom2d.wad";
-#else
- pw = "doom2d.wad";
-#endif
- if (fexists(pw)) {
- F_addwad(pw);
- } else {
- F_addwad("doom2d.wad");
- }
+ F_addwad("doom2d.wad");
CFG_args(argc, argv);
CFG_load();
F_initwads();
CFG_args(argc, argv);
CFG_load();
F_initwads();