mirror of
https://github.com/kichikuou/system3-sdl2.git
synced 2026-10-10 00:08:26 +03:00
Fix load bug
This commit is contained in:
@@ -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()
|
||||
{
|
||||
// �‰Šú‰»
|
||||
|
||||
Reference in New Issue
Block a user