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) {
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);
}
PCNT_CNT
};
+#ifdef PCNT
+
extern unsigned int pcounters[PCNT_CNT];
extern unsigned int pcounter_starts[PCNT_CNT];
return val;
}
+#else
+
+#define pcnt_start(id)
+#define pcnt_end(id)
+#define pcnt_hook_plugins()
+
+static inline void pcnt_print(float fps)
+{
+ printf("%2.1f\n", fps);
+}
+
+#endif