/[svn]/linuxsampler/trunk/src/db/InstrumentsDb.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/db/InstrumentsDb.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1942 by senoner, Sat Jun 6 16:48:00 2009 UTC revision 1943 by persson, Tue Jul 14 18:25:11 2009 UTC
# Line 1225  namespace LinuxSampler { Line 1225  namespace LinuxSampler {
1225              }              }
1226    
1227              String s = FilePath;              String s = FilePath;
   
             #if WIN32  
             for (int i = 0; i < s.length(); i++) {  
                 if (s[i] == '\\') s[i] = '/';  
             }  
             #endif  
   
1228              s = toEscapedFsPath(s);              s = toEscapedFsPath(s);
1229              BindTextParam(pStmt, 2, s);              BindTextParam(pStmt, 2, s);
1230              String ver = "";              String ver = "";
# Line 1864  namespace LinuxSampler { Line 1857  namespace LinuxSampler {
1857      }      }
1858            
1859      String InstrumentsDb::toEscapedFsPath(String FsPath) {      String InstrumentsDb::toEscapedFsPath(String FsPath) {
1860    #ifdef WIN32
1861            replace(FsPath.begin(), FsPath.end(), '\\', '/');
1862    #endif
1863          return toEscapedText(FsPath);          return toEscapedText(FsPath);
1864      }      }
1865            
1866      String InstrumentsDb::toNonEscapedFsPath(String FsPath) {      String InstrumentsDb::toNonEscapedFsPath(String FsPath) {
1867          return toNonEscapedText(FsPath);          FsPath = toNonEscapedText(FsPath);
1868    #ifdef WIN32
1869            replace(FsPath.begin(), FsPath.end(), '/', '\\');
1870    #endif
1871            return FsPath;
1872      }      }
1873            
1874      String InstrumentsDb::toAbstractName(String DbName) {      String InstrumentsDb::toAbstractName(String DbName) {

Legend:
Removed from v.1942  
changed lines
  Added in v.1943

  ViewVC Help
Powered by ViewVC