From 92acb08431ab9dc93d40543416a15759fc717208 Mon Sep 17 00:00:00 2001 From: schellingb <14200249+schellingb@users.noreply.github.com> Date: Tue, 13 Aug 2024 23:11:34 +0900 Subject: [PATCH] Don't show warning 'Loaded into different program type' when loading a save state during a booted operating system --- src/dos/dos.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/dos/dos.cpp b/src/dos/dos.cpp index cb7f26dd..622492c9 100644 --- a/src/dos/dos.cpp +++ b/src/dos/dos.cpp @@ -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)