root = root_;\r
}\r
\r
-static CString MakeTempFilename( const CString &sPath )\r
-{\r
- /* "Foo/bar/baz" -> "Foo/bar/new.baz.new". Both prepend and append: we don't\r
- * want a wildcard search for the filename to match (foo.txt.new matches foo.txt*),\r
- * and we don't want to have the same extension (so "new.foo.sm" doesn't show up\r
- * in *.sm). */\r
- return Dirname(sPath) + "new." + Basename(sPath) + ".new";\r
-}\r
-\r
RageFileBasic *RageFileDriverCrypt::Open( const CString &path, int mode, int &err )\r
{\r
CString sPath = root + path;\r
\r
RageFileBasic *RageFileObjCrypt::Copy() const\r
{\r
- int iErr;\r
crypt_file *cpCf = new crypt_file;\r
cpCf->path = cf->path;\r
memcpy(cpCf->ctx, cf->ctx, sizeof(cf->ctx));\r