From e7716954cb681c531132a342b4b486a28179f792 Mon Sep 17 00:00:00 2001 From: Konstantin Date: Fri, 20 Jan 2023 20:23:35 +0100 Subject: Minor, UX enhancements --- Examples/WhisperDesktop/AppState.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'Examples/WhisperDesktop/AppState.cpp') diff --git a/Examples/WhisperDesktop/AppState.cpp b/Examples/WhisperDesktop/AppState.cpp index 651e8ae..b478546 100644 --- a/Examples/WhisperDesktop/AppState.cpp +++ b/Examples/WhisperDesktop/AppState.cpp @@ -203,4 +203,17 @@ void AppState::gpuFlagsStore( uint32_t flags ) registryKey.DeleteValue( regValGpuFlags ); else dwordStore( regValGpuFlags, flags ); +} + +bool AppState::boolLoad( LPCTSTR name ) +{ + return dwordLoad( name, 0 ) != 0; +} + +void AppState::boolStore( LPCTSTR name, bool val ) +{ + if( val ) + dwordStore( name, 1 ); + else + registryKey.DeleteValue( name ); } \ No newline at end of file -- cgit v1.2.3