summaryrefslogtreecommitdiffhomepage
path: root/src/demorec.c
diff options
context:
space:
mode:
authorMichael Smith <mikesmiffy128@gmail.com>2022-01-06 23:39:21 +0000
committerMichael Smith <mikesmiffy128@gmail.com>2022-01-06 23:39:21 +0000
commit4ed68f73dae9e7621d7d7512b5feb686e9440bb2 (patch)
tree9646293b25a5a49b517d776baccce7ddff52a293 /src/demorec.c
parentc3ecdf5caf17825b047e4d8b5d979986cbe380b0 (diff)
Tidy up stubs, make vstdlib a stub, build on Linux
Important note: it doesn't WORK on Linux, and there's tons of warnings and stuff, but it's easier to work on when all the compiler output and whatnot is there.
Diffstat (limited to 'src/demorec.c')
-rw-r--r--src/demorec.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/demorec.c b/src/demorec.c
index 76e7f00..1a988ed 100644
--- a/src/demorec.c
+++ b/src/demorec.c
@@ -161,7 +161,8 @@ static inline void *find_demorecorder(struct con_cmd *cmd_stop) {
}
}
#else
-#error TODO(linux): implement linux equivalent (cdecl!)
+#warning TODO(linux): implement linux equivalent (cdecl!)
+ return 0;
#endif
}
return 0;
@@ -203,7 +204,8 @@ static inline bool find_recmembers(void *stop_recording_func) {
return false;
}
#else // linux is probably different here idk
-#error TODO(linux): implement linux equivalent
+#warning TODO(linux): implement linux equivalent
+ return false;
#endif
}
return false;
@@ -228,7 +230,8 @@ static bool find_WriteMessages(void) {
#ifdef _WIN32
{0x56, 0x57, 0x8B, 0xF1, 0x8D, 0xBE, 0x8C, 0x06, 0x00, 0x00, 0x57, 0xE8};
#else
-#error This is possibly different on Linux too, have a look!
+#warning This is possibly different on Linux too, have a look!
+{-1, -1, -1, -1, -1, -1};
#endif
if (!memcmp(insns, bytes, sizeof(bytes))) {
ssize off = mem_loadoffset(insns + sizeof(bytes));