aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Engine
diff options
context:
space:
mode:
authorlempamo <[email protected]>2017-08-05 21:14:30 -0400
committerlempamo <[email protected]>2017-08-05 21:14:30 -0400
commita66494723ce44ed7eb38ebef83f59468b7279c2d (patch)
treea043441698b1c75f505de6ffed1ab866feed96bd /TimeHACK.Engine
parentbc8577b76162054e47e93f0ada8b2fedf95cd80a (diff)
downloadhistacom2-a66494723ce44ed7eb38ebef83f59468b7279c2d.tar.gz
histacom2-a66494723ce44ed7eb38ebef83f59468b7279c2d.tar.bz2
histacom2-a66494723ce44ed7eb38ebef83f59468b7279c2d.zip
added real achievements
Diffstat (limited to 'TimeHACK.Engine')
-rw-r--r--TimeHACK.Engine/SaveSystem.cs8
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)