mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Corrects recursive path dump so it can actually recurse correctly on linux. This fixes module/asset scan lookups
Also added logic to more correctly get the base path of executable, making it easier for certain debuggers, like on linux, to find the main.cs.
This commit is contained in:
parent
484ad73719
commit
533ff28814
2 changed files with 13 additions and 5 deletions
|
|
@ -35,6 +35,9 @@ extern void createFontInit(void);
|
|||
extern void createFontShutdown(void);
|
||||
#endif
|
||||
|
||||
#if defined(TORQUE_SDL)
|
||||
#include "SDL.h"
|
||||
#endif
|
||||
|
||||
#if defined( TORQUE_MINIDUMP ) && defined( TORQUE_RELEASE )
|
||||
extern S32 CreateMiniDump(LPEXCEPTION_POINTERS ExceptionInfo);
|
||||
|
|
@ -227,7 +230,11 @@ extern "C" {
|
|||
|
||||
const char* torque_getexecutablepath()
|
||||
{
|
||||
#if defined(TORQUE_SDL)
|
||||
return gExecutablePath ? gExecutablePath : SDL_GetBasePath();
|
||||
#elif
|
||||
return gExecutablePath;
|
||||
#endif
|
||||
}
|
||||
|
||||
void torque_setexecutablepath(const char* directory)
|
||||
|
|
@ -236,4 +243,4 @@ extern "C" {
|
|||
gExecutablePath = new char[pathLen];
|
||||
dStrcpy(gExecutablePath, directory, pathLen);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue