@@ -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 ) ;
0 commit comments