mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-12 10:30:28 +00:00
(svn r21294) -Fix [FS#4251]: check for existance of save/scenario dirs before asking for deletion confirmation
This commit is contained in:
parent
ac2f9b0d76
commit
480f66d73f
@ -326,8 +326,9 @@ SectionEnd
|
|||||||
Section "Uninstall"
|
Section "Uninstall"
|
||||||
SetShellVarContext all
|
SetShellVarContext all
|
||||||
|
|
||||||
|
IfFileExists "$INSTDIR\save" 0 NoRemoveSavedGames
|
||||||
MessageBox MB_YESNO|MB_ICONQUESTION \
|
MessageBox MB_YESNO|MB_ICONQUESTION \
|
||||||
"Remove the save game folders located at $\"$INSTDIR\save?$\"$\n \
|
"Remove the save game folders located at $\"$INSTDIR\save$\"?$\n \
|
||||||
If you choose Yes, your saved games will be deleted." \
|
If you choose Yes, your saved games will be deleted." \
|
||||||
IDYES RemoveSavedGames IDNO NoRemoveSavedGames
|
IDYES RemoveSavedGames IDNO NoRemoveSavedGames
|
||||||
RemoveSavedGames:
|
RemoveSavedGames:
|
||||||
@ -337,8 +338,9 @@ Section "Uninstall"
|
|||||||
RMDir "$INSTDIR\save"
|
RMDir "$INSTDIR\save"
|
||||||
NoRemoveSavedGames:
|
NoRemoveSavedGames:
|
||||||
|
|
||||||
|
IfFileExists "$INSTDIR\scenario" 0 NoRemoveScen
|
||||||
MessageBox MB_YESNO|MB_ICONQUESTION \
|
MessageBox MB_YESNO|MB_ICONQUESTION \
|
||||||
"Remove the scenario folders located at $\"$INSTDIR\scenario?$\"$\n \
|
"Remove the scenario folders located at $\"$INSTDIR\scenario$\"?$\n \
|
||||||
If you choose Yes, your scenarios will be deleted." \
|
If you choose Yes, your scenarios will be deleted." \
|
||||||
IDYES RemoveScen IDNO NoRemoveScen
|
IDYES RemoveScen IDNO NoRemoveScen
|
||||||
RemoveScen:
|
RemoveScen:
|
||||||
|
Loading…
Reference in New Issue
Block a user