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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user