Skip to content
This repository was archived by the owner on Aug 17, 2025. It is now read-only.

Commit e6a8bad

Browse files
authored
Add nxtheme version 16 support
1 parent ebf22f0 commit e6a8bad

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

src/filetypes/InjectorLayout.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,17 @@ export default class InjectorLayout {
1212
private target;
1313
private id;
1414
private hideOnlineBtn = false;
15+
private targetFirmwareValue;
1516
private files = [];
1617
private anims = [];
1718

18-
constructor(name?, author?, target?, id?, hideOnlineBtn?, files?, anims?) {
19+
constructor(name?, author?, target?, id?, hideOnlineBtn?, targetFirmwareValue?, files?, anims?) {
1920
this.name = name;
2021
this.author = author;
2122
this.target = target ? (target + ".szs") : undefined;
2223
this.id = id;
2324
this.hideOnlineBtn = hideOnlineBtn;
25+
this.targetFirmwareValue = targetFirmwareValue;
2426
this.files = files;
2527
this.anims = anims;
2628
}
@@ -45,6 +47,10 @@ export default class InjectorLayout {
4547
return this.hideOnlineBtn;
4648
}
4749

50+
get getTargetFirmwareValue(): boolean {
51+
return this.targetFirmwareValue;
52+
}
53+
4854
get getFiles(): any[] {
4955
return this.files;
5056
}
@@ -65,6 +71,7 @@ export default class InjectorLayout {
6571
this.target = this.target || json.TargetName;
6672
this.id = this.id || json.ID;
6773
this.hideOnlineBtn = json.HideOnlineBtn;
74+
this.targetFirmwareValue = json.TargetFirmwareValue;
6875
this.files = json.Files;
6976
this.anims = json.Anims;
7077
};
@@ -76,6 +83,7 @@ export default class InjectorLayout {
7683
TargetName: this.target,
7784
ID: finalID || this.id,
7885
HideOnlineBtn: this.hideOnlineBtn,
86+
TargetFirmwareValue: this.targetFirmwareValue,
7987
Files: this.files,
8088
Anims: this.anims,
8189
}, null, 4);

src/filetypes/Theme.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export default class Theme {
8888

8989
getInfo = () => {
9090
return {
91-
Version: 15,
91+
Version: 16,
9292
ThemeName: this.name,
9393
Author: this.author,
9494
Target: fileNameToThemeTarget(this.target),

0 commit comments

Comments
 (0)