mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 11:49:06 +00:00
Eliminate ini file loading in the paint, sort, and tooltip events.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7403 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
668d335181
commit
c990f12932
4 changed files with 73 additions and 80 deletions
|
@ -27,6 +27,7 @@
|
|||
#include "ISOFile.h"
|
||||
#include "StringUtil.h"
|
||||
#include "Hash.h"
|
||||
#include "IniFile.h"
|
||||
|
||||
#include "Filesystem.h"
|
||||
#include "BannerLoader.h"
|
||||
|
@ -47,6 +48,7 @@ GameListItem::GameListItem(const std::string& _rFileName)
|
|||
, m_FileSize(0)
|
||||
, m_Valid(false)
|
||||
, m_BlobCompressed(false)
|
||||
, m_emu_state(0)
|
||||
{
|
||||
if (LoadFromCache())
|
||||
{
|
||||
|
@ -126,6 +128,14 @@ GameListItem::GameListItem(const std::string& _rFileName)
|
|||
}
|
||||
}
|
||||
|
||||
if (IsValid())
|
||||
{
|
||||
IniFile ini;
|
||||
ini.Load(File::GetUserPath(D_GAMECONFIG_IDX) + m_UniqueID + ".ini");
|
||||
ini.Get("EmuState", "EmulationStateId", &m_emu_state);
|
||||
ini.Get("EmuState", "EmulationIssues", &m_issues);
|
||||
}
|
||||
|
||||
if (!m_pImage.empty())
|
||||
{
|
||||
m_Image.Create(DVD_BANNER_WIDTH, DVD_BANNER_HEIGHT, &m_pImage[0], true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue