From a70e103720b1240a152eb8e76bf76f2110ff2e77 Mon Sep 17 00:00:00 2001 From: Virx Date: Fri, 1 May 2026 17:14:26 -0400 Subject: [PATCH 1/2] Include subfolder in Windows default path --- app.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.go b/app.go index 2a9d475..409370d 100644 --- a/app.go +++ b/app.go @@ -39,7 +39,7 @@ func (a *App) IgnoreMe( func (a *App) GetDefaultPath(subfolder string) string { if runtime.GOOS == "windows" { localappdata := os.Getenv("LOCALAPPDATA") - return filepath.Join(localappdata, "RLBot5") + return filepath.Join(localappdata, "RLBot5", subfolder) } // assume linux From 77c600f955fbe80e40bc5d9c30a7567c1e1324f2 Mon Sep 17 00:00:00 2001 From: Virx Date: Fri, 1 May 2026 17:14:33 -0400 Subject: [PATCH 2/2] Format project --- frontend/src/components/AddBotpack.svelte | 5 +---- frontend/src/index.ts | 8 ++++---- players.go | 6 +++--- 3 files changed, 8 insertions(+), 11 deletions(-) diff --git a/frontend/src/components/AddBotpack.svelte b/frontend/src/components/AddBotpack.svelte index f9fb91e..6ba99c9 100644 --- a/frontend/src/components/AddBotpack.svelte +++ b/frontend/src/components/AddBotpack.svelte @@ -4,10 +4,7 @@ import { App } from "../../bindings/gui"; import Modal from "./Modal.svelte"; import ProgressBar from "./ProgressBar.svelte"; -const OFFICIAL_BOTPACK_REPOS = [ - "RLBot/botpack", - "VirxEC/pytorch-archive", -]; +const OFFICIAL_BOTPACK_REPOS = ["RLBot/botpack", "VirxEC/pytorch-archive"]; let { visible = $bindable(false), diff --git a/frontend/src/index.ts b/frontend/src/index.ts index 4193c05..c22925b 100644 --- a/frontend/src/index.ts +++ b/frontend/src/index.ts @@ -24,26 +24,26 @@ const app: any = mount(App, { export function parseJSON(item: string | null): any | null { if (item === null) { - return null + return null; } try { return JSON.parse(item); } catch (e) { - console.warn("JSON Parse error", e) + console.warn("JSON Parse error", e); return null; } } export function parseSuperJSON(item: string | null): any | null { if (item === null) { - return null + return null; } try { return SuperJSON.parse(item); } catch (e) { - console.warn("SuperJSON Parse error", e) + console.warn("SuperJSON Parse error", e); return null; } } diff --git a/players.go b/players.go index d95f54a..bcc8d49 100644 --- a/players.go +++ b/players.go @@ -163,7 +163,7 @@ type BotInfo struct { Config BotConfig `json:"config"` Loadout *LoadoutConfig `json:"loadout,omitempty"` TomlPath string `json:"tomlPath"` - Icon string `json:"icon"` + Icon string `json:"icon"` } func (botInfo BotInfo) ToPlayerConfig(team uint32) *flat.PlayerConfigurationT { @@ -280,7 +280,7 @@ func (a *App) GetBots(paths []string) []BotInfo { } // Read logo file and convert it to data url so the frontend can use it - var icon string; + var icon string logo_data, err := os.ReadFile(logo_file) if err != nil { // only warn if the logo file was explicitly set @@ -306,7 +306,7 @@ func (a *App) GetBots(paths []string) []BotInfo { Config: conf, Loadout: loadout, TomlPath: potentialConfigPath, - Icon: icon, + Icon: icon, }) }