Fix swapped args oops.

This commit is contained in:
MAJigsaw77
2025-08-05 01:14:22 -04:00
committed by Eric
parent fb293ebcd2
commit ce83e962bf
5 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -916,7 +916,7 @@ class PlayState extends MusicBeatSubState
}
// Display a popup. This blocks the application until the user clicks OK.
funkin.util.WindowUtil.showError(message, 'Error loading PlayState');
funkin.util.WindowUtil.showError('Error loading PlayState', message);
// Force the user back to the main menu.
if (isSubState)
+1 -1
View File
@@ -66,7 +66,7 @@ class VideoCutscene
if (!openfl.Assets.exists(filePath))
{
// Display a popup.
// funkin.util.WindowUtil.showError('Video file does not exist: ${filePath}', 'Error playing video');
// funkin.util.WindowUtil.showError('Error playing video', 'Video file does not exist: ${filePath}');
// return;
// TODO: After moving videos to their own library,
+2 -2
View File
@@ -1220,7 +1220,7 @@ class Save
{
var msg = 'There was an error loading your save data in slot ${slot}.';
msg += '\nPlease report this issue to the developers.';
funkin.util.WindowUtil.showError(msg, "Save Data Failure");
funkin.util.WindowUtil.showError("Save Data Failure", msg);
// Don't touch that slot anymore.
// Instead, load the next available slot.
@@ -1407,7 +1407,7 @@ class Save
var msg = 'There was an error loading your save data from Newgrounds.';
msg += '\n${errorMsg}';
msg += '\nAre you sure you are connected to the internet?';
funkin.util.WindowUtil.showError(msg, "Newgrounds Save Slot Failure");
funkin.util.WindowUtil.showError("Newgrounds Save Slot Failure", msg);
});
}
#end
@@ -41,7 +41,7 @@ class SaveDataMigrator
var message:String = 'Error migrating save data, expected ${Save.SAVE_DATA_VERSION}.';
var slot:Int = Save.archiveBadSaveData(inputData);
var fullMessage:String = 'An error occurred migrating your save data.\n${message}\nInvalid data has been moved to save slot ${slot}.';
funkin.util.WindowUtil.showError(fullMessage, "Save Data Failure");
funkin.util.WindowUtil.showError("Save Data Failure", fullMessage);
return new Save(Save.getDefault());
}
}
+1 -1
View File
@@ -109,7 +109,7 @@ class CrashHandler
static function displayErrorMessage(message:String):Void
{
funkin.util.WindowUtil.showError(message, "Fatal Uncaught Exception");
funkin.util.WindowUtil.showError("Fatal Uncaught Exception", message);
}
#if sys