MCPcopy Create free account
hub / github.com/axmolengine/axmol / setEncryptEnabled

Method setEncryptEnabled

core/base/UserDefault.cpp:96–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94}
95
96void UserDefault::setEncryptEnabled(bool enabled, cxx17::string_view key, cxx17::string_view iv)
97{
98 _encryptEnabled = enabled;
99 if (_encryptEnabled)
100 {
101 ud_setkey(_key, key);
102 ud_setkey(_iv, iv);
103 }
104}
105
106void UserDefault::encrypt(std::string& inout, int enc)
107{

Callers

nothing calls this directly

Calls 1

ud_setkeyFunction · 0.85

Tested by

no test coverage detected