Skip to content

Commit 97fde36

Browse files
fix: patch enable not being set correctly
1 parent a320a96 commit 97fde36

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/handlers/cheats-and-patches.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ export class PatchFile {
150150
author: e.getAttribute("Author") ?? "UNK",
151151
version: e.getAttribute("PatchVer") ?? "UNK",
152152
gameVersion: e.getAttribute("AppVer") ?? "UNK",
153-
isEnabled: e.getAttribute("Enabled") === "true",
153+
isEnabled: e.getAttribute("isEnabled") === "true",
154154
}));
155155
}
156156

@@ -159,10 +159,10 @@ export class PatchFile {
159159
enabled: boolean,
160160
): PatchLine | null {
161161
const el = patchLine.el;
162-
if (el.getAttribute("Enabled") === String(enabled)) {
162+
if (el.getAttribute("isEnabled") === String(enabled)) {
163163
return null;
164164
}
165-
el.setAttribute("Enabled", String(enabled));
165+
el.setAttribute("isEnabled", String(enabled));
166166
this.modified = true;
167167
return {
168168
...patchLine,

0 commit comments

Comments
 (0)