Skip to content

Commit e800ff8

Browse files
authored
Merge pull request #3 from goweiwen/v1.21
Update to v1.22.2
2 parents 177544c + 31298be commit e800ff8

File tree

7 files changed

+61
-56
lines changed

7 files changed

+61
-56
lines changed

Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ ifeq ($(PLATFORM),linux)
1414
ECHO = echo -e
1515
endif
1616

17+
SHELL := /bin/bash
18+
.SHELLFLAGS := -eu -o pipefail -c
19+
1720
# Function to print status messages
1821
print_status = $(ECHO) "\033[34m--- $1\033[0m"
1922

@@ -82,5 +85,5 @@ build: $(BUILD_DIR)/retroarch $(BUILD_DIR)/retroarch_miyoo354
8285

8386
clean:
8487
@$(call print_status, Cleaning)
85-
rm -rf $(BUILD_DIR)
86-
rm -rf bin
88+
rm -rf $(BUILD_DIR) || true
89+
rm -rf bin || true

patches/00001_initial_commit_by_eggs.patch

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -221,23 +221,31 @@ index 543fe5b630..4a0e4ffd78 100644
221221
};
222222
+#endif
223223
diff --git a/libretro-common/audio/conversion/float_to_s16.c b/libretro-common/audio/conversion/float_to_s16.c
224-
index 770981d9c1..cbbd0908f7 100644
224+
index 5f2ab2405a..35f01e7dae 100644
225225
--- a/libretro-common/audio/conversion/float_to_s16.c
226226
+++ b/libretro-common/audio/conversion/float_to_s16.c
227-
@@ -32,12 +32,11 @@
227+
@@ -32,11 +32,10 @@
228228
#include <audio/conversion/float_to_s16.h>
229-
229+
230230
#if (defined(__ARM_NEON__) || defined(HAVE_NEON))
231231
+#include <arm_neon.h>
232232
static bool float_to_s16_neon_enabled = false;
233233
#ifdef HAVE_ARM_NEON_ASM_OPTIMIZATIONS
234-
void convert_float_s16_asm(int16_t *out,
235-
const float *in, size_t samples);
234+
void convert_float_s16_asm(int16_t *s, const float *in, size_t len);
236235
-#else
237236
-#include <arm_neon.h>
238237
#endif
239-
240-
void convert_float_to_s16(int16_t *out,
238+
239+
void convert_float_to_s16(int16_t *s, const float *in, size_t len)
240+
@@ -55,7 +54,7 @@ void convert_float_to_s16(int16_t *s, const float *in, size_t len)
241+
242+
s += aligned_samples;
243+
in += aligned_samples;
244+
- samples -= aligned_samples;
245+
+ len -= aligned_samples;
246+
i = 0;
247+
#else
248+
int16x4x2_t oreg;
241249
diff --git a/retroarch.c b/retroarch.c
242250
index d28825d383..6bb120bd89 100644
243251
--- a/retroarch.c
Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,28 @@
11
diff --git a/tasks/task_save.c b/tasks/task_save.c
2-
index 636feebd6f..c6391d13a3 100644
2+
index 0f867f38d0..ae6d252fa6 100644
33
--- a/tasks/task_save.c
44
+++ b/tasks/task_save.c
5-
@@ -1057,10 +1057,10 @@ static void task_load_handler(retro_task_t *task)
6-
7-
if (state->flags & SAVE_TASK_FLAG_AUTOLOAD)
8-
{
9-
- snprintf(msg,
10-
- msg_size - 1,
5+
@@ -793,11 +793,7 @@ static void task_load_handler(retro_task_t *task)
6+
{
7+
char msg[128];
8+
9+
- if (state->flags & SAVE_TASK_FLAG_AUTOLOAD)
10+
- snprintf(msg, sizeof(msg),
1111
- msg_hash_to_str(MSG_AUTOLOADING_SAVESTATE_SUCCEEDED),
1212
- path_basename(state->path));
13-
+ // snprintf(msg,
14-
+ // msg_size - 1,
15-
+ // msg_hash_to_str(MSG_AUTOLOADING_SAVESTATE_SUCCEEDED),
16-
+ // path_basename(state->path));
17-
}
18-
else
13+
- else
14+
+ if (!(state->flags & SAVE_TASK_FLAG_AUTOLOAD))
1915
{
20-
@@ -1074,7 +1074,6 @@ static void task_load_handler(retro_task_t *task)
16+
if (state->state_slot < 0)
17+
strlcpy(msg,
18+
@@ -807,9 +803,8 @@ static void task_load_handler(retro_task_t *task)
19+
snprintf(msg, sizeof(msg),
20+
msg_hash_to_str(MSG_LOADED_STATE_FROM_SLOT),
2121
state->state_slot);
22+
+ task_set_title(task, strdup(msg));
2223
}
23-
24+
-
2425
- task_set_title(task, strdup(msg));
25-
free(msg);
2626
}
27-
27+
28+
goto end;

patches/00007_goweiwen_add_state_disk_slot_commands.patch

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,10 @@ index 1f07bdd4eeb..b64f63f08d9 100644
130130
bool command_load_state_slot(command_t *cmd, const char *arg)
131131
{
132132
diff --git a/command.h b/command.h
133-
index ad3ac3e12eb..416f98062f6 100644
133+
index 6fd256541b..7e9c378af4 100644
134134
--- a/command.h
135135
+++ b/command.h
136-
@@ -408,6 +408,12 @@ bool command_version(command_t *cmd, const char* arg);
136+
@@ -426,6 +426,12 @@ bool command_version(command_t *cmd, const char* arg);
137137
bool command_get_status(command_t *cmd, const char* arg);
138138
bool command_get_config_param(command_t *cmd, const char* arg);
139139
bool command_show_osd_msg(command_t *cmd, const char* arg);
@@ -145,33 +145,29 @@ index ad3ac3e12eb..416f98062f6 100644
145145
+bool command_save_state_slot(command_t *cmd, const char *arg);
146146
bool command_load_state_slot(command_t *cmd, const char* arg);
147147
bool command_play_replay_slot(command_t *cmd, const char* arg);
148-
#ifdef HAVE_CHEEVOS
149-
@@ -441,8 +447,15 @@ static const struct cmd_action_map action_map[] = {
148+
bool command_seek_replay(command_t *cmd, const char *arg);
149+
@@ -456,6 +462,13 @@ static const struct cmd_action_map action_map[] = {
150150
{ "READ_CORE_MEMORY", command_read_memory, "<address> <number of bytes>" },
151151
{ "WRITE_CORE_MEMORY",command_write_memory, "<address> <byte1> <byte2> ..." },
152-
153-
- { "LOAD_STATE_SLOT",command_load_state_slot, "<slot number>"},
154-
- { "PLAY_REPLAY_SLOT",command_play_replay_slot, "<slot number>"},
152+
155153
+ { "GET_DISK_COUNT", command_get_disk_count, "No argument" },
156154
+ { "GET_DISK_SLOT", command_get_disk_slot, "No argument" },
157155
+ { "SET_DISK_SLOT", command_set_disk_slot, "<disc number>" },
158156
+
159157
+ { "GET_STATE_SLOT", command_get_state_slot, "No argument" },
160158
+ { "SET_STATE_SLOT", command_set_state_slot, "<slot number>" },
161159
+ { "SAVE_STATE_SLOT", command_save_state_slot, "<slot number>" },
162-
+ { "LOAD_STATE_SLOT", command_load_state_slot, "<slot number>" },
163-
+ { "PLAY_REPLAY_SLOT", command_play_replay_slot, "<slot number>" },
164-
};
165-
166-
static const struct cmd_map map[] = {
160+
{ "LOAD_STATE_SLOT",command_load_state_slot, "<slot number>"},
161+
{ "PLAY_REPLAY_SLOT",command_play_replay_slot, "<slot number>"},
162+
{ "SEEK_REPLAY",command_seek_replay, "<frame number>"},
167163
diff --git a/runloop.c b/runloop.c
168-
index 846fbabcd3a..bd8bc2adecf 100644
164+
index a4bc004f26..669737e7ab 100644
169165
--- a/runloop.c
170166
+++ b/runloop.c
171-
@@ -7195,6 +7195,18 @@ void runloop_task_msg_queue_push(
167+
@@ -7361,6 +7361,17 @@ void runloop_task_msg_queue_push(
168+
runloop_msg_queue_push(msg, prio, duration, flush, NULL, MESSAGE_QUEUE_ICON_DEFAULT, MESSAGE_QUEUE_CATEGORY_INFO);
172169
}
173-
174-
170+
175171
+uint32_t runloop_get_current_savestate()
176172
+{
177173
+ settings_t *settings = config_get_ptr();
@@ -183,10 +179,9 @@ index 846fbabcd3a..bd8bc2adecf 100644
183179
+ settings_t *settings = config_get_ptr();
184180
+ settings->ints.state_slot = state_slot;
185181
+}
186-
+
182+
187183
bool runloop_get_current_savestate_path(char *path, size_t len)
188184
{
189-
settings_t *settings = config_get_ptr();
190185
diff --git a/runloop.h b/runloop.h
191186
index 3ba255f7ba9..b0f2d5f567b 100644
192187
--- a/runloop.h

patches/00009_goweiwen_retain_fast-forward_state_when_pausing.patch

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,29 +8,27 @@ Subject: [PATCH] feat: retain fast-forward state when pausing
88
1 file changed, 8 insertions(+), 8 deletions(-)
99

1010
diff --git a/runloop.c b/runloop.c
11-
index bd8bc2adecf..27f2c8b8048 100644
11+
index 55313076f0..d264d5989f 100644
1212
--- a/runloop.c
1313
+++ b/runloop.c
14-
@@ -6210,14 +6210,14 @@ static enum runloop_state_enum runloop_check_state(
14+
@@ -6476,13 +6476,13 @@ static enum runloop_state_enum runloop_check_state(
1515
if (!check2)
1616
check2 = old_hold_button_state != new_hold_button_state;
17-
17+
1818
- /* Don't allow fastmotion while paused */
19-
- if (runloop_paused)
19+
- if (check2 && runloop_paused)
2020
- {
21-
- check2 = true;
2221
- new_button_state = false;
2322
- new_hold_button_state = false;
2423
- input_st->flags |= INP_FLAG_NONBLOCKING;
2524
- }
2625
+ // /* Don't allow fastmotion while paused */
27-
+ // if (runloop_paused)
26+
+ // if (check2 && runloop_paused)
2827
+ // {
29-
+ // check2 = true;
3028
+ // new_button_state = false;
3129
+ // new_hold_button_state = false;
3230
+ // input_st->flags |= INP_FLAG_NONBLOCKING;
3331
+ // }
34-
35-
if (check2)
36-
{
32+
33+
#ifdef HAVE_NETWORKING
34+
if (check2 && !netplay_allow_timeskip)

src/input/drivers_joypad/sdl_miyoomini_joypad.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ static void sdl_miyoomini_joypad_connect(void) {
139139
/* 'Register' joypad connection via autoconfig task */
140140
input_autoconfigure_connect(
141141
sdl_miyoomini_joypad_name(0), /* name */
142-
NULL, /* display_name */
142+
NULL, NULL, /* display_names */
143143
sdl_dingux_joypad.ident, /* driver */
144144
0, /* port */
145145
0, /* vid */

submodules/RetroArch

Submodule RetroArch updated 1188 files

0 commit comments

Comments
 (0)