MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / GetGraphics

Method GetGraphics

Source/Versions.cpp:261–273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259}
260
261std::shared_ptr<cGraphics> sGameVersion::GetGraphics() const {
262 if (isPC()) {
263 return std::make_shared<cGraphics_PC>();
264 }
265 else if (isAmiga()) {
266
267 if (isCannonFodder2())
268 return std::make_shared<cGraphics_Amiga2>();
269
270 return std::make_shared<cGraphics_Amiga>();
271 }
272 return 0;
273}
274
275bool sGameVersion::CanUseAmigaSound() const {
276 if (g_ResourceMan->FileExists(getDataPath() + "JON.INS"))

Callers 1

VersionSwitchMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected