Skip to content

Commit

Permalink
Merge pull request #3 from flameCmndr/master
Browse files Browse the repository at this point in the history
Unlock all event songs/charas/items by faking update at start.
  • Loading branch information
avail authored Apr 3, 2020
2 parents bb99348 + 364b80d commit 42713a1
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion Components/OperationManagerPatches.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using MU3.Operation;
using MU3.Data;
using MU3.Operation;
using System;
using System.Collections.Generic;
using System.Linq;
Expand Down Expand Up @@ -35,5 +36,18 @@ static bool getCreditUseRestrictionByMaintenance(ref ClosingManager.CreditUseRes
__result = ClosingManager.CreditUseRestriction.None;
return false;
}

public static bool patchUpdateGamePeriodOnce = true;
[MethodPatch(PatchType.Prefix, typeof(OperationManager), "updateGamePeriod")]
private static bool updateGamePeriod(ref OperationData ____downloadData)
{
if (patchUpdateGamePeriodOnce)
{
____downloadData.isUpdate = true;
patchUpdateGamePeriodOnce = false;
}

return true;
}
}
}

0 comments on commit 42713a1

Please sign in to comment.