mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 08:20:00 +09:00
Initial push to use ILive
in import process
This commit is contained in:
@ -101,8 +101,12 @@ namespace osu.Game.Screens.Menu
|
||||
// if we detect that the theme track or beatmap is unavailable this is either first startup or things are in a bad state.
|
||||
// this could happen if a user has nuked their files store. for now, reimport to repair this.
|
||||
var import = beatmaps.Import(new ZipArchiveReader(game.Resources.GetStream($"Tracks/{BeatmapFile}"), BeatmapFile)).Result;
|
||||
import.Protected = true;
|
||||
beatmaps.Update(import);
|
||||
|
||||
import.PerformWrite(b =>
|
||||
{
|
||||
b.Protected = true;
|
||||
beatmaps.Update(b);
|
||||
});
|
||||
|
||||
loadThemedIntro();
|
||||
}
|
||||
|
Reference in New Issue
Block a user