SDL/WASM Port

This commit is contained in:
TheBrokenRail
2023-08-05 01:58:24 -04:00
committed by iProgramInCpp
parent 0b16b2843a
commit 0fbe90752d
37 changed files with 1704 additions and 40 deletions

View File

@@ -33,6 +33,8 @@
int g_TimeSecondsOnInit = 0;
#ifndef USE_SDL
DIR* opendir(const char* name)
{
size_t len = strlen(name);
@@ -97,6 +99,13 @@ void closedir(DIR* dir)
free(dir);
}
#else
#include <sys/types.h>
#include <dirent.h>
#endif
bool createFolderIfNotExists(const char* pDir)
{
if (!XPL_ACCESS(pDir, 0))