Skip to content

Commit

Permalink
Font: Remove needless ReadStruct().
Browse files Browse the repository at this point in the history
  • Loading branch information
unknownbrackets committed Sep 3, 2022
1 parent a86b904 commit 79c7a91
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Core/HLE/sceFont.cpp
Expand Up @@ -486,8 +486,8 @@ class FontLib {
// For save states only.
}

FontLib(u32 paramPtr, u32 errorCodePtr) {
Memory::ReadStruct(paramPtr, &params_);
FontLib(FontNewLibParams *params, u32 errorCodePtr) {
params_ = *params;
if (params_.numFonts > 9) {
params_.numFonts = 9;
}
Expand Down Expand Up @@ -998,7 +998,7 @@ static u32 sceFontNewLib(u32 paramPtr, u32 errorCodePtr) {
INFO_LOG(SCEFONT, "sceFontNewLib(%08x, %08x)", paramPtr, errorCodePtr);
*errorCode = 0;

FontLib *newLib = new FontLib(paramPtr, errorCodePtr);
FontLib *newLib = new FontLib(params, errorCodePtr);
fontLibList.push_back(newLib);
// The game should never see this value, the return value is replaced
// by the action. Except if we disable the alloc, in this case we return
Expand Down

0 comments on commit 79c7a91

Please sign in to comment.