Skip to content
This repository was archived by the owner on Apr 7, 2023. It is now read-only.

Commit 4ea89bc

Browse files
committed
Updated API to 3.1.21
1 parent 4442393 commit 4ea89bc

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

ToggleTag/ToggleTag.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ namespace ToggleTag
2020
name = "ToggleTag",
2121
description = "Persistant toggeling of role tags and overwatch.",
2222
id = "karlofduty.toggletag",
23-
version = "1.1.1",
23+
version = "1.1.2",
2424
SmodMajor = 3,
2525
SmodMinor = 1,
26-
SmodRevision = 19
26+
SmodRevision = 21
2727
)]
2828
public class ToggleTag : Plugin
2929
{
@@ -43,16 +43,16 @@ public override void OnDisable()
4343

4444
public override void OnEnable()
4545
{
46-
if (!Directory.Exists(FileManager.AppFolder + "ToggleTag"))
46+
if (!Directory.Exists(FileManager.GetAppFolder() + "ToggleTag"))
4747
{
48-
Directory.CreateDirectory(FileManager.AppFolder + "ToggleTag");
48+
Directory.CreateDirectory(FileManager.GetAppFolder() + "ToggleTag");
4949
}
5050

51-
if (!File.Exists(FileManager.AppFolder + "ToggleTag/data.json"))
51+
if (!File.Exists(FileManager.GetAppFolder() + "ToggleTag/data.json"))
5252
{
53-
File.WriteAllText(FileManager.AppFolder + "ToggleTag/data.json", defaultConfig);
53+
File.WriteAllText(FileManager.GetAppFolder() + "ToggleTag/data.json", defaultConfig);
5454
}
55-
JToken jsonObject = JToken.Parse(File.ReadAllText(FileManager.AppFolder + "ToggleTag/data.json"));
55+
JToken jsonObject = JToken.Parse(File.ReadAllText(FileManager.GetAppFolder() + "ToggleTag/data.json"));
5656

5757
tagsToggled = new HashSet<string>(jsonObject.SelectToken("tags").Values<string>());
5858
overwatchToggled = new HashSet<string>(jsonObject.SelectToken("overwatch").Values<string>());
@@ -85,7 +85,7 @@ public void SaveTagsToFile()
8585
builder.Append(" \"" + line + "\"," + "\n");
8686
}
8787
builder.Append(" ]\n}");
88-
File.WriteAllText(FileManager.AppFolder + "ToggleTag/data.json", builder.ToString());
88+
File.WriteAllText(FileManager.GetAppFolder() + "ToggleTag/data.json", builder.ToString());
8989
}
9090

9191
public static bool IsPossibleSteamID(string steamID)
-19 KB
Binary file not shown.

ToggleTag/lib/Smod2/Smod2.dll

1.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)