Skip to content

Commit

Permalink
Fix issue where "Texture replacement pack activated" wasn't displayed…
Browse files Browse the repository at this point in the history
… without an ini
  • Loading branch information
hrydgard committed Dec 25, 2023
1 parent 126d70c commit c2963c7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions GPU/Common/TextureReplacer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,9 @@ bool TextureReplacer::LoadIni() {
}
}

auto gr = GetI18NCategory(I18NCat::GRAPHICS);
g_OSD.Show(OSDType::MESSAGE_SUCCESS, gr->T("Texture replacement pack activated"), 2.0f);

vfs_ = dir;

// If we have stuff loaded from before, need to update the vfs pointers to avoid
Expand Down Expand Up @@ -380,9 +383,6 @@ bool TextureReplacer::LoadIniValues(IniFile &ini, VFSBackend *dir, bool isOverri
}
}

auto gr = GetI18NCategory(I18NCat::GRAPHICS);

g_OSD.Show(OSDType::MESSAGE_SUCCESS, gr->T("Texture replacement pack activated"), 2.0f);
return true;
}

Expand Down

0 comments on commit c2963c7

Please sign in to comment.