filesystem: fix checking for directory existence

Resolves #2504.
This commit is contained in:
Marcin Kurczewski 2025-02-17 23:54:02 +01:00
parent fe7ff97820
commit 015b9d7f3c
No known key found for this signature in database
GPG key ID: CC65E6FD28CAE42A
2 changed files with 2 additions and 1 deletions

View file

@ -1,4 +1,5 @@
## [Unreleased](https://github.com/LostArtefacts/TRX/compare/tr2-0.9.1...develop) - ××××-××-××
- fixed music not working on certain Linux setups (#2504, regression from 0.2)
## [0.9.1](https://github.com/LostArtefacts/TRX/compare/tr2-0.9...tr2-0.9.1) - 2025-02-15
- changed passport to be more responsive to player inputs (#1328)

View file

@ -152,7 +152,7 @@ const char *File_GetGameDirectory(void)
bool File_DirExists(const char *path)
{
char *full_path = File_GetFullPath(path);
DIR *dir = opendir(path);
DIR *dir = opendir(full_path);
Memory_FreePointer(&full_path);
if (dir != nullptr) {
closedir(dir);