Prepping for singleplayer style client and server.

This commit is contained in:
2025-04-09 14:24:36 -05:00
parent 9208ebb685
commit a04014c054
16 changed files with 753 additions and 445 deletions

View File

@ -8,6 +8,7 @@
#include "console/console.h"
#include "server/server.h"
#include "util/string.h"
#include "assert/assert.h"
bool_t exitRequested = false;
@ -24,7 +25,13 @@ void cmdServe(const consolecmdexec_t *exec) {
}
}
errorret_t ret = serverStart(port);
errorret_t ret = serverStart((serverstart_t){
.type = SERVER_TYPE_NETWORKED,
.networked = {
.port = 3030
}
});
if(ret != ERROR_OK) {
consolePrint("Failed to start server: %s", errorString());
errorFlush();
@ -37,6 +44,7 @@ void cmdClose(const consolecmdexec_t *exec) {
}
int main(void) {
assertInit();
consoleInit();
serverInit();