diff --git a/src/VexDevice.ts b/src/VexDevice.ts index 0dd02ed..dd94cd7 100644 --- a/src/VexDevice.ts +++ b/src/VexDevice.ts @@ -338,7 +338,7 @@ export class V5Brain { const bin = files.filter( (e) => e != null && e.filename === programName + ".bin", )[0]; - if (bin?.timestamp === 0 || bin.size === 0) continue; + if (bin == null || bin.timestamp === 0 || bin.size === 0) continue; const n = new Date(); n.setTime(1000 * bin.timestamp); diff --git a/src/VexIniConfig.ts b/src/VexIniConfig.ts index 96f8054..16a0f09 100644 --- a/src/VexIniConfig.ts +++ b/src/VexIniConfig.ts @@ -132,7 +132,8 @@ export class ProgramIniConfig { .addObjProperty("name", 32) .addObjProperty("description", 256) .addObjProperty("icon", 16) - .addObjProperty("iconalt", 16), + .addObjProperty("iconalt", 16) + .addObjProperty("slot", 16), ) .addComment("") .addSection(