| 52 | } |
| 53 | |
| 54 | static std::string PrepareAddonPath( const char* const addon_path ) |
| 55 | { |
| 56 | if( addon_path == nullptr ) |
| 57 | return ""; |
| 58 | |
| 59 | std::string result= addon_path; |
| 60 | if( !result.empty() ) |
| 61 | { |
| 62 | if( !( result.back() == '/' || result.back() == '\\' ) ) |
| 63 | result.push_back( '/' ); |
| 64 | } |
| 65 | return result; |
| 66 | } |
| 67 | |
| 68 | Vfs::Vfs( |
| 69 | const char* archive_file_name, |