server compilable

This commit is contained in:
2026-03-26 03:48:08 +03:00
parent cbd81b47ce
commit a45c01d013
96 changed files with 3344 additions and 7975 deletions

View File

@@ -0,0 +1,23 @@
#include "PlatformServer.h"
#include <ctime>
#include "App.h"
#include "platform/time.h"
void PlatformServer::runMainLoop(App& app) {
while (!app.wantToQuit()) {
app.update();
sleepMs(20);
}
}
std::string PlatformServer::getDateString(int s) {
time_t tm = s;
char mbstr[100];
std::strftime(mbstr, sizeof(mbstr), "%F %T", std::localtime(&tm));
return std::string(mbstr);
}