mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-07-08 22:05:53 +00:00
windows fix
This commit is contained in:
parent
7c31740dbb
commit
c853403dad
@ -150,10 +150,12 @@ BlenderConnection::BlenderConnection(bool silenceBlender)
|
|||||||
wchar_t* TMPDIR = _wgetenv(L"TEMP");
|
wchar_t* TMPDIR = _wgetenv(L"TEMP");
|
||||||
if (!TMPDIR)
|
if (!TMPDIR)
|
||||||
TMPDIR = (wchar_t*)L"\\Temp";
|
TMPDIR = (wchar_t*)L"\\Temp";
|
||||||
|
m_startupBlend = HECL::WideToUTF8(TMPDIR);
|
||||||
#else
|
#else
|
||||||
char* TMPDIR = getenv("TMPDIR");
|
char* TMPDIR = getenv("TMPDIR");
|
||||||
if (!TMPDIR)
|
if (!TMPDIR)
|
||||||
TMPDIR = (char*)"/tmp";
|
TMPDIR = (char*)"/tmp";
|
||||||
|
m_startupBlend = TMPDIR;
|
||||||
#endif
|
#endif
|
||||||
HECL::SystemString blenderShellPath(TMPDIR);
|
HECL::SystemString blenderShellPath(TMPDIR);
|
||||||
blenderShellPath += _S("/hecl_blendershell.py");
|
blenderShellPath += _S("/hecl_blendershell.py");
|
||||||
@ -163,9 +165,7 @@ BlenderConnection::BlenderConnection(bool silenceBlender)
|
|||||||
blenderAddonPath += _S("/hecl_blenderaddon.zip");
|
blenderAddonPath += _S("/hecl_blenderaddon.zip");
|
||||||
InstallAddon(blenderAddonPath.c_str());
|
InstallAddon(blenderAddonPath.c_str());
|
||||||
|
|
||||||
HECL::SystemString blenderStartupPath(TMPDIR);
|
m_startupBlend += "/hecl_startup.blend";
|
||||||
m_startupBlend = TMPDIR;
|
|
||||||
m_startupBlend += _S("/hecl_startup.blend");
|
|
||||||
InstallStartup(m_startupBlend.c_str());
|
InstallStartup(m_startupBlend.c_str());
|
||||||
|
|
||||||
int installAttempt = 0;
|
int installAttempt = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user