Skip to content

Commit

Permalink
remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamiras committed Aug 1, 2024
1 parent 85e3a93 commit d1a6fa1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/rcheevos/memref.c
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ static uint32_t rc_get_memref_value_value(const rc_memref_value_t* memref, int o
}
}

void rc_get_memref_value(rc_typed_value_t* value, rc_memref_t* memref, int operand_type, rc_eval_state_t* eval_state) {
void rc_get_memref_value(rc_typed_value_t* value, rc_memref_t* memref, int operand_type) {
value->type = memref->value.type;
value->value.u32 = rc_get_memref_value_value(&memref->value, operand_type);
}
Expand Down
4 changes: 2 additions & 2 deletions src/rcheevos/operand.c
Original file line number Diff line number Diff line change
Expand Up @@ -656,11 +656,11 @@ void rc_evaluate_operand(rc_typed_value_t* result, const rc_operand_t* self, rc_
return;
}

rc_get_memref_value(result, self->value.memref, self->memref_access_type, eval_state);
rc_get_memref_value(result, self->value.memref, self->memref_access_type);
break;

default:
rc_get_memref_value(result, self->value.memref, self->type, eval_state);
rc_get_memref_value(result, self->value.memref, self->type);
break;
}

Expand Down
2 changes: 1 addition & 1 deletion src/rcheevos/rc_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ rc_modified_memref_t* rc_alloc_modified_memref(rc_parse_state_t* parse, uint8_t
int rc_parse_memref(const char** memaddr, uint8_t* size, uint32_t* address);
void rc_update_memref_values(rc_memref_t* memref, rc_peek_t peek, void* ud);
void rc_update_memref_value(rc_memref_value_t* memref, uint32_t value);
void rc_get_memref_value(rc_typed_value_t* value, rc_memref_t* memref, int operand_type, rc_eval_state_t* eval_state);
void rc_get_memref_value(rc_typed_value_t* value, rc_memref_t* memref, int operand_type);
uint32_t rc_get_modified_memref_value(const rc_modified_memref_t* memref, rc_peek_t peek, void* ud);
uint8_t rc_memref_shared_size(uint8_t size);
uint32_t rc_memref_mask(uint8_t size);
Expand Down

0 comments on commit d1a6fa1

Please sign in to comment.