qt: Reenable and make functional ACPI shutdown button

This commit is contained in:
Cacodemon345
2023-02-06 01:39:34 +06:00
parent 6655d2d498
commit a9149bb78a
6 changed files with 50 additions and 5 deletions

View File

@@ -97,6 +97,8 @@
#include <86box/version.h>
#include <86box/gdbstub.h>
#include <86box/machine_status.h>
#include <86box/apm.h>
#include <86box/acpi.h>
// Disable c99-designator to avoid the warnings about int ng
#ifdef __clang__
@@ -1016,6 +1018,9 @@ pc_reset_hard_init(void)
* modules that are.
*/
/* Mark ACPI as unavailable */
acpi_enabled = 0;
/* Reset the general machine support modules. */
io_init();