mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 16:02:55 +08:00
Rename VideoStorage to VideoStore
This commit is contained in:
parent
5d49b709b9
commit
2964b457a0
@ -30,7 +30,7 @@ namespace osu.Game.Tournament.Components
|
|||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load(TournamentStorage storage)
|
private void load(TournamentStorage storage)
|
||||||
{
|
{
|
||||||
var stream = storage.VideoStorage.GetStream($@"{filename}");
|
var stream = storage.VideoStore.GetStream($@"{filename}");
|
||||||
|
|
||||||
if (stream != null)
|
if (stream != null)
|
||||||
{
|
{
|
||||||
|
@ -15,7 +15,7 @@ namespace osu.Game.Tournament.IO
|
|||||||
internal class TournamentStorage : WrappedStorage
|
internal class TournamentStorage : WrappedStorage
|
||||||
{
|
{
|
||||||
private readonly GameHost host;
|
private readonly GameHost host;
|
||||||
internal readonly TournamentVideoStorage VideoStorage;
|
internal readonly TournamentVideoResourceStore VideoStore;
|
||||||
private const string default_tournament = "default";
|
private const string default_tournament = "default";
|
||||||
|
|
||||||
public TournamentStorage(GameHost host)
|
public TournamentStorage(GameHost host)
|
||||||
@ -39,7 +39,7 @@ namespace osu.Game.Tournament.IO
|
|||||||
ChangeTargetStorage(UnderlyingStorage.GetStorageForDirectory(default_tournament));
|
ChangeTargetStorage(UnderlyingStorage.GetStorageForDirectory(default_tournament));
|
||||||
}
|
}
|
||||||
|
|
||||||
VideoStorage = new TournamentVideoStorage(this);
|
VideoStore = new TournamentVideoResourceStore(this);
|
||||||
Logger.Log("Using tournament storage: " + GetFullPath(string.Empty));
|
Logger.Log("Using tournament storage: " + GetFullPath(string.Empty));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -118,9 +118,9 @@ namespace osu.Game.Tournament.IO
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
internal class TournamentVideoStorage : NamespacedResourceStore<byte[]>
|
internal class TournamentVideoResourceStore : NamespacedResourceStore<byte[]>
|
||||||
{
|
{
|
||||||
public TournamentVideoStorage(Storage storage)
|
public TournamentVideoResourceStore(Storage storage)
|
||||||
: base(new StorageBackedResourceStore(storage), "videos")
|
: base(new StorageBackedResourceStore(storage), "videos")
|
||||||
{
|
{
|
||||||
AddExtension("m4v");
|
AddExtension("m4v");
|
||||||
|
@ -56,7 +56,7 @@ namespace osu.Game.Tournament
|
|||||||
|
|
||||||
dependencies.CacheAs(storage = new TournamentStorage(Host));
|
dependencies.CacheAs(storage = new TournamentStorage(Host));
|
||||||
|
|
||||||
Textures.AddStore(new TextureLoaderStore(storage.VideoStorage));
|
Textures.AddStore(new TextureLoaderStore(storage.VideoStore));
|
||||||
|
|
||||||
windowSize = frameworkConfig.GetBindable<Size>(FrameworkSetting.WindowedSize);
|
windowSize = frameworkConfig.GetBindable<Size>(FrameworkSetting.WindowedSize);
|
||||||
windowSize.BindValueChanged(size => ScheduleAfterChildren(() =>
|
windowSize.BindValueChanged(size => ScheduleAfterChildren(() =>
|
||||||
|
Loading…
Reference in New Issue
Block a user