diff --git a/.vs/osu-trainer/DesignTimeBuild/.dtbcache.v2 b/.vs/osu-trainer/DesignTimeBuild/.dtbcache.v2 index 8792f3b..d039bed 100644 Binary files a/.vs/osu-trainer/DesignTimeBuild/.dtbcache.v2 and b/.vs/osu-trainer/DesignTimeBuild/.dtbcache.v2 differ diff --git a/osu-trainer/BeatmapEditor.cs b/osu-trainer/BeatmapEditor.cs index 6a7d543..9b25305 100644 --- a/osu-trainer/BeatmapEditor.cs +++ b/osu-trainer/BeatmapEditor.cs @@ -777,9 +777,13 @@ private Beatmap LoadBeatmap(string beatmapPath) { retMap = BeatmapConstructorWrapper(beatmapPath); } - catch + catch (Exception ex) { - Console.WriteLine("Bad .osu file format"); + Console.WriteLine($"An error occurred while reading {beatmapPath}"); + Console.WriteLine("Exception Type: " + ex.GetType().Name); + Console.WriteLine("Message: " + ex.Message); + Console.WriteLine("Stack Trace: " + ex.StackTrace); + OriginalBeatmap = null; NewBeatmap = null; return null; diff --git a/osu-trainer/Forms/MainForm.cs b/osu-trainer/Forms/MainForm.cs index 2e57081..4bd4706 100644 --- a/osu-trainer/Forms/MainForm.cs +++ b/osu-trainer/Forms/MainForm.cs @@ -2,6 +2,8 @@ using osu_trainer.Controls; using osu_trainer.Forms; using OsuMemoryDataProvider; +using OsuMemoryDataProvider.OsuMemoryModels.Direct; +using ProcessMemoryDataFinder.API; using System; using System.Collections.Generic; using System.ComponentModel; @@ -24,7 +26,7 @@ public partial class MainForm : Form // Beatmap private string userSongsFolder = null; - private IOsuMemoryReader osuReader; + private StructuredOsuMemoryReader osuReader; // Common Control Lists private List