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

Method isModuleLoadable

GPCS4/Emulator/PolicyManager.cpp:136–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136bool PolicyManager::isModuleLoadable(std::string const &modName) const
137{
138 bool ret = false;
139 do
140 {
141 if (m_useNativeImplsWhenBuiltinModuleNotDefined &&
142 !m_modManager.isBuiltinModuleDefined(modName))
143 {
144 ret = true;
145 break;
146 }
147
148 if (m_defaultPolicy == Policy::UseNative)
149 {
150 ret = true;
151 }
152 else
153 {
154 if (util::contains(m_modPolicyTable, modName))
155 {
156 ret = true;
157 }
158 else
159 {
160 ret = false;
161 }
162 }
163
164 } while(false);
165
166 return ret;
167}
168
169Policy PolicyManager::getModulePolicy(std::string const& modName) const
170{

Callers 1

Calls 2

containsFunction · 0.50

Tested by

no test coverage detected