Skip to content

Commit

Permalink
Merge pull request #21 from stone50/Use-App-Data
Browse files Browse the repository at this point in the history
Use godot appdata folder
  • Loading branch information
stone50 authored Oct 10, 2024
2 parents d997c04 + b5e9145 commit a154a83
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
```
Expand Down
4 changes: 2 additions & 2 deletions Scripts/Constants.cs
Original file line number Diff line number Diff line change
@@ -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");
Expand Down
2 changes: 1 addition & 1 deletion project.godot
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit a154a83

Please sign in to comment.