2021-12-25 15:18:17 +00:00
|
|
|
void pascal near scoredat_load(void)
|
|
|
|
{
|
|
|
|
int byte;
|
|
|
|
file_ropen(SCOREDAT_FN);
|
|
|
|
file_seek(rank * sizeof(hi), 0);
|
|
|
|
file_read(&hi, sizeof(hi));
|
|
|
|
for(byte = 0; byte < sizeof(hi.score); byte++) {
|
|
|
|
*((unsigned char*)(&hi.score) + byte) -= 0x12;
|
|
|
|
}
|
|
|
|
file_close();
|
|
|
|
}
|