Skip to content

Commit

Permalink
Fix web cheats with hex numbers > 0x7FFF'FFFF
Browse files Browse the repository at this point in the history
  • Loading branch information
OFFTKP committed Aug 31, 2023
1 parent c403142 commit ed5b197
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -4081,7 +4081,7 @@ void se_convert_cheat_code(char * text_code, int cheat_index){
memcpy(hex,code_buffer_truncated+i*8,8);
for(int h=0;h<8;++h)if(hex[h]==0)hex[h]='0';
hex[8]='\0';
cheat->buffer[i]=strtol(hex,NULL,16);
cheat->buffer[i]=strtoul(hex,NULL,16);
}

}
Expand Down

0 comments on commit ed5b197

Please sign in to comment.