MCPcopy Create free account
hub / github.com/Norbyte/ositools / DetectGameVersion

Method DetectGameVersion

OsiInterface/Debugger.cpp:780–795  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

778 }
779
780 void Debugger::DetectGameVersion()
781 {
782 auto & dbs = (*globals_.Databases)->Db;
783 assert(dbs.Size > 0);
784 auto db1 = *dbs.Start;
785 bool isDE = Database::IsDatabaseDOS2DE(db1,
786 gOsirisProxy->GetOsirisDllStart(),
787 (uint8_t *)gOsirisProxy->GetOsirisDllStart() + gOsirisProxy->GetOsirisDllSize());
788 if (isDE) {
789 gGameType = GameType::DOS2DE;
790 Debug("Debugger::DetectGameVersion(): Detected D:OS2 DE");
791 } else {
792 gGameType = GameType::DOS2;
793 Debug("Debugger::DetectGameVersion(): Detected D:OS2 Classic");
794 }
795 }
796
797 void Debugger::ServerThreadReentry()
798 {

Callers

nothing calls this directly

Calls 3

DebugFunction · 0.85
GetOsirisDllStartMethod · 0.80
GetOsirisDllSizeMethod · 0.80

Tested by

no test coverage detected