Closed JeodC closed 1 month ago
@Jayman2000 Can you try this and let me know if it works?
Merged without approval
Merged without approval
@jcoby Approved in comments. https://github.com/DescentDevelopers/Descent3/pull/372#discussion_r1606967495
Unfortunately, it looks like the final version of this PR introduced a new indentation mistake:
if (!ddio_GetBinaryPath(exec_path, sizeof(exec_path))) {
Error("Failed to get executable path\n");
} else {
Unfortunately, it looks like the final version of this PR introduced a new indentation mistake:
if (!ddio_GetBinaryPath(exec_path, sizeof(exec_path))) { Error("Failed to get executable path\n"); } else {
Dang it, missed one! I'll get it in a second pass the next time I touch init.cpp. Good catch.
Pull Request Type
Description
Actually retrieve the executable directory from a relative path so
-useexedir
functions. This was tested in windows where the realpath wasS:\Descent 3\Descent3.exe
and from a terminal in S:\ ranstart ./Descent 3/Descent3.exe" --useexedir
. Verified working.Related Issues
Resolves #322 if Linux/MacOS are also functional. Needs testing.