mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-11-15 18:50:32 +01:00
PADnull reformat
This commit is contained in:
1 parent
6613862aed
commit
eb18a2ac0f
9 files changed
+253
-235
No files matched your search
@@ -19,29 +19,27 @@ extern std::string s_strIniPath;
|
||||
|
||||
void SaveConfig()
|
||||
{
|
||||
const std::string iniFile = s_strIniPath + "/Padnull.ini";
|
||||
const std::string iniFile = s_strIniPath + "/Padnull.ini";
|
||||
|
||||
PluginConf ini;
|
||||
if (!ini.Open(iniFile, READ_FILE))
|
||||
{
|
||||
printf("failed to open %s\n", iniFile.c_str());
|
||||
SaveConfig();//save and return
|
||||
return;
|
||||
}
|
||||
conf.Log = ini.ReadInt("logging", 0);
|
||||
ini.Close();
|
||||
PluginConf ini;
|
||||
if (!ini.Open(iniFile, READ_FILE)) {
|
||||
printf("failed to open %s\n", iniFile.c_str());
|
||||
SaveConfig(); //save and return
|
||||
return;
|
||||
}
|
||||
conf.Log = ini.ReadInt("logging", 0);
|
||||
ini.Close();
|
||||
}
|
||||
|
||||
void LoadConfig()
|
||||
{
|
||||
const std::string iniFile(s_strIniPath + "/Padnull.ini");
|
||||
const std::string iniFile(s_strIniPath + "/Padnull.ini");
|
||||
|
||||
PluginConf ini;
|
||||
if (!ini.Open(iniFile, WRITE_FILE))
|
||||
{
|
||||
printf("failed to open %s\n", iniFile.c_str());
|
||||
return;
|
||||
}
|
||||
ini.WriteInt("logging", conf.Log);
|
||||
ini.Close();
|
||||
PluginConf ini;
|
||||
if (!ini.Open(iniFile, WRITE_FILE)) {
|
||||
printf("failed to open %s\n", iniFile.c_str());
|
||||
return;
|
||||
}
|
||||
ini.WriteInt("logging", conf.Log);
|
||||
ini.Close();
|
||||
}
|
||||
Reference in new issue
Block a user