MCPcopy Create free account
hub / github.com/WilliamLCobb/iNDS / SetSaveKey

Function SetSaveKey

desmume/src/lua-engine.cpp:5166–5175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5164}
5165
5166void SetSaveKey(LuaContextInfo& info, const char* key)
5167{
5168 info.dataSaveKey = crc32(0, (const unsigned char*)key, strlen(key));
5169
5170 if(!info.dataSaveLoadKeySet)
5171 {
5172 info.dataLoadKey = info.dataSaveKey;
5173 info.dataSaveLoadKeySet = true;
5174 }
5175}
5176void SetLoadKey(LuaContextInfo& info, const char* key)
5177{
5178 info.dataLoadKey = crc32(0, (const unsigned char*)key, strlen(key));

Callers 2

lua-engine.cppFile · 0.85
RunLuaScriptFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected