View Single Post
electronic_m
New Member
Join Date: Dec 2015
Old 12-16-2015 , 10:28   Re: SM File/Folder Downloader and Precacher
Reply With Quote #438

Quote:
Originally Posted by Powerlord View Post
I don't know if this will fix the SteamPipe issue or not, but I changed the FileExists calls to pass true as the second argument, which should allow it to read VPK files and directories under custom/

DirExists has no equivalent, though, so it may still fail.
Some other changes are needed.

Code:
130 -	if(DirExists(path)){
130 +	if(DirExists(path, true)){

131 -		dirh = OpenDirectory(path);
131 +		dirh = OpenDirectory(path, true);

239 -	else if (!StrEqual(buffer,"",false) && FileExists(buffer))
239 +	else if (!StrEqual(buffer,"",false) && FileExists(buffer, true))

294 -	else if (!StrEqual(buffer,"",false) && FileExists(buffer))
294 +	else if (!StrEqual(buffer,"",false) && FileExists(buffer, true))
Attached Files
File Type: sp Get Plugin or Get Source (sm_downloader.sp - 1739 views - 6.9 KB)
electronic_m is offline