diff options
Diffstat (limited to 'frontend/main.c')
-rw-r--r-- | frontend/main.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/frontend/main.c b/frontend/main.c index fd1c119..86aff34 100644 --- a/frontend/main.c +++ b/frontend/main.c @@ -73,6 +73,8 @@ int main(int argc, char *argv[]) int i; tmp = dlopen("/lib/libdl.so.2", RTLD_LAZY); + if (tmp == NULL) + tmp = dlopen("/lib32/libdl.so.2", RTLD_LAZY); if (tmp != NULL) real_getenv = dlsym(tmp, "getenv"); if (real_getenv == NULL) { @@ -217,7 +219,8 @@ int main(int argc, char *argv[]) if (loadst) { StatesC = loadst - 1; char *state_filename = get_state_filename(StatesC); - LoadState(state_filename); + int ret = LoadState(state_filename); + printf("%s state %s\n", ret ? "failed to load" : "loaded", state_filename); free(state_filename); } |