@@ -119,17 +119,22 @@ void InitScreen(const char *title)
119
119
DrawAttr8 (0 , 20 , 0002 , 32 );
120
120
DrawLine (20 , 3 );
121
121
DrawLine (20 , 5 );
122
+
123
+ DrawStrAttr (8 , 21 , " Ctrl+S - save changes to `speccy2010.ini'" , 0102 , 41 );
122
124
}
123
125
// ---------------------------------------------------------------------------------------
124
126
void SaveConfigDialog ()
125
127
{
128
+ if (!specConfig.modified )
129
+ return ;
130
+
126
131
ScreenPush ();
127
- Shell_ProgressBar (" speccy2010.ini" , " Saving config..." , 0126 );
132
+ Shell_ProgressBar (" speccy2010.ini" , " Saving config..." , 0150 );
128
133
129
134
SaveConfig ();
130
135
specConfig.modified = false ;
131
136
132
- Shell_UpdateProgress (1 .0f , 0126 );
137
+ Shell_UpdateProgress (1 .0f , 0150 );
133
138
DelayMs (500 );
134
139
135
140
int timeout = 500 ;
@@ -352,12 +357,11 @@ void Shell_Menu(const char *title, CMenuItem *menu, int menuSize)
352
357
}
353
358
354
359
if (firstTimeSaveConfigWarning && specConfig.modified ) {
355
- if (Shell_MessageBox (" speccy2010.ini" , " Config changed. Save?" , " (use Ctrl+S in menu) " , " " , MB_YESNO, 0050 , 0115 )) {
360
+ if (Shell_MessageBox (" speccy2010.ini" , " Config changed. Save?" , " " , " " , MB_YESNO, 0050 , 0115 )) {
356
361
SaveConfigDialog ();
357
362
}
358
363
359
364
firstTimeSaveConfigWarning = false ;
360
- specConfig.modified = false ;
361
365
}
362
366
363
367
SystemBus_Write (0xc00021 , 0 ); // Enable Video
0 commit comments