This commit is contained in:
twinaphex 2022-04-09 08:50:38 +02:00
parent d4547baf26
commit f0f0b31f9a
2 changed files with 4 additions and 14 deletions

13
main.c
View File

@ -270,17 +270,7 @@ void reset_gba(void)
reset_sound();
}
u32 file_length(FILE *fp)
{
u32 length;
fseek(fp, 0, SEEK_END);
length = ftell(fp);
fseek(fp, 0, SEEK_SET);
return length;
}
#ifdef TRACE_REGISTERS
void print_regs(void)
{
printf("R0=%08x R1=%08x R2=%08x R3=%08x "
@ -292,6 +282,7 @@ void print_regs(void)
reg[8], reg[9], reg[10], reg[11],
reg[12], reg[13], reg[14]);
}
#endif
bool main_read_savestate(const u8 *src)
{

5
main.h
View File

@ -85,14 +85,13 @@ void game_name_ext(char *src, char *buffer, char *extension);
unsigned main_write_savestate(u8* ptr);
bool main_read_savestate(const u8 *src);
u32 file_length(FILE *fp);
extern u32 num_skipped_frames;
extern int dynarec_enable;
extern boot_mode selected_boot_mode;
#ifdef TRACE_REGISTERS
void print_regs(void);
#endif
#endif