mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-07 00:28:56 +00:00
Use the same code for populating user data directories one by one
on OS X as on other Unices so OS X initial installs aren't so easily broken by files being created in constructors. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6661 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
b4e0fe53af
commit
64d43211c9
3 changed files with 19 additions and 22 deletions
|
@ -198,11 +198,12 @@ void CodeConfigPanel::DownloadCodes(wxCommandEvent&)
|
|||
// read new code
|
||||
case 0 :
|
||||
{
|
||||
std::istringstream ss(line);
|
||||
std::getline(ss, gcode.name, '['); // stop at [ character (begining of contributer name)
|
||||
std::istringstream ssline(line);
|
||||
// stop at [ character (begining of contributer name)
|
||||
std::getline(ssline, gcode.name, '[');
|
||||
gcode.name = StripSpaces(gcode.name);
|
||||
// read the code creator name
|
||||
std::getline(ss, gcode.creator, ']');
|
||||
std::getline(ssline, gcode.creator, ']');
|
||||
read_state = 1;
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue