diff --git a/API_General.cpp b/API_General.cpp index 9bcd94e..9d8e139 100644 --- a/API_General.cpp +++ b/API_General.cpp @@ -251,6 +251,24 @@ __stdcall EgtSetOutText( pfOutTextW pFun) return ( ExeSetOutText( (( pFun != nullptr) ? MyOutText : nullptr)) ? TRUE : FALSE) ; } +//----------------------------------------------------------------------------- +BOOL +__stdcall EgtSetTempDir( const wchar_t* wsTempDir) +{ + return ( ExeSetTempDir( wstrztoA( wsTempDir)) ? TRUE : FALSE) ; +} + +//----------------------------------------------------------------------------- +BOOL +__stdcall EgtGetTempDir( wchar_t*& wsTempDir) +{ + string sTempDir ; + if ( ! ExeGetTempDir( sTempDir)) + return FALSE ; + wsTempDir = _wcsdup( stringtoW( sTempDir)) ; + return (( wsTempDir == nullptr) ? FALSE : TRUE) ; +} + //----------------------------------------------------------------------------- BOOL __stdcall EgtSetMainWindowHandle( HWND hMainWnd) diff --git a/EgtInterface.rc b/EgtInterface.rc index a5a3c9e..8b5c03e 100644 Binary files a/EgtInterface.rc and b/EgtInterface.rc differ