MCPcopy Create free account
hub / github.com/Inori/GPCS4 / getModulePolicy

Method getModulePolicy

GPCS4/Emulator/PolicyManager.cpp:169–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167}
168
169Policy PolicyManager::getModulePolicy(std::string const& modName) const
170{
171 Policy ret = m_defaultPolicy;
172 do
173 {
174 auto modIter = m_modPolicyTable.find(modName);
175 if (modIter == m_modPolicyTable.end())
176 {
177 if (m_useNativeImplsWhenBuiltinModuleNotDefined &&
178 !m_modManager.isBuiltinModuleDefined(modName))
179 {
180 ret = Policy::UseNative;
181 break;
182 }
183 else
184 {
185 ret = m_defaultPolicy;
186 break;
187 }
188 }
189 else
190 {
191 ret = modIter->second.getPolicy();
192 break;
193 }
194 } while (false);
195
196 return ret;
197}
198
199
200Policy PolicyManager::getSymbolPolicy(std::string const &modName,

Callers

nothing calls this directly

Calls 4

getPolicyMethod · 0.80
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected