diff options
Diffstat (limited to 'TimeHACK.Engine/SaveSystem.cs')
| -rw-r--r-- | TimeHACK.Engine/SaveSystem.cs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/TimeHACK.Engine/SaveSystem.cs b/TimeHACK.Engine/SaveSystem.cs index 5a90902..6ebdf12 100644 --- a/TimeHACK.Engine/SaveSystem.cs +++ b/TimeHACK.Engine/SaveSystem.cs @@ -23,7 +23,6 @@ namespace TimeHACK.Engine public static class SaveSystem { public static Save CurrentSave { get; set; } - public static FileSystemFolderInfo filesystemflinfo { get; set; } public static bool DevMode = false; public static Form troubleshooter; @@ -598,6 +597,13 @@ namespace TimeHACK.Engine return byt; } + public static void SaveAchievement(int achievementID) + { + byte[] byt = File.ReadAllBytes(Path.Combine(DataDirectory, "achieved.thack")); + byt[achievementID] = 1; + File.WriteAllBytes(Path.Combine(DataDirectory, "achieved.thack"), byt); + } + public static void SetTheme() { switch (CurrentSave.ThemeName) |
