]> git.sesse.net Git - pistorm/blobdiff - emulator.c
Updated SDL2 RTG output courtesy of Claude
[pistorm] / emulator.c
index c6bf30cbcd3717ebe8dd3a38480080f729070ba3..f9c1295e5c133bf4ba097abf3cc6d79a9c49c7f3 100644 (file)
@@ -14,7 +14,6 @@
 #include <sys/types.h>
 #include <unistd.h>
 #include <sys/ioctl.h>
-#include <SDL2/SDL.h>
 #include "m68k.h"
 #include "main.h"
 #include "platforms/platforms.h"
@@ -138,22 +137,6 @@ int main(int argc, char *argv[]) {
     }
   }
 
-  // Initialize SDL.
-  printf("Initializing SDL2...\n");
-  if (SDL_Init(0) < 0) {
-      printf("Failed to initialize SDL2.\n");
-  }
-  else {
-    printf("Initializing SDL2 Video...\n");
-    if (SDL_Init(SDL_INIT_VIDEO) < 0) {
-        printf("Failed to initialize SDL2 Video. Trying again.\n");
-        if (SDL_Init(SDL_INIT_VIDEO) < 0) {
-            printf("Failed to initialize SDL2 Video again. Dying.\n");
-        }
-    }
-    printf("Initialized SDL2 Video.\n");
-  }
-
   keyboard_fd = open(keyboard_file, O_RDONLY | O_NONBLOCK);
   if (keyboard_fd == -1) {
     printf("Failed to open keyboard event source.\n");