MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / Load

Method Load

pcsx2/INISettingsInterface.cpp:76–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76bool INISettingsInterface::Load()
77{
78 if (m_filename.empty())
79 return false;
80
81 std::unique_lock lock(s_ini_load_save_mutex);
82 SI_Error err = SI_FAIL;
83 auto fp = FileSystem::OpenManagedCFile(m_filename.c_str(), "rb");
84 if (fp)
85 err = m_ini.LoadFile(fp.get());
86
87 return (err == SI_OK);
88}
89
90bool INISettingsInterface::Save(Error* error)
91{

Callers 14

ParseCommandLineArgsMethod · 0.45
InitializeConfigMethod · 0.45
switchProfileMethod · 0.45
onEthHostImportMethod · 0.45
reopenMethod · 0.45
RefreshMethod · 0.45
RescanPathMethod · 0.45

Calls 4

LoadFileMethod · 0.80
emptyMethod · 0.45
c_strMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected