diff options
Diffstat (limited to 'Examples/WhisperDesktop/AppState.cpp')
| -rw-r--r-- | Examples/WhisperDesktop/AppState.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
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 |
