| 36 | } |
| 37 | |
| 38 | static const char* ExtractFileName( const char* const file_path ) |
| 39 | { |
| 40 | const char* file_name_pos= file_path; |
| 41 | |
| 42 | const char* str= file_path; |
| 43 | while( *str != '\0' ) |
| 44 | { |
| 45 | if( *str == '/' || *str == '\\' ) |
| 46 | file_name_pos= str + 1u; |
| 47 | |
| 48 | str++; |
| 49 | } |
| 50 | |
| 51 | return file_name_pos; |
| 52 | } |
| 53 | |
| 54 | static std::string PrepareAddonPath( const char* const addon_path ) |
| 55 | { |