Skip to content

Commit

Permalink
v1.2.9 prerelease stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
mborik committed Feb 10, 2022
1 parent 609e922 commit 414978c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
MIT License

Copyright (c) 2010-2014 syd & poopisan
Copyright (c) 2014-2020 Martin Bórik <mborik@users.sourceforge.net>
Copyright (c) 2014-2022 Martin Bórik <martin@borik.net>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
12 changes: 8 additions & 4 deletions arm/shell/menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,17 +119,22 @@ void InitScreen(const char *title)
DrawAttr8(0, 20, 0002, 32);
DrawLine(20, 3);
DrawLine(20, 5);

DrawStrAttr(8, 21, "Ctrl+S - save changes to `speccy2010.ini'", 0102, 41);
}
//---------------------------------------------------------------------------------------
void SaveConfigDialog()
{
if (!specConfig.modified)
return;

ScreenPush();
Shell_ProgressBar("speccy2010.ini", "Saving config...", 0126);
Shell_ProgressBar("speccy2010.ini", "Saving config...", 0150);

SaveConfig();
specConfig.modified = false;

Shell_UpdateProgress(1.0f, 0126);
Shell_UpdateProgress(1.0f, 0150);
DelayMs(500);

int timeout = 500;
Expand Down Expand Up @@ -352,12 +357,11 @@ void Shell_Menu(const char *title, CMenuItem *menu, int menuSize)
}

if (firstTimeSaveConfigWarning && specConfig.modified) {
if (Shell_MessageBox("speccy2010.ini", "Config changed. Save?", "(use Ctrl+S in menu)", "", MB_YESNO, 0050, 0115)) {
if (Shell_MessageBox("speccy2010.ini", "Config changed. Save?", "", "", MB_YESNO, 0050, 0115)) {
SaveConfigDialog();
}

firstTimeSaveConfigWarning = false;
specConfig.modified = false;
}

SystemBus_Write(0xc00021, 0); // Enable Video
Expand Down

0 comments on commit 414978c

Please sign in to comment.