2023-01-24 21:11:53 +01:00
|
|
|
#pragma once
|
|
|
|
#include "logger.h"
|
|
|
|
#include <string>
|
|
|
|
#include <wups/config/WUPSConfigItemBoolean.h>
|
|
|
|
#include <wups/storage.h>
|
|
|
|
|
2023-12-22 15:32:55 +01:00
|
|
|
#define CAT_CONFIG "config"
|
|
|
|
#define CAT_OTHER "other"
|
|
|
|
|
|
|
|
#define USTEALTH_CONFIG_ID "ustealth"
|
|
|
|
#define POWEROFFWARNING_CONFIG_ID "SkipPowerOffWarning"
|
|
|
|
#define FORCE_NDM_SUSPEND_SUCCESS_CONFIG_ID "forceNDMSuspendSuccess"
|
|
|
|
#define ALLOW_ERROR_NOTIFICATIONS "allowErrorNotifications"
|
|
|
|
#define CONFIG_MENU_HINT_SHOWN_ID "configMenuHintShown"
|
|
|
|
#define LAST_UPDATE_HASH_ID "lastUpdateHash"
|
|
|
|
|
|
|
|
#define ACTIVATE_USTEALTH_DEFAULT false
|
2024-02-24 10:26:01 +01:00
|
|
|
#define SKIP_4_SECOND_OFF_STATUS_CHECK_DEFAULT true
|
2023-12-22 15:32:55 +01:00
|
|
|
#define CONFIG_MENU_HINT_SHOWN_DEFAULT false
|
|
|
|
#define UPDATE_CHECKED_DEFAULT false
|
2024-02-24 10:26:01 +01:00
|
|
|
#define FORCE_NDM_SUSPEND_SUCCESS_DEFAULT true
|
|
|
|
#define ALLOW_ERROR_NOTIFICATIONS_DEFAULT true
|
2023-12-22 15:32:55 +01:00
|
|
|
#define LAST_UPDATE_HASH_DEFAULT std::string()
|
2023-01-24 21:11:53 +01:00
|
|
|
|
|
|
|
extern bool gActivateUStealth;
|
|
|
|
extern bool gSkip4SecondOffStatusCheck;
|
|
|
|
extern bool gConfigMenuHintShown;
|
|
|
|
extern std::string gLastHash;
|
2023-02-22 16:15:20 +01:00
|
|
|
extern bool gUpdateChecked;
|
|
|
|
extern bool gForceNDMSuspendSuccess;
|
2023-12-26 14:54:21 +01:00
|
|
|
extern bool gAllowErrorNotifications;
|
|
|
|
|
|
|
|
void InitConfigMenu();
|