| 306 | } |
| 307 | |
| 308 | std::string sGameVersion::getDataFilePath(std::string pFile) const { |
| 309 | |
| 310 | // First try get the file from found files in the data folder |
| 311 | auto path = g_ResourceMan->GetFilePath(this, pFile); |
| 312 | if (path.size()) |
| 313 | return path; |
| 314 | |
| 315 | // If its custom, check the retail data |
| 316 | if (isCustom()) { |
| 317 | path = g_Fodder->mVersions->GetRetail(mPlatform, mGame)->getDataFilePath(pFile); |
| 318 | if (path.size() && g_ResourceMan->FileExists(path)) |
| 319 | return path; |
| 320 | } |
| 321 | |
| 322 | // Fall back to the data folder |
| 323 | return g_ResourceMan->FindVersionPath(this) + pFile; |
| 324 | } |
| 325 | |
| 326 | std::vector<eGFX_Types> sGameVersion::getGfxTypes() const { |
| 327 | switch (mRelease) { |
no test coverage detected