removezip name fix
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5208 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
+5
-1
@@ -301,7 +301,11 @@ bool addzip(const char *name, const char *mount = NULL, const char *strip = NULL
|
||||
|
||||
bool removezip(const char *name)
|
||||
{
|
||||
const char *pname = path(name, true);
|
||||
string pname;
|
||||
copystring(pname, name);
|
||||
path(pname);
|
||||
int plen = (int)strlen(pname);
|
||||
if(plen < 4 || !strchr(&pname[plen-4], '.')) concatstring(pname, ".zip");
|
||||
ziparchive *exists = findzip(pname);
|
||||
if(!exists)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user