fix jap games which loaded the ansi bootrom font, resulting in garbage text

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3131 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Shawn Hoffman 2009-05-02 06:43:39 +00:00
parent 474f1343f7
commit f900635c77
3 changed files with 11 additions and 3 deletions

View File

@ -204,6 +204,8 @@ bool CBoot::BootUp()
// setup the map from ISOFile ID
VolumeHandler::SetVolumeName(_StartupPara.m_strFilename);
VideoInterface::SetRegionReg((char)VolumeHandler::GetVolume()->GetUniqueID().at(3));
DVDInterface::SetDiscInside(true);
// Use HLE BIOS or not

View File

@ -20,8 +20,8 @@
#include "../PowerPC/PowerPC.h"
#include "../Core.h" // <- for Core::GetStartupParameter().bUseDualCore
#include "CommandProcessor.h" // <- for homebrew's XFB draw hack
#include "../Core.h" // <- for Core::GetStartupParameter().bUseDualCore
#include "CommandProcessor.h" // <- for homebrew's XFB draw hack
#include "PeripheralInterface.h"
#include "VideoInterface.h"
#include "Memmap.h"
@ -467,7 +467,6 @@ void PreInit(bool _bNTSC)
Write16(0x01ae, 0xcc002032);
Write16(0x1107, 0xcc002030);
Write16(0x0000, 0xcc00206c);
Write16(0x0001, 0xcc00206e); // component cable is connected
if (_bNTSC)
Write16(0x0001, 0xcc002002); // STATUS REG
@ -475,6 +474,11 @@ void PreInit(bool _bNTSC)
Write16(0x0101, 0xcc002002); // STATUS REG
}
void SetRegionReg(char _region)
{
Write16((u16)_region, 0xcc00206e);
}
void UpdateTiming()
{
switch (m_VIDisplayControlRegister.FMT)

View File

@ -47,6 +47,8 @@ namespace VideoInterface
// pre init
void PreInit(bool _bNTSC);
void SetRegionReg(char _region);
// VI Unknown Regs
extern u8 m_UVIUnknownRegs[0x1000];