mirror of
https://github.com/libretro/RetroArch
synced 2025-04-02 07:20:34 +00:00
Cleanups
This commit is contained in:
parent
772558921f
commit
aa9f9004c5
@ -141,31 +141,27 @@ static void gx_devthread(void *a)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_LOGGER
|
static int gx_logger_net(struct _reent *r, int fd, const char *ptr, size_t len)
|
||||||
int gx_logger_net(struct _reent *r, int fd, const char *ptr, size_t len)
|
|
||||||
{
|
{
|
||||||
|
#ifdef HAVE_LOGGER
|
||||||
static char temp[4000];
|
static char temp[4000];
|
||||||
size_t l = len >= 4000 ? 3999 : len - 1;
|
size_t l = len >= 4000 ? 3999 : len - 1;
|
||||||
memcpy(temp, ptr, l);
|
memcpy(temp, ptr, l);
|
||||||
temp[l] = 0;
|
temp[l] = 0;
|
||||||
logger_send("%s", temp);
|
logger_send("%s", temp);
|
||||||
return len;
|
|
||||||
}
|
|
||||||
#elif defined(HAVE_FILE_LOGGER)
|
#elif defined(HAVE_FILE_LOGGER)
|
||||||
int gx_logger_file(struct _reent *r, int fd, const char *ptr, size_t len)
|
|
||||||
{
|
|
||||||
fwrite(ptr, 1, len, retro_main_log_file());
|
fwrite(ptr, 1, len, retro_main_log_file());
|
||||||
|
#endif
|
||||||
return len;
|
return len;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef IS_SALAMANDER
|
#ifdef IS_SALAMANDER
|
||||||
extern char gx_rom_path[PATH_MAX_LENGTH];
|
extern char gx_rom_path[PATH_MAX_LENGTH];
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static void frontend_gx_get_environment_settings(int *argc, char *argv[],
|
static void frontend_gx_get_environment_settings(
|
||||||
|
int *argc, char *argv[],
|
||||||
void *args, void *params_data)
|
void *args, void *params_data)
|
||||||
{
|
{
|
||||||
#ifndef IS_SALAMANDER
|
#ifndef IS_SALAMANDER
|
||||||
@ -365,7 +361,6 @@ static void frontend_gx_process_args(int *argc, char *argv[])
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void frontend_gx_set_fork(bool exitspawn, bool start_game)
|
static void frontend_gx_set_fork(bool exitspawn, bool start_game)
|
||||||
{
|
{
|
||||||
exit_spawn = exitspawn;
|
exit_spawn = exitspawn;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user