mirror of
https://github.com/sigmasternchen/Wish
synced 2025-03-15 15:38:54 +00:00
fix for iceweasel
This commit is contained in:
parent
00fe6ecef4
commit
4b0d7fd1ca
1 changed files with 7 additions and 7 deletions
14
BIOS.js
14
BIOS.js
|
@ -21,18 +21,18 @@ BIOS.init = function() {
|
||||||
BIOS.main = function() {
|
BIOS.main = function() {
|
||||||
console.log("BIOS: main");
|
console.log("BIOS: main");
|
||||||
console.log("BIOS: register 100ms-timer");
|
console.log("BIOS: register 100ms-timer");
|
||||||
this.tickid = Emulator.registerTimer(100, BIOS.tick);
|
BIOS.tickid = Emulator.registerTimer(100, BIOS.tick);
|
||||||
console.log("BIOS: get hdds");
|
console.log("BIOS: get hdds");
|
||||||
this.hdds = Emulator.Devices.getHarddisks();
|
BIOS.hdds = Emulator.Devices.getHarddisks();
|
||||||
var text = this.logo + "\n" +
|
var text = BIOS.logo + "\n" +
|
||||||
"Keyboard: found at name=" + Emulator.input.name + "\n" +
|
"Keyboard: found at name=" + Emulator.input.name + "\n" +
|
||||||
"Monitor: found at id=" + Emulator.Output.screen.parentElement.id + "\n\n" +
|
"Monitor: found at id=" + Emulator.Output.screen.parentElement.id + "\n\n" +
|
||||||
"Harddisks: \n";
|
"Harddisks: \n";
|
||||||
for (var i = 0; i < this.hdds.length; i++) {
|
for (var i = 0; i < BIOS.hdds.length; i++) {
|
||||||
text += " " + i + ": "+ this.hdds[i].name + "\n";
|
text += " " + i + ": "+ BIOS.hdds[i].name + "\n";
|
||||||
}
|
}
|
||||||
Emulator.output(text);
|
Emulator.output(text);
|
||||||
if (this.hdds.length == 0) {
|
if (BIOS.hdds.length == 0) {
|
||||||
Emulator.output("No harddisks found. Please insert a bootable device and restart the computer..\n\n");
|
Emulator.output("No harddisks found. Please insert a bootable device and restart the computer..\n\n");
|
||||||
Emulator.output("\033[31msystem halt\033[0m");
|
Emulator.output("\033[31msystem halt\033[0m");
|
||||||
console.log("BIOS: remove all event handlers");
|
console.log("BIOS: remove all event handlers");
|
||||||
|
@ -40,7 +40,7 @@ BIOS.main = function() {
|
||||||
Emulator.unregisterTimer(this.tickid);
|
Emulator.unregisterTimer(this.tickid);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (this.hdds.length > 1) {
|
if (BIOSs.hdds.length > 1) {
|
||||||
Emulator.output("\nPlease select booting device by pressing the device nr. ");
|
Emulator.output("\nPlease select booting device by pressing the device nr. ");
|
||||||
this.state = 0;
|
this.state = 0;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue