mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-15 06:35:20 -07:00
17 lines
No EOL
598 B
JavaScript
17 lines
No EOL
598 B
JavaScript
var Fvmlib = function Fvmlib(name, minor_version, header_addr) {
|
|
this.name = name || 0x00000000;
|
|
this.minor_version = minor_version || 0x00000000;
|
|
this.header_addr = header_addr || 0x00000000;
|
|
this.toString = function() {
|
|
return JSON.stringify(this);
|
|
};
|
|
};
|
|
|
|
var FvmlibCommand = function FvmlibCommand(cmd, cmdsize, fvmlib) {
|
|
this.cmd = cmd || 0x00000000;
|
|
this.cmdsize = cmdsize || 0x00000000;
|
|
this.fvmlib = fvmlib || new Fvmlib(); //needs better input validation
|
|
this.toString = function() {
|
|
return JSON.stringify(this);
|
|
};
|
|
}; |