Add loading screen to online mode, fix ImGui frame conflict, truncate log on start

Online world entry now shows a progress bar during character model,
terrain, and tile streaming. Fixed loading screen crash from calling
ImGui::NewFrame while a frame was already in progress. Log file is
now truncated on each launch instead of appending.
This commit is contained in:
Kelsi 2026-02-06 14:49:53 -08:00
parent 6f33392155
commit 81d712121e
3 changed files with 138 additions and 29 deletions

View file

@ -17,7 +17,7 @@ void Logger::ensureFile() {
fileReady = true;
std::error_code ec;
std::filesystem::create_directories("logs", ec);
fileStream.open("logs/wowee.log", std::ios::out | std::ios::app);
fileStream.open("logs/wowee.log", std::ios::out | std::ios::trunc);
}
void Logger::log(LogLevel level, const std::string& message) {