This commit is contained in:
Igor Pavlov
2014-11-23 00:00:00 +00:00
committed by Kornel Lesiński
parent 83f8ddcc5b
commit f08f4dcc3c
1158 changed files with 76451 additions and 35082 deletions

7
CPP/Windows/DLL.cpp Executable file → Normal file
View File

@@ -93,11 +93,14 @@ bool MyGetModuleFileName(FString &path)
FString GetModuleDirPrefix()
{
FString s;
if (NDLL::MyGetModuleFileName(s))
if (MyGetModuleFileName(s))
{
int pos = s.ReverseFind(FCHAR_PATH_SEPARATOR);
if (pos >= 0)
return s.Left(pos + 1);
{
s.DeleteFrom(pos + 1);
return s;
}
}
return FTEXT(".") FSTRING_PATH_SEPARATOR;
}