Skip to content

Commit

Permalink
Rename the new warmup variable from #14091
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Feb 9, 2021
1 parent 8b05561 commit 8b101ae
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Core/Compatibility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ void Compatibility::CheckSettings(IniFile &iniFile, const std::string &gameID) {
CheckSetting(iniFile, gameID, "ShaderColorBitmask", &flags_.ShaderColorBitmask);
CheckSetting(iniFile, gameID, "DisableFirstFrameReadback", &flags_.DisableFirstFrameReadback);
CheckSetting(iniFile, gameID, "DisableRangeCulling", &flags_.DisableRangeCulling);
CheckSetting(iniFile, gameID, "MpegWarmUpForGodEaterSeries", &flags_.MpegWarmUpForGodEaterSeries);
CheckSetting(iniFile, gameID, "MpegAvcWarmUp", &flags_.MpegAvcWarmUp);
}

void Compatibility::CheckSetting(IniFile &iniFile, const std::string &gameID, const char *option, bool *flag) {
Expand Down
2 changes: 1 addition & 1 deletion Core/Compatibility.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ struct CompatFlags {
bool ShaderColorBitmask;
bool DisableFirstFrameReadback;
bool DisableRangeCulling;
bool MpegWarmUpForGodEaterSeries;
bool MpegAvcWarmUp;
};

class IniFile;
Expand Down
2 changes: 1 addition & 1 deletion Core/HLE/sceMpeg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1587,7 +1587,7 @@ static int sceMpegGetAvcAu(u32 mpeg, u32 streamId, u32 auAddr, u32 attrAddr)
return -1;
}

if (PSP_CoreParameter().compat.flags().MpegWarmUpForGodEaterSeries) {
if (PSP_CoreParameter().compat.flags().MpegAvcWarmUp) {
if (ctx->mpegwarmUp == 0) {
DEBUG_LOG(ME, "sceMpegGetAvcAu(%08x, %08x, %08x, %08x): warming up", mpeg, streamId, auAddr, attrAddr);
ctx->mpegwarmUp++;
Expand Down
2 changes: 1 addition & 1 deletion assets/compat.ini
Original file line number Diff line number Diff line change
Expand Up @@ -989,7 +989,7 @@ UCES00001 = true
UCKS45008 = true
NPJG00059 = true

[MpegWarmUpForGodEaterSeries]
[MpegAvcWarmUp]
# God Eater issue #13527 ,It is custom mpeg library that required sceMpegGetAvcAu return ERROR_MPEG_NO_DATA but break FIFA 14 issue #14086
# God Eater 1
ULJS00237 = true
Expand Down

1 comment on commit 8b101ae

@sum2012
Copy link
Collaborator

@sum2012 sum2012 commented on 8b101ae Feb 9, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes,better name

Please sign in to comment.