Skip to content

Commit

Permalink
Don't show warning 'Loaded into different program type' when loading …
Browse files Browse the repository at this point in the history
…a save state during a booted operating system
  • Loading branch information
schellingb committed Aug 13, 2024
1 parent 54b12ff commit 92acb08
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/dos/dos.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1405,9 +1405,13 @@ void DBPSerialize_DOS(DBPArchive& ar)

if (ar.mode == DBPArchive::MODE_LOAD)
{
if (old_dos_memseg != dos_memseg) ar.warnings |= DBPArchive::WARN_WRONGPROGRAM;
if (old_info_seg != dos_infoblock.seg) ar.warnings |= DBPArchive::WARN_WRONGPROGRAM;
if (old_other_memsystems != other_memsystems) ar.warnings |= DBPArchive::WARN_WRONGPROGRAM;
extern const char* RunningProgram;
if (strcmp(RunningProgram, "BOOT"))
{
if (old_dos_memseg != dos_memseg) ar.warnings |= DBPArchive::WARN_WRONGPROGRAM;
if (old_info_seg != dos_infoblock.seg) ar.warnings |= DBPArchive::WARN_WRONGPROGRAM;
if (old_other_memsystems != other_memsystems) ar.warnings |= DBPArchive::WARN_WRONGPROGRAM;
}
DOS_SetMemAllocStrategy(memallocstrategy);
}
else if (ar.mode == DBPArchive::MODE_ZERO)
Expand Down

0 comments on commit 92acb08

Please sign in to comment.