Skip to content

Commit

Permalink
Entry point
Browse files Browse the repository at this point in the history
  • Loading branch information
JustDoom committed Feb 7, 2025
1 parent 6228c22 commit 37dbe35
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,17 @@
#include "sdl/MainMenu.h"
#include "util/MiscUtil.h"

#ifdef _WIN32
#include <windows.h>

int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) {
char **argv = new char*[0];
int result = main(0, argv);
delete[] argv;
return result;
}
#endif

int main(int argc, char **argv) {
std::string rom;

Expand Down

0 comments on commit 37dbe35

Please sign in to comment.