hotloading!!

This commit is contained in:
Asuro
2025-02-07 03:03:23 +01:00
parent 3be734ae2f
commit 60640a708f
7 changed files with 172 additions and 72 deletions

View File

@@ -1,10 +1,14 @@
#include "Log.h"
#include <cstdio>
#include <bx/string.h>
namespace Game
namespace
{
void Log(const char* text)
{
printf("%s\n", text);
}
char LineBuffer[1024]{0};
}
void Log(const char *format, ...)
{
va_list args;
bx::snprintf(LineBuffer, sizeof(LineBuffer), "%s\n", format);
bx::printf(LineBuffer, args);
}