Fixed identation

This commit is contained in:
Dimitris Panokostas 2017-12-13 14:39:43 +01:00
parent 032ec401e7
commit ce5525b475
3 changed files with 62 additions and 62 deletions

1
.gitignore vendored
View file

@ -47,3 +47,4 @@ VSLinux/obj/ARM/Debug/amiberry-sdl2-dev
VisualGDB/VisualGDB/Debug/Amiberry-sdl2-dev
VSLinux/obj/ARM/Debug/
VisualGDB/Amiberry/VisualGDB/Debug/Amiberry-sdl1
VisualGDB/Amiberry/VisualGDB/Debug/Amiberry-sdl2

View file

@ -1484,12 +1484,12 @@ void init_row_map (void)
oldpitch = gfxvidinfo.drawbuffer.rowbytes;
}
static void init_aspect_maps (void)
static void init_aspect_maps(void)
{
int i, maxl, h;
int i, h;
linedbl = currprefs.gfx_vresolution;
maxl = (MAXVPOS + 1) << linedbl;
int maxl = (MAXVPOS + 1) << linedbl;
min_ypos_for_screen = minfirstline << linedbl;
max_drawn_amiga_line = -1;
@ -1522,10 +1522,9 @@ static void init_aspect_maps (void)
native2amiga_line_map[i] = -1;
for (i = maxl - 1; i >= min_ypos_for_screen; i--) {
int j;
if (amiga2aspect_line_map[i] == -1)
continue;
for (j = amiga2aspect_line_map[i]; j < h && native2amiga_line_map[j] == -1; j++)
for (int j = amiga2aspect_line_map[i]; j < h && native2amiga_line_map[j] == -1; j++)
native2amiga_line_map[j] = (i + VERTICAL_OFFSET) >> linedbl;
}
}

View file

@ -1681,69 +1681,69 @@ bool is_hardreset(void)
return cpu_hardreset;
}
void m68k_go (int may_quit)
void m68k_go(int may_quit)
{
int hardboot = 1;
int hardboot = 1;
int startup = 1;
if (in_m68k_go || !may_quit) {
write_log (_T("Bug! m68k_go is not reentrant.\n"));
abort ();
}
if (in_m68k_go || !may_quit) {
write_log(_T("Bug! m68k_go is not reentrant.\n"));
abort();
}
reset_frame_rate_hack ();
update_68k_cycles ();
reset_frame_rate_hack();
update_68k_cycles();
cpu_prefs_changed_flag = 0;
in_m68k_go++;
for (;;) {
void (*run_func)(void);
in_m68k_go++;
for (;;) {
void(*run_func)(void);
if (quit_program > 0) {
if (quit_program > 0) {
int restored = 0;
bool cpu_keyboardreset = quit_program == UAE_RESET_KEYBOARD;
cpu_hardreset = ((quit_program == UAE_RESET_HARD ? 1 : 0) | hardboot) != 0;
if (quit_program == UAE_QUIT)
break;
break;
hsync_counter = 0;
quit_program = 0;
hardboot = 0;
quit_program = 0;
hardboot = 0;
#ifdef SAVESTATE
if (savestate_state == STATE_DORESTORE)
savestate_state = STATE_RESTORE;
if (savestate_state == STATE_RESTORE)
restore_state (savestate_fname);
if (savestate_state == STATE_RESTORE)
restore_state(savestate_fname);
#endif
prefs_changed_cpu();
build_cpufunctbl ();
set_x_funcs ();
set_cycles (0);
custom_reset (cpu_hardreset != 0, cpu_keyboardreset);
m68k_reset (cpu_hardreset != 0);
if (cpu_hardreset) {
memory_clear ();
write_log (_T("hardreset, memory cleared\n"));
}
build_cpufunctbl();
set_x_funcs();
set_cycles(0);
custom_reset(cpu_hardreset != 0, cpu_keyboardreset);
m68k_reset(cpu_hardreset != 0);
if (cpu_hardreset) {
memory_clear();
write_log(_T("hardreset, memory cleared\n"));
}
cpu_hardreset = false;
#ifdef SAVESTATE
/* We may have been restoring state, but we're done now. */
if (isrestore ()) {
savestate_restore_finish ();
/* We may have been restoring state, but we're done now. */
if (isrestore()) {
savestate_restore_finish();
startup = 1;
restored = 1;
}
}
#endif
if (currprefs.produce_sound == 0)
eventtab[ev_audio].active = 0;
m68k_setpc_normal (regs.pc);
check_prefs_changed_audio ();
if (currprefs.produce_sound == 0)
eventtab[ev_audio].active = 0;
m68k_setpc_normal(regs.pc);
check_prefs_changed_audio();
if (!restored || hsync_counter == 0)
savestate_check ();
}
savestate_check();
}
if (regs.spcflags & SPCFLAG_MODE_CHANGE) {
if (cpu_prefs_changed_flag & 1) {
@ -1753,22 +1753,22 @@ void m68k_go (int may_quit)
build_cpufunctbl();
m68k_setpc_normal(pc);
fill_prefetch();
}
}
if (cpu_prefs_changed_flag & 2) {
fixup_cpu(&changed_prefs);
currprefs.m68k_speed = changed_prefs.m68k_speed;
update_68k_cycles();
}
cpu_prefs_changed_flag = 0;
set_speedup_values();
set_speedup_values();
}
set_x_funcs();
if (startup) {
custom_prepare ();
protect_roms (true);
if (startup) {
custom_prepare();
protect_roms(true);
}
startup = 0;
startup = 0;
unset_special(SPCFLAG_MODE_CHANGE);
if (!regs.halted) {
@ -1780,29 +1780,29 @@ void m68k_go (int may_quit)
}
}
if (regs.halted) {
cpu_halt (regs.halted);
cpu_halt(regs.halted);
if (regs.halted < 0) {
haltloop();
continue;
}
continue;
}
}
run_func =
currprefs.cpu_compatible && currprefs.cpu_model <= 68010 ? m68k_run_1 :
run_func =
currprefs.cpu_compatible && currprefs.cpu_model <= 68010 ? m68k_run_1 :
#ifdef JIT
currprefs.cpu_model >= 68020 && currprefs.cachesize ? m68k_run_jit :
currprefs.cpu_model >= 68020 && currprefs.cachesize ? m68k_run_jit :
#endif
m68k_run_2;
run_func ();
}
protect_roms (false);
m68k_run_2;
run_func();
}
protect_roms(false);
// Prepare for a restart: reset pc
regs.pc = 0;
regs.pc_p = NULL;
regs.pc_oldp = NULL;
// Prepare for a restart: reset pc
regs.pc = 0;
regs.pc_p = NULL;
regs.pc_oldp = NULL;
in_m68k_go--;
in_m68k_go--;
}
#ifdef SAVESTATE