mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
cctor->Register
This commit is contained in:
@ -14,7 +14,7 @@ namespace osu.Desktop.Beatmaps.IO
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public class LegacyFilesystemReader : ArchiveReader
|
public class LegacyFilesystemReader : ArchiveReader
|
||||||
{
|
{
|
||||||
static LegacyFilesystemReader()
|
public static void Register()
|
||||||
{
|
{
|
||||||
AddReader<LegacyFilesystemReader>((storage, path) => Directory.Exists(path));
|
AddReader<LegacyFilesystemReader>((storage, path) => Directory.Exists(path));
|
||||||
}
|
}
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
using osu.Desktop.Beatmaps.IO;
|
||||||
using osu.Framework;
|
using osu.Framework;
|
||||||
using osu.Framework.Desktop;
|
using osu.Framework.Desktop;
|
||||||
using osu.Framework.Desktop.Platform;
|
using osu.Framework.Desktop.Platform;
|
||||||
@ -18,6 +19,7 @@ namespace osu.Desktop
|
|||||||
[STAThread]
|
[STAThread]
|
||||||
public static int Main(string[] args)
|
public static int Main(string[] args)
|
||||||
{
|
{
|
||||||
|
LegacyFilesystemReader.Register();
|
||||||
using (DesktopGameHost host = Host.GetSuitableHost(@"osu", true))
|
using (DesktopGameHost host = Host.GetSuitableHost(@"osu", true))
|
||||||
{
|
{
|
||||||
if (!host.IsPrimaryInstance)
|
if (!host.IsPrimaryInstance)
|
||||||
|
Reference in New Issue
Block a user