mirror of https://github.com/stella-emu/stella.git
Removed 'replace' command from different sections of code. This allows
filenames to be saved exactly how they're present in the stella.pro file. Originally I added it since some OS don't like spaces in filenames. But since there are also other weird characters in the names (like parenthesis and # symbols), it doesn't make sense to only remove spaces. git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@327 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
parent
ec4ddd4994
commit
4c6eddb427
|
@ -13,7 +13,7 @@
|
|||
// See the file "license" for information on usage and redistribution of
|
||||
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
||||
//
|
||||
// $Id: mainSDL.cxx,v 1.12 2004-07-10 13:20:25 stephena Exp $
|
||||
// $Id: mainSDL.cxx,v 1.13 2004-07-21 00:15:08 stephena Exp $
|
||||
//============================================================================
|
||||
|
||||
#include <fstream>
|
||||
|
@ -472,7 +472,6 @@ void handleEvents()
|
|||
{
|
||||
string newPropertiesFile = theConsole->settings().baseDir() + "/" + \
|
||||
theConsole->properties().get("Cartridge.Name") + ".pro";
|
||||
replace(newPropertiesFile.begin(), newPropertiesFile.end(), ' ', '_');
|
||||
theConsole->saveProperties(newPropertiesFile);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
// See the file "license" for information on usage and redistribution of
|
||||
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
||||
//
|
||||
// $Id: EventHandler.cxx,v 1.27 2004-06-20 23:30:48 stephena Exp $
|
||||
// $Id: EventHandler.cxx,v 1.28 2004-07-21 00:15:08 stephena Exp $
|
||||
//============================================================================
|
||||
|
||||
#include <algorithm>
|
||||
|
@ -406,9 +406,6 @@ void EventHandler::takeSnapshot()
|
|||
else if(ssname == "md5sum")
|
||||
sspath = sspath + BSPF_PATH_SEPARATOR + myConsole->properties().get("Cartridge.MD5");
|
||||
|
||||
// Replace all spaces in name with underscores
|
||||
replace(sspath.begin(), sspath.end(), ' ', '_');
|
||||
|
||||
// Check whether we want multiple snapshots created
|
||||
if(!myConsole->settings().getBool("sssingle"))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue