mirror of
https://github.com/ppy/osu
synced 2025-01-13 17:41:09 +00:00
Fix previous skins not loading due to namespace changes
This commit is contained in:
parent
498c796c81
commit
93b783d9ea
@ -108,6 +108,13 @@ namespace osu.Game.Skinning
|
||||
try
|
||||
{
|
||||
string jsonContent = Encoding.UTF8.GetString(bytes);
|
||||
|
||||
// handle namespace changes...
|
||||
|
||||
// can be removed 2023-01-31
|
||||
jsonContent = jsonContent.Replace(@"osu.Game.Screens.Play.SongProgress", @"osu.Game.Screens.Play.HUD.DefaultSongProgress");
|
||||
jsonContent = jsonContent.Replace(@"osu.Game.Screens.Play.HUD.LegacyComboCounter", @"osu.Game.Skinning.LegacyComboCounter");
|
||||
|
||||
var deserializedContent = JsonConvert.DeserializeObject<IEnumerable<SkinnableInfo>>(jsonContent);
|
||||
|
||||
if (deserializedContent == null)
|
||||
|
Loading…
Reference in New Issue
Block a user