| 1234567891011121314151617181920212223 |
- using System.Collections.Generic;
- using System.IO;
- namespace ET
- {
- public static class LoadConfigHelper
- {
- public static void GetAllConfigBytes(Dictionary<string, byte[]> output)
- {
- foreach (string file in Directory.GetFiles($"../Config", "*.bytes"))
- {
- string key = Path.GetFileNameWithoutExtension(file);
- output[key] = File.ReadAllBytes(file);
- }
- }
-
- public static byte[] GetOneConfigBytes(string configName)
- {
- byte[] configBytes = File.ReadAllBytes($"../Config/{configName}.bytes");
- return configBytes;
- }
- }
- }
|