remove some debug crap
This commit is contained in:
parent
af62c99124
commit
1dbe69c6be
|
@ -570,8 +570,6 @@ void ARMv5::Execute()
|
|||
// actually execute
|
||||
u32 icode = (CurInstr >> 6) & 0x3FF;
|
||||
ARMInterpreter::THUMBInstrTable[icode](this);
|
||||
|
||||
if (R[15]==0x0219A6B0) printf("CAM THREAD MSG: %02X %08X -> %08X\n", R[1], R[0], 0x0219A6B6+R[0]);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -427,4 +427,4 @@ void DMA::Run()
|
|||
}
|
||||
|
||||
template void DMA::Run<0>();
|
||||
template void DMA::Run<1>();
|
||||
template void DMA::Run<1>();
|
||||
|
|
15
src/NDS.cpp
15
src/NDS.cpp
|
@ -1811,15 +1811,6 @@ void StartSqrt()
|
|||
|
||||
void debug(u32 param)
|
||||
{
|
||||
if (param==1312)
|
||||
{
|
||||
u32 timer = 0x10000 - (Timers[3].Counter >> 16);
|
||||
timer *= 16;
|
||||
timer += (0x10000 - (Timers[2].Counter >> 16));
|
||||
printf("TIMER=%d (%04X/%04X)\n", timer, (Timers[2].Counter >> 16), (Timers[3].Counter >> 16));
|
||||
return;
|
||||
}
|
||||
|
||||
printf("ARM9 PC=%08X LR=%08X %08X\n", ARM9->R[15], ARM9->R[14], ARM9->R_IRQ[1]);
|
||||
printf("ARM7 PC=%08X LR=%08X %08X\n", ARM7->R[15], ARM7->R[14], ARM7->R_IRQ[1]);
|
||||
|
||||
|
@ -1845,14 +1836,14 @@ void debug(u32 param)
|
|||
fclose(shit);*/
|
||||
|
||||
FILE*
|
||||
shit = fopen("debug/cam9.bin", "wb");
|
||||
shit = fopen("debug/power9.bin", "wb");
|
||||
for (u32 i = 0x02000000; i < 0x04000000; i+=4)
|
||||
{
|
||||
u32 val = DSi::ARM9Read32(i);
|
||||
fwrite(&val, 4, 1, shit);
|
||||
}
|
||||
fclose(shit);
|
||||
shit = fopen("debug/cam7.bin", "wb");
|
||||
shit = fopen("debug/power7.bin", "wb");
|
||||
for (u32 i = 0x02000000; i < 0x04000000; i+=4)
|
||||
{
|
||||
u32 val = DSi::ARM7Read32(i);
|
||||
|
@ -3258,7 +3249,7 @@ void ARM9IOWrite16(u32 addr, u16 val)
|
|||
return;
|
||||
|
||||
case 0x04000188:
|
||||
ARM9IOWrite32(addr, val | (val << 16));
|
||||
ARM9IOWrite32(addr, val | (val << 16));
|
||||
return;
|
||||
|
||||
case 0x040001A0:
|
||||
|
|
|
@ -371,7 +371,7 @@ void EmuThread::run()
|
|||
|
||||
if (Input::HotkeyPressed(HK_Pause)) emit windowEmuPause();
|
||||
if (Input::HotkeyPressed(HK_Reset)) emit windowEmuReset();
|
||||
|
||||
|
||||
if (Input::HotkeyPressed(HK_FullscreenToggle)) emit windowFullscreenToggle();
|
||||
|
||||
if (GBACart::CartInserted && GBACart::HasSolarSensor)
|
||||
|
@ -507,7 +507,7 @@ void EmuThread::run()
|
|||
frameLimitError = -practicalFramelimit;
|
||||
if (frameLimitError > practicalFramelimit)
|
||||
frameLimitError = practicalFramelimit;
|
||||
|
||||
|
||||
if (round(frameLimitError * 1000.0) > 0.0)
|
||||
{
|
||||
SDL_Delay(round(frameLimitError * 1000.0));
|
||||
|
@ -1324,6 +1324,7 @@ void MainWindow::keyPressEvent(QKeyEvent* event)
|
|||
{
|
||||
if (event->isAutoRepeat()) return;
|
||||
|
||||
// TODO!! REMOVE ME IN RELEASE BUILDS!!
|
||||
if (event->key() == Qt::Key_F11) NDS::debug(0);
|
||||
|
||||
Input::KeyPress(event);
|
||||
|
@ -1926,9 +1927,9 @@ void MainWindow::onTitleUpdate(QString title)
|
|||
|
||||
void MainWindow::onFullscreenToggled()
|
||||
{
|
||||
if (!mainWindow->isFullScreen())
|
||||
if (!mainWindow->isFullScreen())
|
||||
{
|
||||
mainWindow->showFullScreen();
|
||||
mainWindow->showFullScreen();
|
||||
mainWindow->menuBar()->hide();
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue