diff --git a/main.cpp b/main.cpp index 2348391..52fca57 100644 --- a/main.cpp +++ b/main.cpp @@ -15,7 +15,6 @@ #include #include #include -#include "SDL.h" #include "source/log.h" #include "source/rom.h" #include "source/nec/nec.h" @@ -122,9 +121,6 @@ int ws_mk_ieppath() int main(int argc, char *argv[]) { - atexit(SDL_Quit); - SDL_Init(SDL_INIT_TIMER); - if (!log_init(LOG_PATH)) { printf("Warning: cannot open log file %s\n",LOG_PATH); diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt index ecab385..5c39c49 100644 --- a/source/CMakeLists.txt +++ b/source/CMakeLists.txt @@ -1,5 +1,5 @@ set(SOURCES audio.cpp emulate.cpp gpu.cpp io.cpp log.cpp memory.cpp rom.cpp ws.cpp) -set(HEADERS audio.h emulate.h gpu.h ieeprom.h initialIo.h io.h log.h memory.h rom.h SDLptc.h ws.h) +set(HEADERS audio.h emulate.h gpu.h ieeprom.h initialIo.h io.h log.h memory.h rom.h ws.h) add_library(wswan ${SOURCES} ${HEADERS}) diff --git a/source/emulate.h b/source/emulate.h index 296a9c1..339e8ff 100644 --- a/source/emulate.h +++ b/source/emulate.h @@ -21,7 +21,6 @@ extern char app_window_title[256]; extern int app_gameRunning; extern int app_terminate; extern int app_fullscreen; -extern SDL_Event app_input_event; extern int app_rotated;