Skip to content

Commit

Permalink
Fixed an issue where roblox wouldn't launch if fastflags settings did…
Browse files Browse the repository at this point in the history
…n't exist yet
  • Loading branch information
OrigamingWasTaken committed Jul 1, 2024
1 parent 0771777 commit ddc5c62
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions frontend/src/windows/main/ts/roblox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ export async function parseFFlags(preset = false): Promise<Object> {
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.
Expand Down Expand Up @@ -100,6 +103,9 @@ export async function parseFFlags(preset = false): Promise<Object> {
}
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)
Expand Down

0 comments on commit ddc5c62

Please sign in to comment.