summaryrefslogtreecommitdiff
path: root/soh/src/code
diff options
context:
space:
mode:
Diffstat (limited to 'soh/src/code')
-rw-r--r--soh/src/code/main.c7
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();