| 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 | { |
nothing calls this directly
no test coverage detected