]> Shamusworld >> Repos - apple2/blobdiff - src/apple2.cpp
Added infrastructure to handle write protecting floppy disks
[apple2] / src / apple2.cpp
index 6b24271cc009ef9d84dbaee7f0fa802285a9d777..fa7323a6d217adb2a8ddfb32a6a87b32c0432409 100755 (executable)
@@ -62,13 +62,14 @@ uint8 ram[0x10000], rom[0x10000];                           // RAM & ROM spaces
 uint8 diskRom[0x100];                                                  // Disk ROM space
 V65C02REGS mainCPU;
 uint8 appleType = APPLE_TYPE_II;
+FloppyDrive floppyDrive;
 
 // Local variables
 
 static uint8 lastKeyPressed = 0;
 static bool keyDown = false;
 
-static FloppyDrive floppyDrive;
+//static FloppyDrive floppyDrive;
 
 enum { LC_BANK_1, LC_BANK_2 };
 
@@ -851,11 +852,13 @@ memcpy(ram + 0xD000, ram + 0xC000, 0x1000);
 
 //     gui = new GUI(surface);                                         // Set up the GUI system object...
        gui = new GUI(mainSurface);                                     // Set up the GUI system object...
+#if 0
        gui->AddMenuTitle("Apple2");
        gui->AddMenuItem("Test!", TestWindow/*, hotkey*/);
        gui->AddMenuItem("");
        gui->AddMenuItem("Quit", QuitEmulator, SDLK_q);
        gui->CommitItemsToMenu();
+#endif
 
        SetupBlurTable();                                                       // Set up the color TV emulation blur table
        running = true;                                                         // Set running status...