internal static bool Prefix(string levelPath, CustomLevel __instance) { void Invoke(MethodBase methodBase, params object[] parameters) { methodBase.Invoke(__instance, parameters); } Invoke(_printesp, (object)""); int num = __instance.LoadLevel(levelPath) ? 1 : 0; if (num == 0) { return(num != 0); } __instance.editor.filenameText.text = Path.GetFileName(levelPath); __instance.editor.filenameText.fontStyle = FontStyle.Bold; Invoke(_setupConductorWithLevelData); __instance.RemakePath(); __instance.ReloadAssets(); DiscordController.instance?.UpdatePresence(); scnEditor.instance.settingsPanel.ShowPanel(LevelEventType.SongSettings); if (shouldSkipPlay) { shouldSkipPlay = false; return(false); } return(true); }
internal static bool Prefix(string levelPath, CustomLevel __instance) { void Invoke(MethodBase methodBase, params object[] parameters) { methodBase.Invoke(__instance, parameters); } Invoke(_printesp, (object)""); int num = __instance.LoadLevel(levelPath) ? 1 : 0; if (num == 0) { return(false); } __instance.editor.filenameText.text = Path.GetFileName(levelPath); __instance.editor.filenameText.fontStyle = FontStyle.Bold; __instance.conductor.SetupConductorWithLevelData(__instance.levelData); __instance.RemakePath(); __instance.ReloadAssets(); DiscordController.instance.UpdatePresence(); if (editor) { editor = false; __instance.editor.Run(SelectFirstFloor); return(false); } else { __instance.Play(); } return(false); }