This repository has been archived on 2025-08-02. You can view files and clone it, but cannot push or open issues or pull requests.
Files
Cryville.EEW.Unity/Assets/Cryville.EEW.Unity/LocalizedResourcesManager.cs
2025-02-14 16:06:00 +08:00

14 lines
406 B
C#

using Cryville.EEW.Core;
using System.IO;
using UnityEngine;
namespace Cryville.EEW.Unity {
sealed class LocalizedResourcesManager : JSONFileLocalizedResourceManager {
protected override Stream Open(string path) {
path = Path.Combine(Application.streamingAssetsPath, "Messages", path);
if (!File.Exists(path)) return null;
return new FileStream(path, FileMode.Open, FileAccess.Read);
}
}
}