Skip to content

Commit 07b9202

Browse files
committed
Merge remote-tracking branch 'upstream/master' into storage-access-framework
2 parents 6811ec6 + 7e0d99f commit 07b9202

6 files changed

Lines changed: 64 additions & 38 deletions

File tree

input/input_driver.c

Lines changed: 44 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -6017,40 +6017,6 @@ void input_driver_poll(void)
60176017
&& input_st->current_driver->poll)
60186018
input_st->current_driver->poll(input_st->current_data);
60196019

6020-
input_st->turbo_btns.count++;
6021-
6022-
if (input_st->flags & INP_FLAG_BLOCK_LIBRETRO_INPUT)
6023-
{
6024-
for (i = 0; i < max_users; i++)
6025-
input_st->turbo_btns.frame_enable[i] = 0;
6026-
return;
6027-
}
6028-
6029-
/* This rarch_joypad_info_t struct contains the device index + autoconfig binds for the
6030-
* controller to be queried, and also (for unknown reasons) the analog axis threshold
6031-
* when mapping analog stick to dpad input. */
6032-
for (i = 0; i < max_users; i++)
6033-
{
6034-
uint16_t button_id = RARCH_TURBO_ENABLE;
6035-
6036-
if (settings->ints.input_turbo_bind != -1)
6037-
button_id = settings->ints.input_turbo_bind;
6038-
6039-
joypad_info[i].axis_threshold = input_axis_threshold;
6040-
joypad_info[i].joy_idx = settings->uints.input_joypad_index[i];
6041-
joypad_info[i].auto_binds = input_autoconf_binds[joypad_info[i].joy_idx];
6042-
6043-
input_st->turbo_btns.frame_enable[i] =
6044-
(*input_st->libretro_input_binds[i])[button_id].valid
6045-
&& settings->bools.input_turbo_enable ?
6046-
input_state_wrap(input_st->current_driver, input_st->current_data,
6047-
joypad, sec_joypad, &joypad_info[i],
6048-
(*input_st->libretro_input_binds),
6049-
(input_st->flags & INP_FLAG_KB_MAPPING_BLOCKED) ? true : false,
6050-
(unsigned)i,
6051-
RETRO_DEVICE_JOYPAD, 0, button_id) : 0;
6052-
}
6053-
60546020
#ifdef HAVE_OVERLAY
60556021
if ( input_st->overlay_ptr
60566022
&& (input_st->overlay_ptr->flags & INPUT_OVERLAY_ALIVE))
@@ -6091,6 +6057,50 @@ void input_driver_poll(void)
60916057
}
60926058
#endif
60936059

6060+
input_st->turbo_btns.count++;
6061+
6062+
if (input_st->flags & INP_FLAG_BLOCK_LIBRETRO_INPUT)
6063+
{
6064+
for (i = 0; i < max_users; i++)
6065+
input_st->turbo_btns.frame_enable[i] = 0;
6066+
return;
6067+
}
6068+
6069+
/* This rarch_joypad_info_t struct contains the device index + autoconfig binds for the
6070+
* controller to be queried, and also (for unknown reasons) the analog axis threshold
6071+
* when mapping analog stick to dpad input. */
6072+
for (i = 0; i < max_users; i++)
6073+
{
6074+
uint16_t button_id = RARCH_TURBO_ENABLE;
6075+
bool turbo_enable = settings->bools.input_turbo_enable;
6076+
6077+
if (settings->ints.input_turbo_bind != -1)
6078+
button_id = settings->ints.input_turbo_bind;
6079+
6080+
joypad_info[i].axis_threshold = input_axis_threshold;
6081+
joypad_info[i].joy_idx = settings->uints.input_joypad_index[i];
6082+
joypad_info[i].auto_binds = input_autoconf_binds[joypad_info[i].joy_idx];
6083+
6084+
input_st->turbo_btns.frame_enable[i] =
6085+
(*input_st->libretro_input_binds[i])[button_id].valid
6086+
&& turbo_enable ?
6087+
input_state_wrap(input_st->current_driver, input_st->current_data,
6088+
joypad, sec_joypad, &joypad_info[i],
6089+
(*input_st->libretro_input_binds),
6090+
(input_st->flags & INP_FLAG_KB_MAPPING_BLOCKED) ? true : false,
6091+
(unsigned)i,
6092+
RETRO_DEVICE_JOYPAD, 0, button_id) : 0;
6093+
6094+
#ifdef HAVE_OVERLAY
6095+
if ( (i == 0)
6096+
&& turbo_enable
6097+
&& input_st->overlay_ptr
6098+
&& (input_st->overlay_ptr->flags & INPUT_OVERLAY_ALIVE)
6099+
&& BIT256_GET(input_st->overlay_ptr->overlay_state.buttons, button_id))
6100+
input_st->turbo_btns.frame_enable[i] = true;
6101+
#endif
6102+
}
6103+
60946104
#ifdef HAVE_MENU
60956105
if (!(menu_state_get_ptr()->flags & MENU_ST_FLAG_ALIVE))
60966106
#endif

