added forced target

This commit is contained in:
2026-01-10 01:38:06 +02:00
parent f4cc90fa25
commit 8f022da4ef
4 changed files with 129 additions and 89 deletions

View File

@@ -18,6 +18,7 @@
#endif
#ifdef __WIN32__
#include "windows.h"
#include "direct.h"
#endif
PLATFORM_INTERFACE void Plat_FatalErrorFunc(const char* szFormat, ...)
@@ -121,10 +122,15 @@ PLATFORM_INTERFACE char *Plat_GetExtension( const char *szPath )
}
PLATFORM_INTERFACE void Plat_MakeDir( const char *szPath, int iPermissions )
{
#ifdef __WIN32__
_mkdir(szPath);
#endif
#ifdef POSIX
#ifndef ACCESSPERMS
#define ACCESSPERMS 0777
#endif
mkdir(szPath, ACCESSPERMS);
#endif
}
PLATFORM_INTERFACE void Plat_Backtrace( void )
@@ -210,7 +216,12 @@ PLATFORM_INTERFACE void *Plat_GetProc( void *lib, const char *psz )
PLATFORM_INTERFACE void Plat_SetEnv( const char *szVar, const char *psz )
{
#ifdef POSIX
setenv(szVar, psz, true);
#endif
#ifdef __WIN32__
SetEnvironmentVariable(szVar, psz);
#endif
}
PLATFORM_INTERFACE const char *Plat_GetEnv( const char *szVar )