Skip to content

Commit

Permalink
Fix 2-player mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Renzo904 committed Jan 18, 2025
1 parent 6c124b2 commit 33bd3e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TekaTeka/Plugins/CustomSongLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<byte> bytes;

SongMod? mod = songsManager.GetModPath(songId);
Expand Down

0 comments on commit 33bd3e9

Please sign in to comment.