Skip to content

Commit

Permalink
Unlock all event songs/charas/items by faking update at start.
Browse files Browse the repository at this point in the history
  • Loading branch information
flame committed Apr 3, 2020
1 parent 1ee263e commit 364b80d
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 364b80d

Please sign in to comment.