| 403 | } |
| 404 | |
| 405 | int32_t DetectRCT1Version(int32_t gameVersion) |
| 406 | { |
| 407 | int32_t fileType = (gameVersion) > 0 ? FILE_TYPE_SV4 : FILE_TYPE_SC4; |
| 408 | gameVersion = abs(gameVersion); |
| 409 | |
| 410 | if (gameVersion >= 108000 && gameVersion < 110000) |
| 411 | return (FILE_VERSION_RCT1 | fileType); |
| 412 | if (gameVersion >= 110000 && gameVersion < 120000) |
| 413 | return (FILE_VERSION_RCT1_AA | fileType); |
| 414 | if (gameVersion >= 120000 && gameVersion < 130000) |
| 415 | return (FILE_VERSION_RCT1_LL | fileType); |
| 416 | // RCTOA Acres sets this, and possibly some other user-created scenarios as well |
| 417 | if (gameVersion == 0) |
| 418 | return (FILE_VERSION_RCT1_LL | fileType); |
| 419 | |
| 420 | return -1; |
| 421 | } |
| 422 | } // namespace OpenRCT2::SawyerCoding |
no outgoing calls
no test coverage detected