File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ type BaboonPlugin() =
54
54
typeof< TrackLoaderPatch>
55
55
typeof< TrackTitlePatches>
56
56
typeof< LoaderPatch>
57
+ typeof< LanguageChangerPatch>
57
58
typeof< GameControllerPatch>
58
59
typeof< PausePatches>
59
60
typeof< PreviewPatch>
Original file line number Diff line number Diff line change 1
1
namespace BaboonAPI.Patch
2
2
3
3
open BaboonAPI.Hooks .Tracks
4
+ open BaboonAPI.Internal
4
5
open BaboonAPI.Internal .BaseGame
5
- open BepInEx.Logging
6
6
open HarmonyLib
7
7
open UnityEngine
8
8
9
9
[<HarmonyPatch( typeof< SaverLoader>, " loadAllTrackMetadata" ) >]
10
10
type LoaderPatch () =
11
- static let logger = Logger.CreateLogSource " BaboonAPI.BaseTracksLoader"
12
-
13
11
static member Prefix () =
14
12
let path = $" {Application.streamingAssetsPath}/trackassets"
15
13
TrackRegistrationEvent.EVENT.Register ( BaseGameTrackRegistry path)
16
14
17
15
false
16
+
17
+ [<HarmonyPatch( typeof< LanguageChanger>, " loadMetadata" ) >]
18
+ type LanguageChangerPatch () =
19
+ static member Prefix () =
20
+ TrackAccessor.load()
21
+
22
+ false
You can’t perform that action at this time.
0 commit comments