mirror of
https://github.com/libretro/RetroArch
synced 2025-02-27 00:40:20 +00:00
Rename variable
This commit is contained in:
parent
f84b6e9020
commit
8da9acd1fe
15
verbosity.c
15
verbosity.c
@ -48,9 +48,9 @@
|
|||||||
|
|
||||||
/* If this is non-NULL. RARCH_LOG and friends
|
/* If this is non-NULL. RARCH_LOG and friends
|
||||||
* will write to this file. */
|
* will write to this file. */
|
||||||
static FILE *log_file = NULL;
|
static FILE *log_file = NULL;
|
||||||
static bool main_verbosity = false;
|
static bool main_verbosity = false;
|
||||||
static bool initialized = false;
|
static bool log_file_initialized = false;
|
||||||
|
|
||||||
void verbosity_enable(void)
|
void verbosity_enable(void)
|
||||||
{
|
{
|
||||||
@ -87,14 +87,15 @@ void *retro_main_log_file(void)
|
|||||||
|
|
||||||
void retro_main_log_file_init(const char *path)
|
void retro_main_log_file_init(const char *path)
|
||||||
{
|
{
|
||||||
if (initialized)
|
if (log_file_initialized)
|
||||||
return;
|
return;
|
||||||
log_file = stderr;
|
|
||||||
|
log_file = stderr;
|
||||||
if (path == NULL)
|
if (path == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
log_file = fopen(path, "wb");
|
log_file = fopen(path, "wb");
|
||||||
initialized = true;
|
log_file_initialized = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void retro_main_log_file_deinit(void)
|
void retro_main_log_file_deinit(void)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user