From 346dd4006ea1283136095d5c43f602324a095092 Mon Sep 17 00:00:00 2001 From: Jesse Talavera-Greenberg Date: Sat, 25 Nov 2023 12:32:09 -0500 Subject: Move all core types into namespaces (#1886) * Reorganize namespaces - Most types are now moved into the `melonDS` namespace - Only good chance to do this for a while, since a big refactor is next * Fix the build --- src/frontend/qt_sdl/PowerManagement/PowerManagementDialog.cpp | 2 ++ src/frontend/qt_sdl/PowerManagement/PowerManagementDialog.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'src/frontend/qt_sdl/PowerManagement') diff --git a/src/frontend/qt_sdl/PowerManagement/PowerManagementDialog.cpp b/src/frontend/qt_sdl/PowerManagement/PowerManagementDialog.cpp index 1d69988..14ccd51 100644 --- a/src/frontend/qt_sdl/PowerManagement/PowerManagementDialog.cpp +++ b/src/frontend/qt_sdl/PowerManagement/PowerManagementDialog.cpp @@ -30,6 +30,8 @@ #include +using namespace melonDS; + PowerManagementDialog* PowerManagementDialog::currentDlg = nullptr; PowerManagementDialog::PowerManagementDialog(QWidget* parent) : QDialog(parent), ui(new Ui::PowerManagementDialog) diff --git a/src/frontend/qt_sdl/PowerManagement/PowerManagementDialog.h b/src/frontend/qt_sdl/PowerManagement/PowerManagementDialog.h index 0302586..cd2954a 100644 --- a/src/frontend/qt_sdl/PowerManagement/PowerManagementDialog.h +++ b/src/frontend/qt_sdl/PowerManagement/PowerManagementDialog.h @@ -67,7 +67,7 @@ private: bool inited; bool oldDSBatteryLevel; - u8 oldDSiBatteryLevel; + melonDS::u8 oldDSiBatteryLevel; bool oldDSiBatteryCharging; void updateDSBatteryLevelControls(); -- cgit v1.2.3