| 59 | } |
| 60 | |
| 61 | static RString HostPathFromBankEntryName(RString name) |
| 62 | { |
| 63 | #ifndef _WIN32 |
| 64 | std::string local = (const char*)name; |
| 65 | for (char& c : local) |
| 66 | { |
| 67 | if (c == '\\') |
| 68 | { |
| 69 | c = '/'; |
| 70 | } |
| 71 | } |
| 72 | return RString(local.c_str()); |
| 73 | #else |
| 74 | return name; |
| 75 | #endif |
| 76 | } |
| 77 | |
| 78 | // use LZW compression on files of some types (e.g. .p3d) |
| 79 |