From ddc5c62303221c107b323d1841daa00910311ce7 Mon Sep 17 00:00:00 2001 From: OrigamingWasTaken <74014262+OrigamingWasTaken@users.noreply.github.com> Date: Mon, 1 Jul 2024 11:48:07 +0200 Subject: [PATCH] Fixed an issue where roblox wouldn't launch if fastflags settings didn't exist yet --- frontend/src/windows/main/ts/roblox.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/frontend/src/windows/main/ts/roblox.ts b/frontend/src/windows/main/ts/roblox.ts index d1c7708..2f483b6 100644 --- a/frontend/src/windows/main/ts/roblox.ts +++ b/frontend/src/windows/main/ts/roblox.ts @@ -35,6 +35,9 @@ export async function parseFFlags(preset = false): Promise { const appPath = await dataPath(); let fflagsJson: { [key: string]: string | number } = {}; if (preset) { + if (!await pathExists(path.join(appPath,"fastflags.neustorage"))) { + return {} + } const neuPath = path.join(appPath, "fastflags.neustorage"); const ohioFinalBoss = JSON.parse(await filesystem.readFile(neuPath)); // i know this isn't efficient, but i didn't want to re-write the fastlfags saving system. @@ -100,6 +103,9 @@ export async function parseFFlags(preset = false): Promise { } return fflagsJson; } else { + if (!await pathExists(path.join(appPath,"fflags.neustorage"))) { + return {} + } const neuPath = path.join(appPath, "fflags.neustorage"); const skibidiOhioFanumTax: { flag: string; enabled: boolean; value: string | number }[] = JSON.parse( await filesystem.readFile(neuPath)