Skip to content

Commit

Permalink
SDL main handled
Browse files Browse the repository at this point in the history
  • Loading branch information
jwt2706 committed May 9, 2024
1 parent 1c780d1 commit ab5c588
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/main.c
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
#ifdef _WIN32
#define mainF SDL_main
#else
#define mainF main
#endif

#define SDL_MAIN_HANDLED
#include <SDL2/SDL.h>
#include <stdio.h>
#include "../include/sdlutils.h"
#include "../include/keyboard.h"
#include "../include/chip8.h"
#include "../include/load.h"

int mainF(int argc, char *argv[])
int main(int argc, char *argv[])
{
// init sdl2
SDLComponents components;
Expand Down

0 comments on commit ab5c588

Please sign in to comment.