diff options
author | Michael Smith <mikesmiffy128@gmail.com> | 2023-05-21 21:48:52 +0100 |
---|---|---|
committer | Michael Smith <mikesmiffy128@gmail.com> | 2023-05-21 22:11:16 +0100 |
commit | 2ba71f27c46dc38b76e932b1b1967d96a9b9f107 (patch) | |
tree | 0b38c40d0e562e4d4e6cf39aff40bcefee204c4a /src/sst.c | |
parent | 5dff423338e82a8d9a201534f3f10aee7de0ad56 (diff) |
Improve os_dlfile() interface
Might as well return the length since we have it anyway. Also this maybe
fixes the totally busted Linux code but it's still untested and probably
doesn't work for reasons that will be discovered later on.
Diffstat (limited to 'src/sst.c')
-rw-r--r-- | src/sst.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -76,7 +76,7 @@ DEF_CCMD_HERE(sst_autoload_enable, "Register SST to load on game startup", 0) { const os_char *searchdir = ifacever == 3 ? gameinfo_gamedir : gameinfo_bindir; os_char path[PATH_MAX]; - if (!os_dlfile(ownhandle(), path, sizeof(path) / sizeof(*path))) { + if (os_dlfile(ownhandle(), path, sizeof(path) / sizeof(*path)) == -1) { // hopefully by this point this won't happen, but, like, never know errmsg_errordl("failed to get path to plugin"); return; |