ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/Frodo4/Src/AcornGUI.cc
(Generate patch)

Comparing Frodo4/Src/AcornGUI.cc (file contents):
Revision 1.2 by cebix, 2003-07-01T17:51:17Z vs.
Revision 1.3 by cebix, 2003-07-09T13:54:22Z

# Line 527 | Line 527 | void WIMP::ThePrefsToWindow(void)
527    PrefsWindow->WriteIconNumber(Icon_Prefs_CycleBad,ThePrefs.BadLineCycles);
528    PrefsWindow->WriteIconNumber(Icon_Prefs_CycleCIA,ThePrefs.CIACycles);
529    PrefsWindow->WriteIconNumber(Icon_Prefs_CycleFloppy,ThePrefs.FloppyCycles);
530 +
531 + #ifdef SUPPORT_XROM
532 +  // XROM
533 +  PrefsWindow->SetIconState(Icon_Prefs_XROMOn,(ThePrefs.XPandROMOn)?IFlg_Slct:0,IFlg_Slct);
534 +  PrefsWindow->WriteIconText(Icon_Prefs_XROMPath,ThePrefs.XPandROMFile);
535 + #endif
536   }
537  
538  
# Line 607 | Line 613 | void WIMP::WindowToThePrefs(void)
613    prefs->CIACycles      = PrefsWindow->ReadIconNumber(Icon_Prefs_CycleCIA);
614    prefs->FloppyCycles   = PrefsWindow->ReadIconNumber(Icon_Prefs_CycleFloppy);
615  
616 + #ifdef SUPPORT_XROM
617 +  // XROM
618 +  pread_opt(XPandROMOn,XROMOn);
619 +  strcpy(prefs->XPandROMFile,PrefsWindow->ReadIconText(Icon_Prefs_XROMPath));
620 + #endif
621 +
622    // Finally make the changes known to the system:
623    the_c64->NewPrefs(prefs);
624    ThePrefs = *prefs;
# Line 1599 | Line 1611 | void WIMP::UserMessage(void)
1611           i = -1;        // indicator whether file is accepted
1612           if ((Block[5] == EmuWindow->MyHandle()) && (Block[10] == FileType_C64File)) {i=0;}
1613           else if ((Block[5] == EmuWindow->MyHandle()) && (Block[10] == FileType_Data)) {i=0;}
1614 <         else if ((Block[5] == PrefsWindow->MyHandle()) && (Block[10] == FileType_Text)) {i=0;}
1614 >         else if ((Block[5] == PrefsWindow->MyHandle()) && ((Block[10] == FileType_Text) || (Block[10] == FileType_C64File))) {i=0;}
1615           else if ((Block[5] == ConfigWindow->MyHandle()) && (Block[10] == FileType_Text)) {i=0;}
1616           if (i >= 0)
1617           {
# Line 1659 | Line 1671 | void WIMP::UserMessage(void)
1671               Block[MsgB_YourRef] = Block[MsgB_MyRef]; Block[MsgB_Action] = Message_DataLoadAck;
1672               Wimp_SendMessage(17,Block,Block[MsgB_Sender],Block[6]);
1673             }
1674 +                   else if ((Block[6] == Icon_Prefs_XROMPath) && (Block[10] == FileType_C64File))
1675 +                   {
1676 +                     PrefsWindow->WriteIconText(Icon_Prefs_XROMPath,((char*)Block)+44);
1677 +                     Block[MsgB_YourRef] = Block[MsgB_MyRef]; Block[MsgB_Action] = Message_DataLoadAck;
1678 +                     Wimp_SendMessage(17,Block,Block[MsgB_Sender],Block[6]);
1679 +                   }
1680             else         // interpret as drive path (if dragged on one of the drive path icons)
1681             {
1682               switch (Block[6])
# Line 1667 | Line 1685 | void WIMP::UserMessage(void)
1685                 case Icon_Prefs_Dr9Path:  i = 1; break;
1686                 case Icon_Prefs_Dr10Path: i = 2; break;
1687                 case Icon_Prefs_Dr11Path: i = 3; break;
1688 <               default: -1; break;
1688 >               default: i = -1; break;
1689               }
1690               if (i >= 0) {NewDriveImage(i,Block,false);}
1691             }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines