Commit graph

12 commits

Author SHA1 Message Date
98c44f66df preparations for also using nng_tcp as a transport 2023-02-22 19:17:06 +01:00
381b8bd03c silence doomsim logging even more 2023-02-19 10:46:26 +01:00
9dab0ccf70 rename QuitDoom -> Endoom :) 2023-02-18 23:04:34 +01:00
86dcd6f92d get rid of the doomId concept, use the pid instead
The internal unique id should not be needed, the pid is unique enough :)

Also this can allow starting dooms externally without having to pass an id
parameter that's not already in use. The externally started doom sends its
pid with the DoomReady message and the controller can add a new entry if it
needs to. Of course the controller will not be able to kill() these
externally started dooms.
2023-02-18 22:28:15 +01:00
42a2d01f2a build tiny messaging infrastructure, refactor, hack till it sort of works
When usleep()'ing in doomsim it misses most of the quit messages. I think
it's because the controller spams RunDoom all the time and the quit
messages get discarded while doomsim is sleeping.
2023-02-18 22:08:12 +01:00
e26e406f29 caturday work: leak fixes, can now tell dooms to quit, nng util functions 2023-02-18 12:30:53 +01:00
823932af16 posix_spawn() doomsims
The doomsim startup routine or the controller startup publish are broken.
The doomsims never transition from DP_DS_Ready state.
2023-02-18 12:30:53 +01:00
e4cf3deecc First steps with Dear ImGui. It's awesome! 2023-02-12 15:48:15 +01:00
07033c9d13 mini refactoring and cleanup 2023-02-12 13:40:41 +01:00
d6829aa9cd ctrl: write some broken sdl and imgui code 2023-02-12 03:32:02 +01:00
cd99af391f doomsim updates: state machine, nng_recvmsg/nng_sendmsg, first actual logic 2023-02-11 23:52:20 +01:00
a7b31a6f49 refactoring all the things
- Move from spdlog to log.c by rxi
- Create dp_common c library
- Create empty doomsim executable
2023-02-08 06:39:23 +01:00