persist selection and fix music bug

This commit is contained in:
RandomityGuy 2024-07-14 23:42:02 +05:30
parent fb215850a7
commit f4e99b30f0
2 changed files with 9 additions and 1 deletions

View file

@ -537,6 +537,9 @@ class ResourceLoader {
}
public static function exists(path:String) {
#if (js || android)
path = StringTools.replace(path, "data/", "");
#end
if (zipFilesystem.exists(path.toLowerCase()))
return true;
return fileSystem.exists(path);

View file

@ -642,7 +642,12 @@ class MPPlayMissionGui extends GuiImage {
currentList = MissionList.missionList["multiplayer"]["beginner"];
setCategoryFunc(currentCategoryStatic, null, false);
// setCategoryFunc(currentCategoryStatic, null, false);
if (Net.isHost) {
NetCommands.setLobbyLevelIndex(currentCategoryStatic, currentSelectionStatic);
} else {
setCategoryFunc(currentCategoryStatic, null, false);
}
updateLobbyNames();
redrawChat();
}