Removed time trial restriction ;)

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@476 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Maarten ter Huurne 2008-09-07 21:06:55 +00:00
parent 64390ff77d
commit ed7a5a46d0

View File

@ -9,6 +9,9 @@
#include "Common.h" #include "Common.h"
#include "ISOFile.h" #include "ISOFile.h"
#include "CPUDetect.h" #include "CPUDetect.h"
#include "cmdline.h"
#include "Thread.h"
#include "PowerPC/PowerPC.h"
#include "BootManager.h" #include "BootManager.h"
void* g_pCodeWindow = NULL; void* g_pCodeWindow = NULL;
@ -36,7 +39,11 @@ void Host_UpdateLogDisplay(){}
void Host_UpdateDisasmDialog(){} void Host_UpdateDisasmDialog(){}
void Host_UpdateMainFrame(){} Common::Event updateMainFrameEvent;
void Host_UpdateMainFrame()
{
updateMainFrameEvent.Set();
}
void Host_UpdateBreakPointView(){} void Host_UpdateBreakPointView(){}
@ -59,7 +66,6 @@ void Host_UpdateStatusBar(const char* _pText){}
// Include SDL header so it can hijack main(). // Include SDL header so it can hijack main().
#include <SDL.h> #include <SDL.h>
#include "cmdline.h"
int main(int argc, char* argv[]) int main(int argc, char* argv[])
{ {
@ -75,12 +81,13 @@ int main(int argc, char* argv[])
} }
std::string bootFile(args_info.inputs[0]); std::string bootFile(args_info.inputs[0]);
updateMainFrameEvent.Init();
DetectCPU(); DetectCPU();
BootManager::BootCore(bootFile); BootManager::BootCore(bootFile);
usleep(2000 * 1000 * 1000); while (PowerPC::state != PowerPC::CPU_POWERDOWN)
//while (!getch()) { {
// usleep(20); updateMainFrameEvent.Wait();
//} }
cmdline_parser_free (&args_info); cmdline_parser_free (&args_info);
return(0); return(0);