take care of some minor details
This commit is contained in:
parent
7132e11bd4
commit
e43a216ab5
|
@ -162,8 +162,10 @@ void Reset()
|
||||||
|
|
||||||
UserSettings = userdata;
|
UserSettings = userdata;
|
||||||
|
|
||||||
|
// TODO evetually: do this in DSi mode
|
||||||
|
if (NDS::ConsoleType == 0)
|
||||||
|
{
|
||||||
// fix touchscreen coords
|
// fix touchscreen coords
|
||||||
#if 0
|
|
||||||
*(u16*)&Firmware[userdata+0x58] = 0;
|
*(u16*)&Firmware[userdata+0x58] = 0;
|
||||||
*(u16*)&Firmware[userdata+0x5A] = 0;
|
*(u16*)&Firmware[userdata+0x5A] = 0;
|
||||||
Firmware[userdata+0x5C] = 0;
|
Firmware[userdata+0x5C] = 0;
|
||||||
|
@ -177,7 +179,9 @@ void Reset()
|
||||||
//Firmware[userdata+0x64] &= 0xBF;
|
//Firmware[userdata+0x64] &= 0xBF;
|
||||||
|
|
||||||
*(u16*)&Firmware[userdata+0x72] = CRC16(&Firmware[userdata], 0x70, 0xFFFF);
|
*(u16*)&Firmware[userdata+0x72] = CRC16(&Firmware[userdata], 0x70, 0xFFFF);
|
||||||
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
// replace MAC address with random address
|
// replace MAC address with random address
|
||||||
// TODO: make optional?
|
// TODO: make optional?
|
||||||
Firmware[0x36] = 0x00;
|
Firmware[0x36] = 0x00;
|
||||||
|
|
|
@ -188,6 +188,8 @@ void Reset()
|
||||||
IOPORT(0x000) = 0x1440;
|
IOPORT(0x000) = 0x1440;
|
||||||
else if (console == 0x20)
|
else if (console == 0x20)
|
||||||
IOPORT(0x000) = 0xC340;
|
IOPORT(0x000) = 0xC340;
|
||||||
|
else if (NDS::ConsoleType == 1 && console == 0x57)
|
||||||
|
IOPORT(0x000) = 0xC340; // DSi has the modern DS-wifi variant
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
printf("wifi: unknown console type %02X\n", console);
|
printf("wifi: unknown console type %02X\n", console);
|
||||||
|
|
Loading…
Reference in New Issue