Show a warning message on game start if Chainfire3D is installed.

This commit is contained in:
Henrik Rydgard 2013-09-17 10:27:42 +02:00
parent 53c6149152
commit fce5067279
2 changed files with 6 additions and 1 deletions

View file

@ -390,7 +390,7 @@ DIRECTX9_GPU::DIRECTX9_GPU()
for (int i = 0; i < 0xEF; i++) {
if (dupeCheck.find((u8)i) == dupeCheck.end()) {
ERROR_LOG(G3D, "Command missing from table: %02x (%i)", i, i);
}
}
}
BuildReportingInfo();

View file

@ -117,6 +117,11 @@ void EmuScreen::bootGame(const std::string &filename) {
}
#endif
memset(virtKeys, 0, sizeof(virtKeys));
const char *renderer = (const char*)glGetString(GL_RENDERER);
if (strstr(renderer, "Chainfire3D") != 0) {
osm.Show("WARNING: Chainfire3D detected, may cause problems", 10.0f, 0xFF30a0FF, -1, true);
}
}
EmuScreen::~EmuScreen() {