chore: update code structure for better readability and maintainability

This commit is contained in:
moonpower
2026-02-01 13:19:26 +03:00
parent 8277a6f676
commit 5b8081bc33
5 changed files with 4 additions and 3 deletions

View File

@@ -14,6 +14,7 @@ int emu_main(int argc, char *argv[]) {
} }
app.run(); app.run();
return 0;
} }
int main(int argc, char *argv[]) { int main(int argc, char *argv[]) {
@@ -23,8 +24,8 @@ int main(int argc, char *argv[]) {
#ifdef __WINRT__ #ifdef __WINRT__
#include "SDL.h" #include "SDL.h"
int CALLBACK WinMain(HINSTANCE, HINSTANCE, LPSTR argv, int argc) int WINAPI wWinMain(HINSTANCE, HINSTANCE, LPWSTR, int)
{ {
return SDL_WinRTRunApp(emu_main, NULL); return SDL_WinRTRunApp(emu_main, nullptr);
} }
#endif #endif

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -118,7 +118,7 @@ function(_mingw_uwp_setup_impl target)
if(CMAKE_SYSTEM_PROCESSOR MATCHES "x86|AMD64") if(CMAKE_SYSTEM_PROCESSOR MATCHES "x86|AMD64")
target_compile_options(${target} PRIVATE -mcx16) target_compile_options(${target} PRIVATE -mcx16)
endif() endif()
target_link_options(${target} PRIVATE -municode -static) target_link_options(${target} PRIVATE -municode)
if(NOT MINGW_WINRT_UNCAGED) if(NOT MINGW_WINRT_UNCAGED)
set(_prev_required_flags "${CMAKE_REQUIRED_FLAGS}") set(_prev_required_flags "${CMAKE_REQUIRED_FLAGS}")