Too much, but I didn't break much except for those errors, I'm also getting this error..
The above error seems to occur because of the following bolded code:
Config.cpp
The other errors seem to be because of the bolded parenthesis not being at the end of the following code..
LuisR14's version of Config.h:
My version of Config.h:
extern CConfig g_Config;
extern GConfig g_GConfig;[/code]
Note that the second pair of parenthesis are not after my version of "void save", this throws out an unresolved externals error..
Code:
Error 8 error C2660: 'GConfig::Load' : function does not take 0 arguments d:\My Documents\Emulator SVN\Dolphin\Source\Plugins\Plugin_DSP_HLE\Src\Config.cpp 58
The above error seems to occur because of the following bolded code:
Config.cpp
Quote:// Copyright © 2003 Dolphin Project.
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, version 2.0.
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License 2.0 for more details.
// A copy of the GPL 2.0 should have been included with the program.
// If not, see http://www.gnu.org/licenses/
// Official SVN repository and contact information can be found at
// http://code.google.com/p/dolphin-emu/
#include "Globals.h"
#include "Common.h"
#include "IniFile.h"
#include "Config.h"
#include "AudioCommon.h"
#include "FileUtil.h"
CConfig g_Config;
GConfig g_GConfig;
CConfig::CConfig()
{
Load();
}
void CConfig::Load()
{
// first load defaults
IniFile file;
file.Load((std:tring(File::GetUserPath(D_CONFIG_IDX)) + "DSP.ini").c_str());
file.Get("Config", "EnableHLEAudio", &m_EnableHLEAudio, true); // Sound Settings
file.Get("Config", "EnableRE0AudioFix", &m_EnableRE0Fix, false); // RE0 Hack
file.Get("Config", "EnableAFCAudioLoopingHack", &m_EnableAFCLoopingHack, false); // AFC Looping Hack
ac_Config.Load(file);
}
void CConfig::Save()
{
IniFile file;
file.Load((std:tring(File::GetUserPath(D_CONFIG_IDX)) + "DSP.ini").c_str());
file.Set("Config", "EnableHLEAudio", m_EnableHLEAudio); // Sound Settings
file.Set("Config", "EnableRE0AudioFix", m_EnableRE0Fix); // RE0 Hack
file.Set("Config", "EnableAFCAudioLoopingHack", m_EnableAFCLoopingHack); // AFC Looping Hack
ac_Config.Set(file);
file.Save((std:tring(File::GetUserPath(D_CONFIG_IDX)) + "DSP.ini").c_str());
}
GConfig::GConfig()
{
Load();
}
void GConfig::Load(const char *game_ini)
{
if (game_ini && strlen(game_ini))
{
IniFile iniFile;
iniFile.Load((std:tring(File::GetUserPath(D_CONFIG_IDX)) + "game_ini.ini").c_str());
iniFile.Get("HLEaudio", "UseRE0Fix", &m_EnableRE0Fix, false);
iniFile.Get("HLEaudio", "EnableAFCAudioLoopingHack", &m_EnableAFCLoopingHack, false);
ac_GConfig.Load(iniFile);
}
}
void GConfig::Save(const char *game_ini)
{
if (game_ini && strlen(game_ini))
{
IniFile iniFile;
iniFile.Load((std:tring(File::GetUserPath(D_CONFIG_IDX)) + "game_ini.ini").c_str());
iniFile.Set("Config", "EnableRE0AudioFix", m_EnableRE0Fix); // RE0 Hack
iniFile.Set("Config", "EnableAFCAudioLoopingHack", m_EnableAFCLoopingHack); // AFC Looping Hack
ac_GConfig.Set(iniFile);
iniFile.Save((std:tring(File::GetUserPath(D_CONFIG_IDX)) + "game_ini.ini").c_str());
}
}
The other errors seem to be because of the bolded parenthesis not being at the end of the following code..
LuisR14's version of Config.h:
Quote:struct GConfig : public CConfig
{
GConfig();
void Load(const char *game_ini);
void Save(){}; // dull function :p
};
extern CConfig g_Config;
extern GConfig g_GConfig;
My version of Config.h:
Quote:struct GConfig : public CConfig
{
GConfig();
bool m_EnableRE0Fix;
bool m_EnableAFCLoopingHack;
void Load(const char *game_ini);
void Save(const char *game_ini); // dull function :p
};
extern CConfig g_Config;
extern GConfig g_GConfig;[/code]
Note that the second pair of parenthesis are not after my version of "void save", this throws out an unresolved externals error..