Change yaze_run_cocoa_app_delegate to return an int for better error handling; update main to reflect this change

This commit is contained in:
scawful
2025-01-26 13:19:58 -05:00
parent 26cda69d44
commit 9a11c970ae
3 changed files with 10 additions and 5 deletions

View File

@@ -32,8 +32,7 @@ int main(int argc, char** argv) {
}
#ifdef __APPLE__
yaze_run_cocoa_app_delegate(rom_filename.c_str());
return EXIT_SUCCESS;
return yaze_run_cocoa_app_delegate(rom_filename.c_str());
#elif defined(_WIN32)
// We set SDL_MAIN_HANDLED for Win32 to avoid SDL hijacking main()
SDL_SetMainReady();