Commit 4c6eddb4 authored by stephena's avatar stephena
Browse files

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
parent ec4ddd49
......@@ -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"))
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment