From 5978474523d27bf8d5594dd1b3df87aafe16debe Mon Sep 17 00:00:00 2001 From: Kostiantyn Cherniavskyi Date: Sun, 1 Feb 2026 15:07:22 +0100 Subject: [PATCH] Online: allow BIOS dump without selection --- docs/tool.html | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/docs/tool.html b/docs/tool.html index fb75d11..073c1e9 100644 --- a/docs/tool.html +++ b/docs/tool.html @@ -148,7 +148,9 @@ text.push("@echo off"); text.push(":: Mi899.Online - " + dateString); text.push(":: Motherboard: " + this.motherboard.name() + " " + this.motherboard.version()); - text.push(":: BIOS: " + bios.Name); + + if (bios) + text.push(":: BIOS: " + bios.Name); text.push(":: Tool: " + this.tool.name() + " " + this.tool.version()); text.push(""); @@ -162,14 +164,8 @@ }.bind(this); this.btnDumpBiosClick = async function () { - const bios = this.bios.selected(); const dateString = getCurrentDateAsString(); - if (!bios) { - console.warn("No BIOS selected."); - return; - } - this.btnDumpBiosDisable(true); // Download and load tool ZIP. @@ -180,7 +176,7 @@ // Generate dump.bat file. const biosFileName = this.motherboard.id() + "-" + dateString + ".rom"; const text = []; - this.writeScriptHeader(text, dateString, bios); + this.writeScriptHeader(text, dateString, null); text.push(this.tool.dumpCommand.replace("{0}", biosFileName)); this.writeScriptFooter(text);