mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-09-02 01:42:33 +02:00
We don't need stdin
This commit is contained in:
@@ -48,11 +48,13 @@ static char *default_input_callback(GB_gameboy_t *gb)
|
|||||||
char *expression = NULL;
|
char *expression = NULL;
|
||||||
size_t size = 0;
|
size_t size = 0;
|
||||||
|
|
||||||
|
#ifndef __LIBRETRO__
|
||||||
if (getline(&expression, &size, stdin) == -1) {
|
if (getline(&expression, &size, stdin) == -1) {
|
||||||
/* The user doesn't have STDIN or used ^D. We make sure the program keeps running. */
|
/* The user doesn't have STDIN or used ^D. We make sure the program keeps running. */
|
||||||
GB_set_async_input_callback(gb, NULL); /* Disable async input */
|
GB_set_async_input_callback(gb, NULL); /* Disable async input */
|
||||||
return strdup("c");
|
return strdup("c");
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if (!expression) {
|
if (!expression) {
|
||||||
return strdup("");
|
return strdup("");
|
||||||
|
Reference in New Issue
Block a user