Skip to content

Commit 22c8a5e

Browse files
authored
update to rcheevos 12.2.1 (#18615)
1 parent 333e39f commit 22c8a5e

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

deps/rcheevos/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# v12.2.1
2+
* fix parsing of leaderboards with comparisons in legacy-formatted values
3+
* fix validation warning on long AddSource chains
4+
15
# v12.2.0
26
* add rc_client_create_subset_list
37
* add rc_client_begin_fetch_game_titles

deps/rcheevos/src/rc_version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ RC_BEGIN_C_DECLS
99

1010
#define RCHEEVOS_VERSION_MAJOR 12
1111
#define RCHEEVOS_VERSION_MINOR 2
12-
#define RCHEEVOS_VERSION_PATCH 0
12+
#define RCHEEVOS_VERSION_PATCH 1
1313

1414
#define RCHEEVOS_MAKE_VERSION(major, minor, patch) (major * 1000000 + minor * 1000 + patch)
1515
#define RCHEEVOS_VERSION RCHEEVOS_MAKE_VERSION(RCHEEVOS_VERSION_MAJOR, RCHEEVOS_VERSION_MINOR, RCHEEVOS_VERSION_PATCH)

deps/rcheevos/src/rcheevos/value.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,11 @@ static void rc_parse_legacy_value(rc_value_t* self, const char** memaddr, rc_par
180180
return;
181181
}
182182

183-
if (!rc_operator_is_modifying(cond->oper)) {
184-
parse->offset = RC_INVALID_OPERATOR;
185-
return;
183+
if (cond->type == RC_CONDITION_MEASURED && !rc_operator_is_modifying(cond->oper)) {
184+
/* ignore non-modifying operator on measured clause. if it were parsed as an AddSource
185+
* or SubSource, that would have already happened in rc_parse_condition_internal, and
186+
* legacy formatted values are essentially a series of AddSources. */
187+
cond->oper = RC_OPERATOR_NONE;
186188
}
187189

188190
rc_condition_update_parse_state(cond, parse);

0 commit comments

Comments
 (0)