1#ifndef YAZE_UTIL_CRASH_HANDLER_H
2#define YAZE_UTIL_CRASH_HANDLER_H
39 static void Initialize(
const std::string& version);
Manages crash logging for release builds.
static void CleanupOldLogs(int keep_count=5)
Clean up old crash logs, keeping only the most recent N logs.
static void CrashLogWriter(const char *data)
static void Initialize(const std::string &version)
Initialize the crash handler for the application.
static std::filesystem::path GetCrashLogDirectory()
Get the path where crash logs are stored.
static bool HasUnacknowledgedCrashLog()
Check if there's a crash log from a previous session.
static void AcknowledgeCrashLog()
Mark the current crash log as acknowledged.
static std::string version_
static std::filesystem::path GetMostRecentCrashLog()
Get the path to the most recent crash log, if any.
static std::filesystem::path crash_log_path_