mirror of
https://github.com/libretro/RetroArch
synced 2025-03-01 16:13:40 +00:00
Cleanups
This commit is contained in:
parent
75f8e2e7a1
commit
21e39c0389
@ -322,15 +322,14 @@ void cheat_manager_load_cb_second_pass(char *key, char *value)
|
||||
char cheat_num_str[20];
|
||||
unsigned cheat_num;
|
||||
unsigned cheat_idx;
|
||||
int idx = 0;
|
||||
int key_length;
|
||||
int idx = 5;
|
||||
size_t key_length = 0;
|
||||
errno = 0;
|
||||
|
||||
if (strncmp(key, "cheat", 5) != 0)
|
||||
return;
|
||||
|
||||
idx = 5;
|
||||
key_length = strlen(key);
|
||||
key_length = strlen((const char*)key);
|
||||
|
||||
while (idx < key_length && key[idx] >= '0' && key[idx] <= '9' && idx < 24)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user