Move REFIT_CONFIG in Settings.

This commit is contained in:
jief 2020-04-26 12:39:41 +03:00
parent 4a9a99873d
commit 3475414580
3 changed files with 34 additions and 57 deletions

View File

@ -146,31 +146,7 @@ EMU_VARIABLE_CONTROL_PROTOCOL *gEmuVariableControl = NULL;
extern BOOLEAN NeedPMfix;
//extern INTN OldChosenAudio;
/*
typedef struct {
INTN Timeout;
UINTN DisableFlags;
BOOLEAN TextOnly;
BOOLEAN Quiet;
BOOLEAN LegacyFirst;
BOOLEAN NoLegacy;
BOOLEAN DebugLog;
BOOLEAN FastBoot;
BOOLEAN NeverHibernate;
BOOLEAN StrictHibernate;
BOOLEAN RtcHibernateAware;
BOOLEAN HibernationFixup;
BOOLEAN SignatureFixup;
CHAR16 *Theme;
CHAR16 *ScreenResolution;
INTN ConsoleMode;
BOOLEAN CustomIcons;
INTN IconFormat;
BOOLEAN NoEarlyProgress;
INT32 Timezone;
BOOLEAN ShowOptimus;
} REFIT_CONFIG;
*/
// global configuration with default values
REFIT_CONFIG GlobalConfig = {
-1, // INTN Timeout;

View File

@ -680,6 +680,39 @@ extern EFI_GUID gUuid;
extern EMU_VARIABLE_CONTROL_PROTOCOL *gEmuVariableControl;
//
// config module
//
typedef struct {
INTN Timeout;
UINTN DisableFlags; //to disable some volume types (optical, firewire etc)
BOOLEAN TextOnly;
BOOLEAN Quiet;
BOOLEAN LegacyFirst;
BOOLEAN NoLegacy;
BOOLEAN DebugLog;
BOOLEAN FastBoot;
BOOLEAN NeverHibernate;
BOOLEAN StrictHibernate;
BOOLEAN RtcHibernateAware;
BOOLEAN HibernationFixup;
BOOLEAN SignatureFixup;
CHAR16 *Theme;
CHAR16 *ScreenResolution;
INTN ConsoleMode;
BOOLEAN CustomIcons;
INTN IconFormat;
BOOLEAN NoEarlyProgress;
INT32 Timezone;
BOOLEAN ShowOptimus;
INTN Codepage;
INTN CodepageSize;
} REFIT_CONFIG;
extern REFIT_CONFIG GlobalConfig;
EFI_STATUS
SetFSInjection (

View File

@ -275,32 +275,6 @@ typedef enum {
#define HDBADGES_INLINE (1<<2)
typedef struct {
INTN Timeout;
UINTN DisableFlags; //to disable some volume types (optical, firewire etc)
BOOLEAN TextOnly;
BOOLEAN Quiet;
BOOLEAN LegacyFirst;
BOOLEAN NoLegacy;
BOOLEAN DebugLog;
BOOLEAN FastBoot;
BOOLEAN NeverHibernate;
BOOLEAN StrictHibernate;
BOOLEAN RtcHibernateAware;
BOOLEAN HibernationFixup;
BOOLEAN SignatureFixup;
CHAR16 *Theme;
CHAR16 *ScreenResolution;
INTN ConsoleMode;
BOOLEAN CustomIcons;
INTN IconFormat;
BOOLEAN NoEarlyProgress;
INT32 Timezone;
BOOLEAN ShowOptimus;
INTN Codepage;
INTN CodepageSize;
} REFIT_CONFIG;
// types
#define ANIME_INFINITE ((UINTN)-1)
//some unreal values
@ -495,12 +469,6 @@ extern XObjArray<REFIT_VOLUME> Volumes;
#endif
//
// config module
//
extern REFIT_CONFIG GlobalConfig;
//
// BmLib
//