Skip to content

Commit

Permalink
fix of da song offsets
Browse files Browse the repository at this point in the history
i hope
  • Loading branch information
KoloInDaCrib authored and NotHyper-474 committed Oct 8, 2024
1 parent b1177ed commit 62db95f
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions source/funkin/play/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -1906,6 +1906,39 @@ class PlayState extends MusicBeatSubState
return '${currentChart.songName} [${discordRPCDifficulty}]';
}

function buildDiscordRPCDetails():String
{
if (PlayStatePlaylist.isStoryMode)
{
return 'Story Mode: ${PlayStatePlaylist.campaignTitle}';
}
else
{
if (isChartingMode)
{
return 'Chart Editor [Playtest]';
}
else if (isPracticeMode)
{
return 'Freeplay [Practice]';
}
else if (isBotPlayMode)
{
return 'Freeplay [Bot Play]';
}
else
{
return 'Freeplay';
}
}
}

function buildDiscordRPCState():String
{
var discordRPCDifficulty = PlayState.instance.currentDifficulty.replace('-', ' ').toTitleCase();
return '${currentChart.songName} [${discordRPCDifficulty}]';
}

function initPreciseInputs():Void
{
PreciseInputManager.instance.onInputPressed.add(onKeyPress);
Expand Down

0 comments on commit 62db95f

Please sign in to comment.