* Allow the patch manager to stop loading data from a command

This commit is contained in:
iProgramInCpp
2023-08-10 13:06:42 +03:00
parent b1c2bf946c
commit b768764734
3 changed files with 36 additions and 15 deletions

View File

@@ -38,6 +38,12 @@ void PatchManager::LoadPatchData(const std::string& patchData)
if (!std::getline(lineStream, command, PM_SEPARATOR))
continue;
if (command == "stop_now")
{
LogMsg("PatchManager: Found stop_now, quitting patch processing earlier, iProgramInCpp probably wanted to test something");
return;
}
if (command == "terrain" || command == "items")
{
bool bIsItems = command == "items";