Skip to content

Commit

Permalink
refactor: added more ifdefs
Browse files Browse the repository at this point in the history
  • Loading branch information
midwan committed Nov 5, 2024
1 parent b7077ac commit 56daee6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/inputdevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5335,14 +5335,19 @@ static int handle_input_event2(int nr, int state, int max, int flags, int extra)
isaks = true;
}

#ifdef DEBUGGER
if (isaks) {
if (debug_trainer_event(ie->data, state))
{
return 0;
}
} else {
if (debug_trainer_event(nr, state))
{
return 0;
}
}

#endif
if (!isaks) {
if (input_record && input_record != INPREC_RECORD_PLAYING)
inprec_recordevent (nr, state, max, autofire);
Expand Down
2 changes: 2 additions & 0 deletions src/osdep/amiberry_serial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1004,9 +1004,11 @@ static void serdatcopy(void)
}

if (serper == 372) {
#ifdef ENFORCER
if (enforcermode & 2) {
console_out_f(_T("%c"), docharlog(serdatshift_masked));
}
#endif
}

if (data_in_sershift == 0) {
Expand Down

0 comments on commit 56daee6

Please sign in to comment.