mirror of
https://github.com/Jacobwasbeast/LegacyWeaveLoader.git
synced 2026-08-10 11:31:22 +00:00
Rename across entire codebase: - LegacyForge -> WeaveLoader (identifiers, namespaces, classes, DLLs) - LegacyForgeRuntime -> WeaveLoaderRuntime (C++ project) - LegacyForge.API/Core/Launcher -> WeaveLoader.API/Core/Launcher (C# projects) - [LegacyForge] -> [WeaveLoader] (log prefixes) - legacyforge -> weaveloader (config files, log files, backup suffixes) - Display name "Weave Loader" in README, CONTRIBUTING, LICENSE
22 lines
729 B
C++
22 lines
729 B
C++
#pragma once
|
|
#include <cstddef>
|
|
|
|
namespace LogUtil
|
|
{
|
|
// Must be called once at startup with the runtime DLL's directory (with trailing backslash).
|
|
// Creates a logs/ subdirectory and sets up all log file paths.
|
|
void SetBaseDir(const char* baseDir);
|
|
|
|
// Returns the logs directory path (with trailing backslash)
|
|
const char* GetLogsDir();
|
|
|
|
// Appends a timestamped line to weaveloader.log and prints to stdout
|
|
void Log(const char* fmt, ...);
|
|
|
|
// Writes game debug output to game_debug.log with a timestamp
|
|
void LogGameOutput(const char* str, size_t len);
|
|
|
|
// Writes crash information to crash.log (no timestamp prefix -- caller manages formatting)
|
|
void LogCrash(const char* fmt, ...);
|
|
}
|