Improved command line handling and added support for loading ELF from command line.

This commit is contained in:
Jean-Philip Desjardins 2015-03-13 23:01:52 -04:00
parent 3fec1ee4bc
commit c6e0b146d8
3 changed files with 35 additions and 18 deletions

View file

@ -4,10 +4,10 @@
#include <jitprofiling.h>
#endif
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE, char* sCmdLine, int)
int WINAPI _tWinMain(HINSTANCE, HINSTANCE, LPTSTR, int)
{
CPS2VM virtualMachine;
CMainWindow MainWindow(virtualMachine, sCmdLine);
CMainWindow MainWindow(virtualMachine);
MainWindow.Loop();
#ifdef VTUNE_ENABLED
iJIT_NotifyEvent(iJVM_EVENT_TYPE_SHUTDOWN, NULL);