mirror of https://github.com/AxioDL/metaforce.git
NULL path bug fix
This commit is contained in:
parent
f761810e8c
commit
6d997e4ffa
|
@ -234,6 +234,8 @@ static std::atomic_bool BlenderFirstInit(false);
|
|||
|
||||
static bool RegFileExists(const hecl::SystemChar* path)
|
||||
{
|
||||
if (!path)
|
||||
return false;
|
||||
hecl::Sstat theStat;
|
||||
return !hecl::Stat(path, &theStat) && S_ISREG(theStat.st_mode);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue