mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-21 05:09:46 -06:00
Remove the last ConfigEntry
state (#1902)
* Get rid of `ConfigEntry::ExternalBIOSEnable` - Now the BIOS files themselves are checked - The frontend's `Config::ExternalBIOSEnable` is not affected * Add `JITArgs` * Pass the JIT status to the `ARM` constructors * Encapsulate `NDS::EnableJIT` * Pass `JITArgs` to `ARMJIT`'s constructor * Remove the `JIT_*` `ConfigEntry`s in favor of members - Allow all the JIT args to be set with `NDS::SetJITArgs` - Encapsulate the JIT-related parameters in `ARMJIT` so they can reset the block cache if changed - Update the active (or newly-created) console in the frontend with adjusted JIT args * Make audio bit depth and interpolation configurable in `NDSArgs` - Define enums for both - Give those settings default values in `NDSArgs` - Remove `ConfigEntry::AudioBitDepth` - Initialize these settings in the relevant SPU constructors * Move the last DSi-specific logic in `Reset` to its own subclass * Remove `ConfigEntry::DSi_FullBIOSBoot` - Add members to `DSi` instead for getting and setting this - Update the frontend to accommodate these changes * Oops, missed a spot * Remove `ConfigEntry::Firm_MAC` and `Platform::GetConfigArray` - Also move the MAC parsing code to `ROMManager` * Remove the last `ConfigEntry` state - Make GDB support configurable via members * Add some `#ifdef`s that I'd almost forgotten
This commit is contained in:
10
src/DSi.cpp
10
src/DSi.cpp
@ -111,6 +111,8 @@ void DSi::Reset()
|
||||
//ARM9.CP15Write(0x100, ARM9.CP15Read(0x100) | 0x00050000);
|
||||
NDS::Reset();
|
||||
|
||||
// The SOUNDBIAS register does nothing on DSi
|
||||
SPU.SetApplyBias(false);
|
||||
KeyInput &= ~(1 << (16+6));
|
||||
MapSharedWRAM(3);
|
||||
|
||||
@ -128,7 +130,7 @@ void DSi::Reset()
|
||||
|
||||
AES.Reset();
|
||||
|
||||
if (Platform::GetConfigBool(Platform::DSi_FullBIOSBoot))
|
||||
if (FullBIOSBoot)
|
||||
{
|
||||
SCFG_BIOS = 0x0000;
|
||||
}
|
||||
@ -679,7 +681,7 @@ void DSi::SoftReset()
|
||||
|
||||
AES.Reset();
|
||||
|
||||
if (Platform::GetConfigBool(Platform::DSi_FullBIOSBoot))
|
||||
if (FullBIOSBoot)
|
||||
{
|
||||
SCFG_BIOS = 0x0000;
|
||||
}
|
||||
@ -741,7 +743,7 @@ bool DSi::LoadNAND()
|
||||
memset(NWRAMMask, 0, sizeof(NWRAMMask));
|
||||
|
||||
u32 bootparams[8];
|
||||
if (Platform::GetConfigBool(Platform::DSi_FullBIOSBoot))
|
||||
if (FullBIOSBoot)
|
||||
{
|
||||
// TODO: figure out default MBK mapping
|
||||
// MBK1..5: disable mappings
|
||||
@ -879,7 +881,7 @@ bool DSi::LoadNAND()
|
||||
Log(LogLevel::Debug, "eMMC CID: %08llX%08llX\n", *(const u64*)&emmccid[0], *(const u64*)&emmccid[8]);
|
||||
Log(LogLevel::Debug, "Console ID: %" PRIx64 "\n", image->GetConsoleID());
|
||||
|
||||
if (Platform::GetConfigBool(Platform::DSi_FullBIOSBoot))
|
||||
if (FullBIOSBoot)
|
||||
{
|
||||
// point CPUs to boot ROM reset vectors
|
||||
ARM9.JumpTo(0xFFFF0000);
|
||||
|
Reference in New Issue
Block a user