-// don't expose!\r
-bool CFileSystem::changeArchivePassword(const path& filename,\r
- const core::stringc& password,\r
- IFileArchive** archive)\r
-{\r
- for (s32 idx = 0; idx < (s32)FileArchives.size(); ++idx)\r
- {\r
- // TODO: This should go into a path normalization method\r
- // We need to check for directory names with trailing slash and without\r
- const path absPath = getAbsolutePath(filename);\r
- const path arcPath = FileArchives[idx]->getFileList()->getPath();\r
- if ((absPath == arcPath) || ((absPath+_IRR_TEXT("/")) == arcPath))\r
- {\r
- if (password.size())\r
- FileArchives[idx]->Password=password;\r
- if (archive)\r
- *archive = FileArchives[idx];\r
- return true;\r
- }\r
- }\r
-\r
- return false;\r
-}\r