core/logic/smn_filesystem.cpp
changeset 4199 6e0c63e83c8a
parent 4198 d6f90552ca85
     1.1 --- a/core/logic/smn_filesystem.cpp	Tue Jan 07 14:24:41 2014 -0500
     1.2 +++ b/core/logic/smn_filesystem.cpp	Tue Jan 07 14:24:53 2014 -0500
     1.3 @@ -426,6 +426,18 @@
     1.4  		return -1;
     1.5  	}
     1.6  
     1.7 +	if (params[0] >= 2 && params[2] == 1)
     1.8 +	{
     1.9 +		if (smcore.filesystem->FileExists(name))
    1.10 +		{
    1.11 +			return smcore.filesystem->Size(name);
    1.12 +		}
    1.13 +		else
    1.14 +		{
    1.15 +			return -1;
    1.16 +		}
    1.17 +	}
    1.18 +
    1.19  	char realpath[PLATFORM_MAX_PATH];
    1.20  	g_pSM->BuildPath(Path_Game, realpath, sizeof(realpath), "%s", name);
    1.21  #ifdef PLATFORM_WINDOWS