mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-11 18:41:02 +00:00
VI: set the JP bit of VI's DTV reg when needed
The "Force NTSC-J" option was broken by 480dbb22f2cfddf7fa989f3a68fbfec075b3a1b4 (i.e. field-timing). A side effect of this was that it exposed a bug where the JP region bit of VI's DTV reg was not automatically set for wads from the JP region.
This commit is contained in:
parent
330329254c
commit
d9e921cc2c
@ -15,6 +15,7 @@
|
|||||||
#include "Core/Boot/Boot_DOL.h"
|
#include "Core/Boot/Boot_DOL.h"
|
||||||
#include "Core/HLE/HLE.h"
|
#include "Core/HLE/HLE.h"
|
||||||
#include "Core/HW/Memmap.h"
|
#include "Core/HW/Memmap.h"
|
||||||
|
#include "Core/HW/VideoInterface.h"
|
||||||
#include "Core/IPC_HLE/WII_IPC_HLE.h"
|
#include "Core/IPC_HLE/WII_IPC_HLE.h"
|
||||||
#include "Core/IPC_HLE/WII_IPC_HLE_Device_FileIO.h"
|
#include "Core/IPC_HLE/WII_IPC_HLE_Device_FileIO.h"
|
||||||
#include "Core/PowerPC/PowerPC.h"
|
#include "Core/PowerPC/PowerPC.h"
|
||||||
@ -88,7 +89,11 @@ bool CBoot::Boot_WiiWAD(const std::string& _pFilename)
|
|||||||
// setup Wii memory
|
// setup Wii memory
|
||||||
if (!SetupWiiMemory(ContentLoader.GetCountry()))
|
if (!SetupWiiMemory(ContentLoader.GetCountry()))
|
||||||
return false;
|
return false;
|
||||||
|
// this sets a bit that is used to detect NTSC-J
|
||||||
|
if (ContentLoader.GetCountry() == DiscIO::IVolume::COUNTRY_JAPAN)
|
||||||
|
{
|
||||||
|
VideoInterface::SetRegionReg('J');
|
||||||
|
}
|
||||||
// DOL
|
// DOL
|
||||||
const DiscIO::SNANDContent* pContent = ContentLoader.GetContentByIndex(ContentLoader.GetBootIndex());
|
const DiscIO::SNANDContent* pContent = ContentLoader.GetContentByIndex(ContentLoader.GetBootIndex());
|
||||||
if (pContent == nullptr)
|
if (pContent == nullptr)
|
||||||
|
@ -154,6 +154,7 @@ void Preset(bool _bNTSC)
|
|||||||
|
|
||||||
// Say component cable is plugged
|
// Say component cable is plugged
|
||||||
m_DTVStatus.component_plugged = SConfig::GetInstance().bProgressive;
|
m_DTVStatus.component_plugged = SConfig::GetInstance().bProgressive;
|
||||||
|
m_DTVStatus.ntsc_j = SConfig::GetInstance().bForceNTSCJ;
|
||||||
|
|
||||||
s_ticks_last_line_start = 0;
|
s_ticks_last_line_start = 0;
|
||||||
s_half_line_count = 1;
|
s_half_line_count = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user