Fix load bug

This commit is contained in:
kichikuou
2017-04-30 20:58:38 +09:00
parent 71728db664
commit 7c233fd9a0
3 changed files with 12 additions and 6 deletions
+8
View File
@@ -5,6 +5,7 @@
*/
#include "fileio.h"
#include <sys/types.h>
#ifdef __EMSCRIPTEN__
#include <emscripten.h>
#endif
@@ -17,6 +18,13 @@ void FILEIO::SetSaveDir(const char* savedir)
g_savedir = savedir;
}
int FILEIO::StatSavedata(const char* filename, struct stat* buf)
{
_TCHAR path[_MAX_PATH];
_stprintf_s(path, _MAX_PATH, _T("%s%s"), g_savedir ? g_savedir : g_root, filename);
return stat(path, buf);
}
FILEIO::FILEIO()
{
// �‰Šú‰»