You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Changing the working directory to any other folder than the folder with the executable in it gets saved but when the folder contains the executable closing the dialog empties the input field.
Verifying with a custom script containing pwd the workdir defaults to the home directory instead of the executable path.
Probably a side issue of this is that the GH_INSTALL_DIR variable passed to custom scripts is empty/missing and any following variables are shifted -1.
Expected behavior
The workdir defaults to the executable path or the input field doesn't get cleared.
Actual behavior
The workdir defaults to the home directory.
Steps to reproduce
Set up a game which needs to be executed in a specific working dir.
Change the working directory to any directory, notice it gets saved when closing and reopening the game property dialog.
Change the working directory back to the path containing the executable, notice the path doesn't get saved. (use case: overlays merge directory)
When the given new `value` equals the iterated `dir` the `work_dir_path` was saved as `$game_dir` and on query tested against `$game_dir/` which resulted in the final path `$game_dir/$game_dir`:
~~~
L326
return get_file(work_dir_path);
L249
if(!path.has_prefix("$game_dir/") && !path.has_prefix("/")) {
path = "$game_dir/" + path;
}
~~~
Fixtkashkin#358
Former-commit-id: bd43451
Changing the working directory to any other folder than the folder with the executable in it gets saved but when the folder contains the executable closing the dialog empties the input field.
Verifying with a custom script containing
pwd
the workdir defaults to the home directory instead of the executable path.Probably a side issue of this is that theGH_INSTALL_DIR
variable passed to custom scripts is empty/missing and any following variables are shifted-1
.Expected behavior
The workdir defaults to the executable path or the input field doesn't get cleared.
Actual behavior
The workdir defaults to the home directory.
Steps to reproduce
Version and environment
The text was updated successfully, but these errors were encountered: