Add basic skin configuration decoding support

This commit is contained in:
Dean Herbert
2018-03-19 20:05:31 +09:00
parent 8e52d91180
commit 397b06283a
3 changed files with 32 additions and 2 deletions

View File

@ -25,6 +25,11 @@ namespace osu.Game.Skinning
storage = new LegacySkinResourceStore(skin, storage);
samples = audioManager.GetSampleManager(storage);
textures = new TextureStore(new RawTextureLoaderStore(storage));
var decoder = new LegacySkinDecoder();
using (StreamReader reader = new StreamReader(storage.GetStream("skin.ini")))
Configuration = decoder.Decode(reader);
}
public override Drawable GetDrawableComponent(string componentName)