diff options
| author | Malkierian <malkierian@gmail.com> | 2025-10-09 16:51:04 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-09 16:51:04 -0700 |
| commit | 52a8f6c2810df518dc853edefdacb829cf1863dd (patch) | |
| tree | a4c1327eccceb8eac9bd4efed0777a8c436240dd /soh/src/code | |
| parent | 57c368aa2c7ecb2c7d85f1f52ea7c0ea7d5c2d69 (diff) | |
Program Execution Argument Extraction (#5807)
* Add function to be able to feed specific path into to process programmatically, and setup drag and drop functionality.
* Encapsulate dropped file functionality from Switch and Wii U.
* Fix dropped file detection, and fix ShowYesNowBox return checking.
Diffstat (limited to 'soh/src/code')
| -rw-r--r-- | soh/src/code/main.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/soh/src/code/main.c b/soh/src/code/main.c index 769ecc026..558b30d2f 100644 --- a/soh/src/code/main.c +++ b/soh/src/code/main.c @@ -45,7 +45,7 @@ void Main_LogSystemHeap(void) { } #ifdef _WIN32 -int SDL_main(int argc, char** argv) { +int SDL_main(int argc, char* argv[]) { AllocConsole(); (void)freopen("CONIN$", "r", stdin); (void)freopen("CONOUT$", "w", stdout); @@ -57,11 +57,10 @@ int SDL_main(int argc, char** argv) { setlocale(LC_ALL, ".UTF8"); #else //_WIN32 -int main(int argc, char** argv) { +int main(int argc, char* argv[]) { #endif - GameConsole_Init(); - InitOTR(); + InitOTR(argc, argv); // TODO: Was moved to below InitOTR because it requires window to be setup. But will be late to catch crashes. CrashHandlerRegisterCallback(CrashHandler_PrintSohData); BootCommands_Init(); |
