From 14d5e1a3b6cc02196dabdcf668ea341129b36be0 Mon Sep 17 00:00:00 2001 From: silverf0x Date: Wed, 31 May 2023 14:11:13 +0200 Subject: [PATCH] add runtime support by OS version --- RpcView/RpcView.cpp | 26 +++++--------------------- 1 file changed, 5 insertions(+), 21 deletions(-) diff --git a/RpcView/RpcView.cpp b/RpcView/RpcView.cpp index 6a3a46f..d1d5447 100644 --- a/RpcView/RpcView.cpp +++ b/RpcView/RpcView.cpp @@ -368,6 +368,10 @@ End: _cprintf("%s\n",CurrentDirectory); SetCurrentDirectoryA((LPCSTR)CurrentDirectory); } + // + // Load unsupported runtim versions by default + // + gRpcCoreManager.bForceLoading = TRUE; #ifdef _DEBUG if (argc>1) { @@ -378,32 +382,12 @@ End: DecompileAllInterfaces(&gRpcCoreManager); _CrtDumpMemoryLeaks(); } - else if (!_stricmp(argv[1], "/f")) - { - gRpcCoreManager.bForceLoading = TRUE; - } else { - _cprintf("Usage %s: [/f] [/DA]\n", argv[0]); - _cprintf(" /f : force loading for unsupported runtime versions \n"); + _cprintf("Usage %s: [/DA]\n", argv[0]); _cprintf(" /DA : decompile all interfaces\n"); } } - // - //return 0; - } -#else - if (argc>1) - { - if (argvw[1] && !wcsncmp(argvw[1], L"/f", 2)) - { - gRpcCoreManager.bForceLoading = TRUE; - } - else - { - _cprintf("Usage %s: [/f]\n", argv[0]); - _cprintf(" /f : force loading for unsupported runtime versions \n"); - } } #endif pMainWindow = new MainWindow_C(&gRpcCoreManager);