Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions S1API/Internal/Patches/QuestPatches.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ private static void QuestManagerWriteData(S1Quests.QuestManager __instance, stri
[HarmonyPostfix]
private static void QuestsLoaderLoad(S1Loaders.QuestsLoader __instance, string mainPath)
{
// Make sure we have a quests directory (fresh saves don't at this point in runtime)
if (!Directory.Exists(mainPath))
return;

string[] questDirectories = Directory.GetDirectories(mainPath)
.Select(Path.GetFileName)
.Where(directory => directory.StartsWith("Quest_"))
Expand Down
Loading