mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2025-04-17 17:39:27 +02:00
Extra debugging log functions.
This commit is contained in:
parent
8029c41c04
commit
2164ff292c
2 changed files with 6 additions and 1 deletions
overlay_experimental
|
@ -1401,7 +1401,7 @@ public:
|
|||
}
|
||||
stop_detection_cv.notify_all();
|
||||
|
||||
SPDLOG_TRACE("Renderer detection done {}.", (void*)renderer_hook);
|
||||
SPDLOG_TRACE("Renderer detection done %p.", (void*)renderer_hook);
|
||||
|
||||
return renderer_hook;
|
||||
});
|
||||
|
|
|
@ -38,6 +38,8 @@
|
|||
#include <spdlog/spdlog.h>
|
||||
#endif
|
||||
|
||||
#define PRINT_DEBUG_NO_LINENUM(a, ...) do {FILE *t = fopen("STEAM_LOG.txt", "a"); fprintf(t, a, __VA_ARGS__); fclose(t);} while (0)
|
||||
|
||||
#ifndef SPDLOG_TRACE
|
||||
#define SPDLOG_TRACE(x, ...) PRINT_DEBUG(x "\n", __VA_ARGS__)
|
||||
#endif
|
||||
|
@ -47,6 +49,9 @@
|
|||
#ifndef SPDLOG_INFO
|
||||
#define SPDLOG_INFO(x, ...) PRINT_DEBUG(x "\n", __VA_ARGS__)
|
||||
#endif
|
||||
#ifndef SPDLOG_INFO_NO_NEWLINE
|
||||
#define SPDLOG_INFO_NO_NEWLINE(x, ...) PRINT_DEBUG_NO_LINENUM(x, __VA_ARGS__)
|
||||
#endif
|
||||
#ifndef SPDLOG_WARN
|
||||
#define SPDLOG_WARN(x, ...) PRINT_DEBUG(x "\n", __VA_ARGS__)
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue