ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/AE/Installer/trunk/source/main_window.cpp
(Generate patch)

Comparing AE/Installer/trunk/source/main_window.cpp (file contents):
Revision 390 by gumby, Mon Jul 6 14:02:56 2009 UTC vs.
Revision 392 by gumby, Mon Jul 6 14:44:10 2009 UTC

# Line 58 | Line 58 | using namespace std;
58   #include "boost/date_time/date_parsing.hpp"
59   #include "boost/date_time/posix_time/posix_time.hpp"
60  
61 + string escapePath(string input) {
62 +        
63 +        string output;
64 +        string escape_me = "& ;()|<>\"'\\#*?$";
65 +        for(int i = 0; i < input.size(); i++)  {
66 +                for(int j = 0; j < escape_me.size(); j++) if (input[i] == escape_me[j]) output += '//';
67 +                output += input[i];
68 +        }
69 +        return output;
70 + }
71 +
72   int globalizeData(void)
73   {
74          busy = 1;
# Line 338 | Line 349 | int globalizeData(void)
349                  // or we could just include it in the zip in the proper place already.
350  
351                  copy("../../persist.dat","../persist.dat");
352 <                copy("../../keyconfig.txt","../keyconfig.txt");
352 >                copy("../../keyconfig.txt","../keyconfig.txt");
353   #ifndef WIN32
354                  /* On Mac only, set the current GDF to the AE GDF by writing to Oni's global preferences file (thankfully a standard OS X ".plist" XML file).
355                     If there are no Oni prefs (only possible if Oni has not been run even once), then the above line will fail silently, no harm done,

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)