PlatformsPatch.cs 829 B

1234567891011121314151617181920212223
  1. using HarmonyLib;
  2. using SongCore.Utilities;
  3. namespace SongCore.HarmonyPatches {
  4. /*
  5. [HarmonyPatch(typeof(LevelSelectionFlowCoordinator))]
  6. [HarmonyPatch("ActionButtonWasPressed")]
  7. class LevelSelectionFlowCoordinatorStartLevelPatch {
  8. static void Prefix(IDifficultyBeatmap difficultyBeatmap) {
  9. Data.ExtraSongData.DifficultyData songData = Collections.RetrieveDifficultyData(difficultyBeatmap);
  10. if(songData != null) {
  11. if(Plugin.PlatformsInstalled) {
  12. Logging.logger.Info("Checking Custom Environment before song is loaded");
  13. Plugin.CheckCustomSongEnvironment(difficultyBeatmap);
  14. }
  15. } else {
  16. Logging.logger.Info("Null custom song extra data");
  17. }
  18. }
  19. }
  20. */
  21. }