1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-16 03:23:15 +01:00

Do not try patch if scenarioPath is empty

This commit is contained in:
Tulio Leao
2024-02-25 17:28:48 -03:00
parent 1ebaac86be
commit b531cfa38e

View File

@@ -466,6 +466,11 @@ void RCT12::ApplyScenarioPatch(u8string_view scenarioPatchFile, u8string scenari
void RCT12::FetchAndApplyScenarioPatch(u8string_view scenarioPath, bool isScenario)
{
if (scenarioPath.empty())
{
return;
}
auto scenarioSHA = getScenarioSHA256(scenarioPath);
auto patchPath = GetPatchFileName(scenarioSHA);
std::cout << "Patch is: " << patchPath << " full SHA" << scenarioSHA << std::endl;