mirror of
https://github.com/ppy/osu.git
synced 2024-12-24 05:33:21 +08:00
87d6a743dd
It has transpired that on filename-case-sensitive filesystems, the tournament client does not consistently handle custom asset paths. Videos and mods could only be looked up from `videos` and `mods` directories (lowercase), while flags could only be looked up from the `Flags` directory (uppercase). A complicating circumstance is that default country flags, coming from osu-resources, also depend on the flag lookup being uppercased. To attempt to clean up the handling as much as it appears to be possible, automatically move user-supplied lowercase directories to uppercase.
20 lines
591 B
C#
20 lines
591 B
C#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
using osu.Framework.IO.Stores;
|
|
using osu.Framework.Platform;
|
|
|
|
namespace osu.Game.Tournament.IO
|
|
{
|
|
public class TournamentVideoResourceStore : NamespacedResourceStore<byte[]>
|
|
{
|
|
public TournamentVideoResourceStore(Storage storage)
|
|
: base(new StorageBackedResourceStore(storage), "Videos")
|
|
{
|
|
AddExtension("m4v");
|
|
AddExtension("avi");
|
|
AddExtension("mp4");
|
|
}
|
|
}
|
|
}
|