diff --git a/README.md b/README.md index b7f14a7..1f910f0 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ Both applications need to have the same redirect URL. ### Configure the Bot -Navigate to your roaming user's application data folder (ex. on Windows "C:\Users\\\<your user>\AppData\Roaming"). +Navigate the bot's application data folder (ex. on Windows "C:\Users\\\<your user>\AppData\Roaming\Godot\app_userdata"). Create a new folder named "Stonebot". Add a `config.json` file to the new folder with the contents: ``` diff --git a/Scripts/Constants.cs b/Scripts/Constants.cs index f215635..c93b595 100644 --- a/Scripts/Constants.cs +++ b/Scripts/Constants.cs @@ -1,9 +1,9 @@ namespace Stonebot.Scripts { - using System; + using Godot; using System.IO; internal static class Constants { - public static readonly string AppDataPath = Path.Join(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Stonebot"); + public static readonly string AppDataPath = ProjectSettings.GlobalizePath("user://"); public static readonly string ConfigFilePath = Path.Join(AppDataPath, "config.json"); public static readonly string CacheFilePath = Path.Join(AppDataPath, "cache.json"); public static readonly string DataFilePath = Path.Join(AppDataPath, "data.json"); diff --git a/project.godot b/project.godot index b4acb7b..bf3593e 100644 --- a/project.godot +++ b/project.godot @@ -12,7 +12,7 @@ config_version=5 config/name="Stonebot" config/description="A chatbot for Twitch" -config/version="0.1.0" +config/version="0.3.0" run/main_scene="res://Scenes/Main.tscn" config/features=PackedStringArray("4.3", "C#", "Forward Plus") boot_splash/image="res://Icons/Logo.png"