#include "joystick.h"\r
#include "m68000/m68kinterface.h"\r
\r
-#include "debugger/VideoWin.h"\r
+//#include "debugger/VideoWin.h"\r
#include "debugger/DasmWin.h"\r
#include "debugger/m68KDasmWin.h"\r
#include "debugger/GPUDasmWin.h"\r
riscDasmBrowseWin = new RISCDasmBrowserWindow(this);\r
if (vjs.softTypeDebugger)\r
{\r
- VideoOutputWin = new VideoOutputWindow(this);\r
+ //VideoOutputWin = new VideoOutputWindow(this);\r
//VideoOutputWin->setCentralWidget()\r
//DasmWin = new DasmWindow();\r
DasmWin = new DasmWindow(this);\r
\r
// Create actions\r
\r
- quitAppAct = new QAction(tr("E&xit"), this);\r
+ quitAppAct = new QAction(QIcon(":/res/exit.png"), tr("E&xit"), this);\r
// quitAppAct->setShortcuts(QKeySequence::Quit);\r
// quitAppAct->setShortcut(QKeySequence(tr("Alt+x")));\r
//quitAppAct->setShortcut(QKeySequence(tr("Ctrl+q")));\r
configAct->setShortcutContext(Qt::ApplicationShortcut);\r
connect(configAct, SIGNAL(triggered()), this, SLOT(Configure()));\r
\r
- emustatusAct = new QAction(QIcon(""), tr("&Status"), this);\r
+ emustatusAct = new QAction(QIcon(":/res/status.png"), tr("&Status"), this);\r
emustatusAct->setStatusTip(tr("Emulator status"));\r
//emustatusAct->setShortcut(QKeySequence(tr("Ctrl+s")));\r
emustatusAct->setShortcut(QKeySequence(tr(vjs.KBContent[KBEMUSTATUS].KBSettingValue)));\r
uint8_t * biosPointer = jaguarBootROM;\r
\r
if (vjs.hardwareTypeAlpine)\r
+ {\r
biosPointer = jaguarDevBootROM2;\r
+ }\r
\r
if (vjs.softTypeDebugger)\r
+ {\r
biosPointer = jaguarDevBootROM2;\r
+ }\r
\r
memcpy(jagMemSpace + 0xE00000, biosPointer, 0x20000);\r
\r
// This is icky because we've already done it\r
// it gets worse :-P\r
if (!vjs.useJaguarBIOS)\r
+ {\r
SET32(jaguarMainRAM, 4, jaguarRunAddress);\r
+ }\r
\r
m68k_pulse_reset();\r
\r
\r
if ((!vjs.hardwareTypeAlpine || !vjs.softTypeDebugger) && !loadAndGo && jaguarRunAddress)\r
{\r
- QString newTitle = QString("Virtual Jaguar " VJ_RELEASE_VERSION " Rx - Now playing: %1")\r
- .arg(filePickWin->GetSelectedPrettyName());\r
+ QString newTitle = QString("Virtual Jaguar " VJ_RELEASE_VERSION " Rx - Now playing: %1").arg(filePickWin->GetSelectedPrettyName());\r
setWindowTitle(newTitle);\r
}\r
}\r
void MainWin::Restart(void)\r
{\r
m68k_set_reg(M68K_REG_PC, jaguarRunAddress);\r
+ m68k_set_reg(M68K_REG_SP, vjs.DRAM_size);\r
//m68kDasmWin->SetAddress(jaguarRunAddress);\r
+ ResetDebuggerWindows();\r
RefreshDebuggerWindows();\r
#ifdef _MSC_VER\r
#pragma message("Warning: !!! Need to verify the Restart function !!!")\r
//VideoOutputWindowCentrale->setWindowTitle(QString(tr("Video output")));\r
//VideoOutputWindowCentrale->show();\r
//memBrowseWin->show();\r
- VideoOutputWin->show();\r
+ //VideoOutputWin->show();\r
//VideoOutputWin->RefreshContents(videoWidget);\r
}\r
\r
}\r
\r
\r
+// Reset soft debugger & alpine debug windows\r
+void MainWin::ResetDebuggerWindows(void)\r
+{\r
+ if (vjs.softTypeDebugger)\r
+ {\r
+ heapallocatorBrowseWin->Reset();\r
+ }\r
+\r
+ //ResetAlpineWindows();\r
+}\r
+\r
+\r
// Refresh soft debugger & alpine debug windows\r
-void MainWin::RefreshDebuggerWindows(void)\r
+void MainWin::RefreshDebuggerWindows(void)\r
{\r
size_t i;\r
\r