some abi fixes for fpc
This commit is contained in:
@@ -92,7 +92,7 @@ int main(int c, char **v)
|
||||
|
||||
char path[1024];
|
||||
|
||||
CUtlString buildcppDir = getcwd(path, 1024);
|
||||
CUtlString buildcppDir = Plat_GetWorkingDir();
|
||||
owndir = buildcppDir;
|
||||
char *szBuildcppDir = buildcppDir.GetString();
|
||||
|
||||
@@ -100,13 +100,13 @@ findbuild:
|
||||
FILE* file = V_fopen("build.cpp", "rb");
|
||||
if (!file)
|
||||
{
|
||||
dirname(szBuildcppDir);
|
||||
buildcppDir = buildcppDir.GetDirectory();
|
||||
if (buildcppDir=="/")
|
||||
{
|
||||
V_printf("build.cpp not found\n");
|
||||
return 0;
|
||||
}
|
||||
chdir(szBuildcppDir);
|
||||
Plat_SetWorkingDir(szBuildcppDir);
|
||||
goto findbuild;
|
||||
} else {
|
||||
V_fclose(file);
|
||||
|
||||
Reference in New Issue
Block a user