intl/msg_hash_ko.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2501,6 +2501,10 @@ MSG_HASH(
25012501
MENU_ENUM_LABEL_VALUE_VIDEO_SCALE_INTEGER_SCALING,
25022502
"정수 단위 조정 방식"
25032503
)
2504+
MSG_HASH(
2505+
MENU_ENUM_SUBLABEL_VIDEO_SCALE_INTEGER_SCALING,
2506+
"정수 배율을 올림으로 계산할지 버림으로 계산할지 설정합니다. '스마트'로 설정할 경우, 화면이 너무 많이 잘려나갈 것 같을 때는 버림으로 계산되며, 버림을 했을 때 빈 공간이 너무 많이 남을 것 같을 때는 정수 단위 화면 크기를 사용하지 않습니다."
2507+
)
25042508
MSG_HASH(
25052509
MENU_ENUM_LABEL_VALUE_VIDEO_SCALE_INTEGER_SCALING_UNDERSCALE,
25062510
"버림"

intl/msg_hash_ru.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2497,6 +2497,10 @@ MSG_HASH(
24972497
MENU_ENUM_LABEL_VALUE_VIDEO_SCALE_INTEGER_SCALING,
24982498
"Масштабирование целочисленной шкалы"
24992499
)
2500+
MSG_HASH(
2501+
MENU_ENUM_SUBLABEL_VIDEO_SCALE_INTEGER_SCALING,
2502+
"Округлять вниз или вверх до ближайшего целого значения. 'Умный' режим при избыточном кадрировании изображения включает занижение масштаба, а при слишком больших отступах использует нецелочисленное масштабирование."
2503+
)
25002504
MSG_HASH(
25012505
MENU_ENUM_LABEL_VALUE_VIDEO_SCALE_INTEGER_SCALING_UNDERSCALE,
25022506
"Занижать масштаб"

intl/msg_hash_vn.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ MSG_HASH( /* FIXME Maybe add a description? */
250250
)
251251
MSG_HASH( /* FIXME Maybe add a description? */
252252
MENU_ENUM_LABEL_VALUE_START_NET_RETROPAD,
253-
"Khởi động RetroPad từ xa"
253+
"Khởi động tay cầm từ xa"
254254
)
255255

256256
/* Main Menu > Load Content */
@@ -2489,6 +2489,10 @@ MSG_HASH(
24892489
MENU_ENUM_LABEL_VALUE_VIDEO_SCALE_INTEGER_SCALING,
24902490
"Tỷ lệ số nguyên"
24912491
)
2492+
MSG_HASH(
2493+
MENU_ENUM_SUBLABEL_VIDEO_SCALE_INTEGER_SCALING,
2494+
"Làm tròn xuống hoặc lên đến hệ số nguyên tiếp theo. Chế độ “Thông minh” sẽ giảm xuống mức thu nhỏ khi hình ảnh bị cắt quá nhiều, và cuối cùng quay về thu phóng không nguyên nếu phần bị thu nhỏ trở nên quá lớn."
2495+
)
24922496
MSG_HASH(
24932497
MENU_ENUM_LABEL_VALUE_VIDEO_SCALE_INTEGER_SCALING_UNDERSCALE,
24942498
"Thu nhỏ hình"

intl/progress.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
#define LANGUAGE_PROGRESS_JAPANESE_APPROVED 0
9696

9797
/* Korean */
98-
#define LANGUAGE_PROGRESS_KOREAN_TRANSLATED 99
98+
#define LANGUAGE_PROGRESS_KOREAN_TRANSLATED 100
9999
#define LANGUAGE_PROGRESS_KOREAN_APPROVED 0
100100

101101
/* Dutch */
@@ -123,7 +123,7 @@
123123
#define LANGUAGE_PROGRESS_PORTUGUESE_APPROVED 0
124124

125125
/* Russian */
126-
#define LANGUAGE_PROGRESS_RUSSIAN_TRANSLATED 99
126+
#define LANGUAGE_PROGRESS_RUSSIAN_TRANSLATED 100
127127
#define LANGUAGE_PROGRESS_RUSSIAN_APPROVED 12
128128

129129
/* Slovak */
@@ -155,7 +155,7 @@
155155
#define LANGUAGE_PROGRESS_VALENCIAN_APPROVED 0
156156

157157
/* Vietnamese */
158-
#define LANGUAGE_PROGRESS_VIETNAMESE_TRANSLATED 99
158+
#define LANGUAGE_PROGRESS_VIETNAMESE_TRANSLATED 100
159159
#define LANGUAGE_PROGRESS_VIETNAMESE_APPROVED 0
160160

161161
/* Chinese Simplified */

retroarch.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1771,6 +1771,10 @@ void drivers_init(
17711771
#ifdef HAVE_LAKKA
17721772
cpu_scaling_driver_init();
17731773
#endif
1774+
1775+
#ifdef HAVE_MENU
1776+
srand(time(NULL));
1777+
#endif
17741778
}
17751779

17761780
void driver_uninit(int flags, enum driver_lifetime_flags lifetime_flags)

0 commit comments

Comments
 (0)