Skip to content

Commit

Permalink
add runtime support by OS version
Browse files Browse the repository at this point in the history
  • Loading branch information
silverf0x committed May 31, 2023
1 parent 68aef3f commit 14d5e1a
Showing 1 changed file with 5 additions and 21 deletions.
26 changes: 5 additions & 21 deletions RpcView/RpcView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,10 @@ int DecompileAllInterfaces(RpcCore_T* pRpcCore)
_cprintf("%s\n",CurrentDirectory);
SetCurrentDirectoryA((LPCSTR)CurrentDirectory);
}
//
// Load unsupported runtim versions by default
//
gRpcCoreManager.bForceLoading = TRUE;
#ifdef _DEBUG
if (argc>1)
{
Expand All @@ -378,32 +382,12 @@ int DecompileAllInterfaces(RpcCore_T* pRpcCore)
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);
Expand Down

0 comments on commit 14d5e1a

Please sign in to comment.