From: <sv...@op...> - 2024-12-27 11:45:08
|
Author: manx Date: Fri Dec 27 12:44:54 2024 New Revision: 22626 URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=22626 Log: [Ref] libopenmpt: Plugin settings: Small cleanup. Modified: trunk/OpenMPT/libopenmpt/plugin-common/libopenmpt_plugin_settings.hpp Modified: trunk/OpenMPT/libopenmpt/plugin-common/libopenmpt_plugin_settings.hpp ============================================================================== --- trunk/OpenMPT/libopenmpt/plugin-common/libopenmpt_plugin_settings.hpp Fri Dec 27 12:44:29 2024 (r22625) +++ trunk/OpenMPT/libopenmpt/plugin-common/libopenmpt_plugin_settings.hpp Fri Dec 27 12:44:54 2024 (r22626) @@ -81,11 +81,7 @@ } void load() { - #ifdef UNICODE - #define read_setting(a,b,c) read_setting( b , L ## b , c) - #else - #define read_setting(a,b,c) read_setting( b , b , c) - #endif + #define read_setting(a,b,c) read_setting( b , TEXT(b) , c) read_setting( subkey, "Samplerate_Hz", samplerate ); read_setting( subkey, "Channels", channels ); read_setting( subkey, "MasterGain_milliBel", mastergain_millibel ); @@ -100,11 +96,7 @@ } void save() { - #ifdef UNICODE - #define write_setting(a,b,c) write_setting( b , L ## b , c) - #else - #define write_setting(a,b,c) write_setting( b , b , c) - #endif + #define write_setting(a,b,c) write_setting( b , TEXT(b) , c) write_setting( subkey, "Samplerate_Hz", samplerate ); write_setting( subkey, "Channels", channels ); write_setting( subkey, "MasterGain_milliBel", mastergain_millibel ); |