mirror of
https://github.com/libretro/RetroArch
synced 2025-02-06 00:39:53 +00:00
Cleanups
This commit is contained in:
parent
c9d66eed46
commit
5241d3e5d6
@ -3521,9 +3521,8 @@ void input_keys_pressed(
|
||||
unsigned i;
|
||||
input_driver_state_t *input_st = &input_driver_st;
|
||||
|
||||
if(!binds || !binds[port]) {
|
||||
if(!binds || !binds[port])
|
||||
return;
|
||||
}
|
||||
|
||||
if (CHECK_INPUT_DRIVER_BLOCK_HOTKEY(binds_norm, binds_auto))
|
||||
{
|
||||
@ -3785,18 +3784,17 @@ int16_t input_state_device(
|
||||
input_st->turbo_btns.enable[port] = enable_new;
|
||||
}
|
||||
}
|
||||
else if (turbo_mode == INPUT_TURBO_MODE_SINGLEBUTTON_HOLD &&
|
||||
input_st->turbo_btns.enable[port] &&
|
||||
input_st->turbo_btns.mode1_enable[port])
|
||||
{
|
||||
/* Hold mode stops turbo on release */
|
||||
/* Hold mode stops turbo on release */
|
||||
else if (
|
||||
turbo_mode == INPUT_TURBO_MODE_SINGLEBUTTON_HOLD
|
||||
&& input_st->turbo_btns.enable[port]
|
||||
&& input_st->turbo_btns.mode1_enable[port])
|
||||
input_st->turbo_btns.mode1_enable[port] = 0;
|
||||
}
|
||||
|
||||
if (!res && input_st->turbo_btns.mode1_enable[port] &&
|
||||
input_st->turbo_btns.enable[port] & (1 << id))
|
||||
{
|
||||
/* if turbo button is enabled for this key ID */
|
||||
/* If turbo button is enabled for this key ID */
|
||||
res = (( input_st->turbo_btns.count
|
||||
% settings->uints.input_turbo_period)
|
||||
< settings->uints.input_turbo_duty_cycle);
|
||||
|
@ -225,10 +225,7 @@ int64_t retro_vfs_file_read_impl(libretro_vfs_implementation_file* stream,
|
||||
}
|
||||
|
||||
if ((stream->hints & RFILE_HINT_UNBUFFERED) == 0)
|
||||
{
|
||||
return fread(s, 1, (size_t)len, stream->fp);
|
||||
}
|
||||
DWORD BytesRead;
|
||||
return fread(s, 1, (size_t)len, stream->fp);
|
||||
return read(stream->fd, s, (size_t)len);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user