Fix build errors.

Fix VFS root directory failing IsDirectory, which breaks the search for
textures.xml.
Fix incompatible change to loose cache name determination.

This was SVN commit r9092.
This commit is contained in:
Ykkrosh
2011-03-21 21:06:08 +00:00
parent c3405e6f50
commit 83271ec816
6 changed files with 11 additions and 10 deletions
+1 -1
View File
@@ -278,7 +278,7 @@ JSBool GetBuildTimestamp(JSContext* cx, uintN argc, jsval* vp)
void DumpHeap(const char* basename, int idx, JSContext* cx)
{
char filename[64];
sprintf_s(filename, ARRAY_SIZE(filename), "%hs.%03d.txt", basename, idx);
sprintf_s(filename, ARRAY_SIZE(filename), "%s.%03d.txt", basename, idx);
NativePath pathname = Path::Join(psLogDir(), filename);
#if OS_WIN
FILE* f = _wfopen(pathname.c_str(), L"w");