some abi fixes for fpc

This commit is contained in:
2026-01-09 17:37:04 +02:00
parent 5ff4521228
commit 64459718b0
4 changed files with 79 additions and 30 deletions

View File

@@ -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);