2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-07-13 11:25:53 +00:00

Update boo

This commit is contained in:
Jack Andersen 2016-02-18 10:52:36 -10:00
parent b430c28529
commit f1cb3bdb58
2 changed files with 7 additions and 9 deletions

2
hecl/extern/libBoo vendored

@ -1 +1 @@
Subproject commit 38326298a94ca4f5c4c1eb68ff8c74bc30ae6a56 Subproject commit 8bfb883d59cbd88c858f034622d95324a6d266fa

View File

@ -65,11 +65,10 @@ void ShaderCacheManager::bootstrapIndex()
m_datFr.close(); m_datFr.close();
#if _WIN32 #if _WIN32
SystemString tmp = m_idxFr.wfilename(); SystemString idxFilename = m_idxFr.wfilename();
#else #else
SystemString tmp = m_idxFr.filename(); SystemString idxFilename = m_idxFr.filename();
#endif #endif
SystemStringView idxFilename(tmp);
FILE* idxFp = HECL::Fopen(idxFilename.c_str(), _S("wb")); FILE* idxFp = HECL::Fopen(idxFilename.c_str(), _S("wb"));
if (!idxFp) if (!idxFp)
@ -81,16 +80,15 @@ void ShaderCacheManager::bootstrapIndex()
fwrite(&ZERO64, 1, 8, idxFp); fwrite(&ZERO64, 1, 8, idxFp);
fclose(idxFp); fclose(idxFp);
#if _WIN32 #if _WIN32
tmp = m_datFr.wfilename(); SystemString datFilename = m_datFr.wfilename();
#else #else
tmp = m_datFr.filename(); SystemString datFilename = m_datFr.filename();
#endif #endif
SystemStringView datFilename(tmp);
FILE* datFp = HECL::Fopen(datFilename.c_str(), _S("wb")); FILE* datFp = HECL::Fopen(datFilename.c_str(), _S("wb"));
if (!datFp) if (!datFp)
Log.report(LogVisor::FatalError, _S("unable to write shader cache data at %s"), Log.report(LogVisor::FatalError, _S("unable to write shader cache data at %s"),
idxFilename.c_str()); datFilename.c_str());
fwrite(&DAT_MAGIC, 1, 8, datFp); fwrite(&DAT_MAGIC, 1, 8, datFp);
fwrite(&m_timeHash, 1, 8, datFp); fwrite(&m_timeHash, 1, 8, datFp);
fclose(datFp); fclose(datFp);