summaryrefslogtreecommitdiffhomepage
path: root/src/sst.c
diff options
context:
space:
mode:
authorMichael Smith <mikesmiffy128@gmail.com>2023-05-21 21:48:52 +0100
committerMichael Smith <mikesmiffy128@gmail.com>2023-05-21 22:11:16 +0100
commit2ba71f27c46dc38b76e932b1b1967d96a9b9f107 (patch)
tree0b38c40d0e562e4d4e6cf39aff40bcefee204c4a /src/sst.c
parent5dff423338e82a8d9a201534f3f10aee7de0ad56 (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sst.c b/src/sst.c
index fcf26c4..5d21f06 100644
--- a/src/sst.c
+++ b/src/sst.c
@@ -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;