mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-05-02 17:28:33 +00:00
Convert GetUserPath to return a std::string instead of a const char *. This simplifies its usage in most cases.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7265 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
1b8f476024
commit
ba54fac9eb
82 changed files with 408 additions and 449 deletions
|
@ -29,7 +29,7 @@ InputPlugin::~InputPlugin()
|
|||
bool InputPlugin::LoadConfig()
|
||||
{
|
||||
IniFile inifile;
|
||||
if (inifile.Load(std::string(File::GetUserPath(D_CONFIG_IDX)) + ini_name + ".ini"))
|
||||
if (inifile.Load(File::GetUserPath(D_CONFIG_IDX) + ini_name + ".ini"))
|
||||
{
|
||||
std::vector< ControllerEmu* >::const_iterator
|
||||
i = controllers.begin(),
|
||||
|
@ -53,7 +53,7 @@ bool InputPlugin::LoadConfig()
|
|||
|
||||
void InputPlugin::SaveConfig()
|
||||
{
|
||||
std::string ini_filename = (std::string(File::GetUserPath(D_CONFIG_IDX)) + ini_name + ".ini" );
|
||||
std::string ini_filename = File::GetUserPath(D_CONFIG_IDX) + ini_name + ".ini";
|
||||
|
||||
IniFile inifile;
|
||||
inifile.Load(ini_filename);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue