chore: update code structure for better readability and maintainability
This commit is contained in:
@@ -14,6 +14,7 @@ int emu_main(int argc, char *argv[]) {
|
||||
}
|
||||
|
||||
app.run();
|
||||
return 0;
|
||||
}
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
@@ -23,8 +24,8 @@ int main(int argc, char *argv[]) {
|
||||
#ifdef __WINRT__
|
||||
#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
|
||||
BIN
uwp/deps/bin/libgcc_s_seh-1.dll
Normal file
BIN
uwp/deps/bin/libgcc_s_seh-1.dll
Normal file
Binary file not shown.
BIN
uwp/deps/bin/libstdc++-6.dll
Normal file
BIN
uwp/deps/bin/libstdc++-6.dll
Normal file
Binary file not shown.
BIN
uwp/deps/bin/libwinpthread-1.dll
Normal file
BIN
uwp/deps/bin/libwinpthread-1.dll
Normal file
Binary file not shown.
@@ -118,7 +118,7 @@ function(_mingw_uwp_setup_impl target)
|
||||
if(CMAKE_SYSTEM_PROCESSOR MATCHES "x86|AMD64")
|
||||
target_compile_options(${target} PRIVATE -mcx16)
|
||||
endif()
|
||||
target_link_options(${target} PRIVATE -municode -static)
|
||||
target_link_options(${target} PRIVATE -municode)
|
||||
|
||||
if(NOT MINGW_WINRT_UNCAGED)
|
||||
set(_prev_required_flags "${CMAKE_REQUIRED_FLAGS}")
|
||||
|
||||
Reference in New Issue
Block a user