Skip to content

Commit

Permalink
Update main.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
AXDOOMER authored Jan 7, 2024
1 parent 44e1207 commit 123dcf7
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions Project/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,12 @@ using namespace std;

int main(int argc, const char* argv[])
{
SDL_Init(SDL_INIT_TIMER);
int result;
if (SDL_Init(SDL_INIT_TIMER) != 0)
{
SDL_Log("SDL_Init failed: %s", SDL_GetError());
return 1;
}

try
{
Expand Down Expand Up @@ -61,8 +65,9 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine
return main(__argc, __argv);
}
#endif
/*

#ifndef SDL_main
int SDL_main(int argc, const char* argv[]) {
return main(argc, argv);
}
*/
#endif

0 comments on commit 123dcf7

Please sign in to comment.