21 lines
712 B
C#
21 lines
712 B
C#
using System.IO;
|
|
|
|
namespace ParadoxSaveParser.WebAPI;
|
|
|
|
public static class PathHelper
|
|
{
|
|
public static readonly IOPath DATA_DIR = "data";
|
|
public static readonly IOPath SAVES_DIR = Path.Concat(DATA_DIR, "saves");
|
|
|
|
public static IOPath GetMetaFilePath(string save_id) => Path.Concat(SAVES_DIR, save_id + ".meta.json");
|
|
|
|
public static IOPath GetSaveFilePath(string save_id) => Path.Concat(SAVES_DIR, save_id + ".eu4");
|
|
|
|
public static IOPath GetParsedSaveFilePath(string save_id) => Path.Concat(SAVES_DIR, save_id + ".parsed.json");
|
|
|
|
public static void CreateProgramDirectories()
|
|
{
|
|
Directory.Create(DATA_DIR);
|
|
Directory.Create(SAVES_DIR);
|
|
}
|
|
} |