Skip to content

Commit

Permalink
fix: add MP3Length condition to update graph
Browse files Browse the repository at this point in the history
  • Loading branch information
cyperdark committed Jun 4, 2023
1 parent f3a425d commit d444281
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Instances/Osu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ export class OsuInstance {
let prevBeatmapMd5 = '';
let prevMods = 0;
let prevGM = 0;
let prevTime = 0;

while (true) {
const {
Expand All @@ -288,14 +289,16 @@ export class OsuInstance {
if (
(prevBeatmapMd5 !== menuData.MD5 ||
prevMods !== currentMods ||
prevGM !== menuData.MenuGameMode) &&
prevGM !== menuData.MenuGameMode ||
prevTime !== menuData.MP3Length) &&
menuData.Path.endsWith('.osu') &&
settings.gameFolder
) {
// Repeating original gosumemory logic
prevBeatmapMd5 = menuData.MD5;
prevMods = allTimesData.MenuMods;
prevGM = menuData.MenuGameMode;
prevTime = menuData.MP3Length;

await beatmapPpData.updateMapMetadata(currentMods);
}
Expand Down

0 comments on commit d444281

Please sign in to comment.