Warn if trying to run some games that are known to require buffered rendering with it not enabled.

This commit is contained in:
Henrik Rydgard 2017-03-14 10:36:51 +01:00
parent 45a99bbe33
commit e37decc9a8
4 changed files with 35 additions and 0 deletions

View file

@ -208,6 +208,7 @@ void EmuScreen::bootGame(const std::string &filename) {
coreParam.pixelWidth = pixel_xres;
coreParam.pixelHeight = pixel_yres;
std::string error_string;
if (!PSP_InitStart(coreParam, &error_string)) {
bootPending_ = false;
@ -216,6 +217,11 @@ void EmuScreen::bootGame(const std::string &filename) {
ERROR_LOG(BOOT, "%s", errorMessage_.c_str());
System_SendMessage("event", "failstartgame");
}
if (PSP_CoreParameter().compat.flags().RequireBufferedRendering && g_Config.iRenderingMode == FB_NON_BUFFERED_MODE) {
I18NCategory *gr = GetI18NCategory("Graphics");
host->NotifyUserMessage(gr->T("BufferedRenderingRequired", "Warning: This game requires Rendering Mode to be set to Buffered."), 15.0f);
}
}
void EmuScreen::bootComplete() {