Files
sphaira/sphaira/include/log.hpp
ITotalJustice 99c1db3655 disable hdd->hdd threading. only open log write on write to allow for reads. log fw/ams version.
hdd->hdd threading is disabled due to a bug in libusbhsfs which causes a deadlock if 2 fs calls happen at the same time.
2025-06-17 00:57:46 +01:00

36 lines
600 B
C++

#pragma once
#ifdef __cplusplus
extern "C" {
#endif
#define sphaira_USE_LOG 1
#include <stdarg.h>
#if sphaira_USE_LOG
bool log_file_init();
bool log_nxlink_init();
void log_file_exit();
bool log_is_init();
void log_nxlink_exit();
void log_write(const char* s, ...) __attribute__ ((format (printf, 1, 2)));
void log_write_arg(const char* s, va_list* v);
#else
inline bool log_file_init() {
return true;
}
inline bool log_nxlink_init() {
return true;
}
#define log_file_exit()
#define log_nxlink_exit()
#define log_write(...)
#define log_write_arg(...)
#endif
#ifdef __cplusplus
}
#endif