+#include "emulator.h"
+#include "rtg.h"
+
+#include <pthread.h>
#include <SDL2/SDL.h>
-#include <stdio.h>
#include <stdint.h>
+#include <stdio.h>
#include <stdlib.h>
-#include <unistd.h>
-#include <pthread.h>
#include <string.h>
-#include "rtg.h"
+#include <unistd.h>
#define RTG_INIT_ERR(a) { printf(a); *data->running = 0; }
if (reinit)
goto reinit_sdl;
-
+
if (indexed_buf)
free(indexed_buf);