MCPcopy Create free account
hub / github.com/chrxh/alien / setStringToWinReg

Function setStringToWinReg

source/Base/GlobalSettings.cpp:70–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68 }
69
70 void setStringToWinReg(std::string const& name, std::string const& value)
71 {
72 try {
73 auto key = getOrCreateAlienRegKey();
74 key.SetStringValue(ConvertUtf8ToWide(name), ConvertUtf8ToWide(value));
75
76 } catch (std::exception const& exception) {
77 log(Priority::Important, exception.what());
78 }
79 }
80
81 int getIntFromWinReg(std::string const& name, int const& defaultValue)
82 {

Callers 3

setFloatToWinRegFunction · 0.85
setBoolToWinRegFunction · 0.85
setValueMethod · 0.85

Calls 4

getOrCreateAlienRegKeyFunction · 0.85
ConvertUtf8ToWideFunction · 0.85
logFunction · 0.85
SetStringValueMethod · 0.80

Tested by

no test coverage detected