mirror of
https://github.com/valentderah/totk-pc-recomp.git
synced 2026-11-13 02:41:02 +00:00
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
21 lines
868 B
C
21 lines
868 B
C
// What a bug report needs about the machine (runtime/sysinfo.c), for the menu's "Copy system info" and "Open log folder".
|
|
#pragma once
|
|
#include <stddef.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
// Plain text, one item per line: OS and build, CPU, RAM, the GPU and its driver as the Vulkan device reports them, and
|
|
// every setting with a value (totk.ini, the menu, the environment). Technical text for the developers, in English like
|
|
// the log. The length written (truncated to n - 1), or 0 on failure.
|
|
int sysinfo_text(char *buf, size_t n);
|
|
// The CPU's brand string ("AMD Ryzen 7 7800X3D 8-Core Processor"); "" when the CPU has none.
|
|
void sysinfo_cpu_name(char *out, size_t n);
|
|
// The folder with the log: the folder of the file stderr goes to, else the folder of totk.exe. 0 on failure.
|
|
int sysinfo_log_folder(char *out, size_t n);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|