Assorted fixes, including warning message box for unavailable devices and translation fixes.

This commit is contained in:
OBattler
2025-01-27 01:20:37 +01:00
parent 87a88eae88
commit 8f5cf293bd
30 changed files with 282 additions and 76 deletions

View File

@@ -31,7 +31,8 @@ timer_enable(pc_timer_t *timer)
timer_disable(timer);
if (timer->next || timer->prev)
fatal("timer_enable - timer->next\n");
fatal("timer_disable(): Attempting to enable a non-isolated "
"timer incorrectly marked as disabled\n");
/*List currently empty - add to head*/
if (!timer_head) {
@@ -92,7 +93,8 @@ timer_disable(pc_timer_t *timer)
return;
if (!timer->next && !timer->prev && timer != timer_head)
fatal("timer_disable - !timer->next\n");
fatal("timer_disable(): Attempting to disable an isolated "
"non-head timer incorrectly marked as enabled\n");
timer->flags &= ~TIMER_ENABLED;
timer->in_callback = 0;