mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-01 02:21:26 +02:00
same commit as r5169, but this time to trunk instead of stable
(should fix wii homebrew (loading) on osx.) and minor changes to the wrtc test git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5215 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
f885eb2de0
commit
4f56d8144b
@ -198,7 +198,7 @@ bool CBoot::SetupWiiMemory(unsigned int _CountryCode)
|
||||
|
||||
default:
|
||||
// PanicAlert("SetupWiiMem: Unknown country. Wii boot process will be switched to European settings.");
|
||||
filename = WII_EUR_SETTING_FILE;
|
||||
filename = File::GetSysDirectory() + WII_SYS_DIR + DIR_SEP + WII_EUR_SETTING;
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
#include <ogcsys.h>
|
||||
#include <time.h>
|
||||
#include <sys/time.h>
|
||||
|
||||
#include <ogc/lwp_watchdog.h>
|
||||
#include <iostream>
|
||||
#include <debug.h>
|
||||
#include <math.h>
|
||||
@ -15,28 +15,7 @@ static void *xfb = NULL;
|
||||
u32 first_frame = 1;
|
||||
GXRModeObj *rmode;
|
||||
|
||||
void Initialise();
|
||||
|
||||
|
||||
int main()
|
||||
{
|
||||
Initialise();
|
||||
|
||||
time_t wii_time;
|
||||
wii_time = time(NULL);
|
||||
|
||||
srand(wii_time);
|
||||
|
||||
while(1)
|
||||
{
|
||||
wii_time = time(NULL);
|
||||
std::cout<<"\x1b[10;0HWii RTC time is"<<ctime(&wii_time);
|
||||
|
||||
VIDEO_WaitVSync();
|
||||
}
|
||||
}
|
||||
|
||||
void Initialise()
|
||||
inline void Initialise()
|
||||
{
|
||||
// Initialise the video system
|
||||
VIDEO_Init();
|
||||
@ -70,3 +49,22 @@ void Initialise()
|
||||
VIDEO_WaitVSync();
|
||||
if(rmode->viTVMode&VI_NON_INTERLACE) VIDEO_WaitVSync();
|
||||
}
|
||||
|
||||
int main()
|
||||
{
|
||||
Initialise();
|
||||
|
||||
time_t wii_time;
|
||||
//settime(secs_to_ticks(time(NULL) - 0x386D4380));
|
||||
wii_time = time(NULL);
|
||||
|
||||
std::cout << "\x1b[20;0HWii RTC time is " <<ctime(&wii_time) <<" "<< wii_time;
|
||||
|
||||
while(1)
|
||||
{
|
||||
wii_time = time(NULL);
|
||||
std::cout << "\x1b[10;0HWii RTC time is " << ctime(&wii_time) <<" "<< wii_time;
|
||||
|
||||
VIDEO_WaitVSync();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user