Use UnRAR in non-windows platform

1d89c21249
This commit is contained in:
sum2012 2013-08-23 15:52:28 +08:00
parent cfbc64f50e
commit f8c49704ba

View File

@ -195,11 +195,19 @@ bool LoadFile(std::string &filename, std::string *error_string) {
break;
case FILETYPE_ARCHIVE_RAR:
#ifdef WIN32
*error_string = "File is compressed (RAR).\nPlease decompress first (try WinRAR)";
#else
*error_string = "File is compressed (RAR).\nPlease decompress first (try UnRAR)";
#endif
break;
case FILETYPE_ARCHIVE_ZIP:
#ifdef WIN32
*error_string = "File is compressed (ZIP).\nPlease decompress first (try WinRAR)";
#else
*error_string = "File is compressed (ZIP).\nPlease decompress first (try UnRAR)";
#endif
break;
case FILETYPE_NORMAL_DIRECTORY: