MCPcopy Create free account
hub / github.com/alliedmodders/sourcemod / ReadSMC_KeyValue

Method ReadSMC_KeyValue

core/logic/GameConfigs.cpp:739–764  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

737 }
738
739 virtual SMCResult ReadSMC_KeyValue(const SMCStates *states, const char *key, const char *value)
740 {
741 if (ignoreLevel || state != MSTATE_FILE)
742 {
743 return SMCResult_Continue;
744 }
745
746 if (strcmp(key, "engine") == 0)
747 {
748 had_engine = true;
749 if (DoesEngineMatch(value))
750 {
751 matched_engine = true;
752 }
753 }
754 else if (strcmp(key, "game") == 0)
755 {
756 had_game = true;
757 if (DoesGameMatch(value))
758 {
759 matched_game = true;
760 }
761 }
762
763 return SMCResult_Continue;
764 }
765
766 virtual SMCResult ReadSMC_LeavingSection(const SMCStates *states)
767 {

Callers

nothing calls this directly

Calls 2

DoesEngineMatchFunction · 0.70
DoesGameMatchFunction · 0.50

Tested by

no test coverage detected