Skip to content

Commit

Permalink
Fixed spurious disk restore warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffpar committed Dec 14, 2023
1 parent 2a05810 commit 030fd92
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion machines/pcx86/modules/v2/debugger.js
Original file line number Diff line number Diff line change
Expand Up @@ -4754,7 +4754,7 @@ export default class Debuggerx86 extends DbgLib {
dbg.printf(MESSAGE.DEBUG + MESSAGE.LOG, "%s.%s: %%%X\n", sVxD, sSymbol, offSymbol);
}
} else {
// dbg.printf(MESSAGE.DEBUG + MESSAGE.WARNING, "%s.%s (%x) already has symbol: %s\n", sVxD, sSymbol, offSymbol, symbolTable.aOffsets[result][1]);
// dbg.printf(MESSAGE.DEBUG + MESSAGE.WARNING, "%s.%s (%%%X) already has symbol: %s\n", sVxD, sSymbol, offSymbol, symbolTable.aOffsets[result][1]);
symbolTable.aOffsets[result] = pair;
symbolTable.aSymbols[keySymbol] = {'o': offSymbol, 's': symbolTable.sel};
}
Expand Down
4 changes: 2 additions & 2 deletions machines/pcx86/modules/v2/disk.js
Original file line number Diff line number Diff line change
Expand Up @@ -1024,11 +1024,11 @@ export default class Disk extends Component {
* addModuleInfo(sector)
*
* @this {Disk}
* @param {Sector} sector
* @param {Sector|null} sector
*/
addModuleInfo(sector)
{
if (SYMBOLS && sector.file) {
if (SYMBOLS && sector && sector.file) {
let module = sector.file.module;
if (module) {
this.aModules[module.name] = module;
Expand Down
6 changes: 3 additions & 3 deletions machines/pcx86/releases/2.23/pcx86-uncompiled.js
Original file line number Diff line number Diff line change
Expand Up @@ -64830,11 +64830,11 @@ class Disk extends Component {
* addModuleInfo(sector)
*
* @this {Disk}
* @param {Sector} sector
* @param {Sector|null} sector
*/
addModuleInfo(sector)
{
if (SYMBOLS && sector.file) {
if (SYMBOLS && sector && sector.file) {
let module = sector.file.module;
if (module) {
this.aModules[module.name] = module;
Expand Down Expand Up @@ -79133,7 +79133,7 @@ class Debuggerx86 extends DbgLib {
dbg.printf(MESSAGE.DEBUG + MESSAGE.LOG, "%s.%s: %%%X\n", sVxD, sSymbol, offSymbol);
}
} else {
// dbg.printf(MESSAGE.DEBUG + MESSAGE.WARNING, "%s.%s (%x) already has symbol: %s\n", sVxD, sSymbol, offSymbol, symbolTable.aOffsets[result][1]);
// dbg.printf(MESSAGE.DEBUG + MESSAGE.WARNING, "%s.%s (%%%X) already has symbol: %s\n", sVxD, sSymbol, offSymbol, symbolTable.aOffsets[result][1]);
symbolTable.aOffsets[result] = pair;
symbolTable.aSymbols[keySymbol] = {'o': offSymbol, 's': symbolTable.sel};
}
Expand Down
2 changes: 1 addition & 1 deletion machines/pcx86/releases/2.23/pcx86.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion machines/pcx86/releases/2.23/pcx86.js.map

Large diffs are not rendered by default.

0 comments on commit 030fd92

Please sign in to comment.