From 33bd3e90770aadb579b30967750b13ea0e65d2e5 Mon Sep 17 00:00:00 2001 From: Renzo Poggio Date: Sat, 18 Jan 2025 00:05:03 -0300 Subject: [PATCH] Fix 2-player mode --- TekaTeka/Plugins/CustomSongLoader.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TekaTeka/Plugins/CustomSongLoader.cs b/TekaTeka/Plugins/CustomSongLoader.cs index fa0b51c..9afd702 100644 --- a/TekaTeka/Plugins/CustomSongLoader.cs +++ b/TekaTeka/Plugins/CustomSongLoader.cs @@ -185,8 +185,8 @@ static unsafe bool ReadSongChart_Prefix(FumenLoader.PlayerData __instance, ref s __instance.DestroyFumenBuffer(); string fileName = Path.GetFileNameWithoutExtension(filePath); - string songId = fileName.Substring(0, fileName.LastIndexOf('_')); // abcdef_e -> abcdef - string diff = fileName.Substring(fileName.LastIndexOf('_') + 1); + string songId = fileName.Split("_").First(); + Il2CppInterop.Runtime.InteropTypes.Arrays.Il2CppStructArray bytes; SongMod? mod = songsManager.GetModPath(songId);