Skip to content

Commit

Permalink
Merge pull request #186 from KotRikD/fix/bringbackpage
Browse files Browse the repository at this point in the history
Bring back page `How to install a counter` & bug fixes
  • Loading branch information
KotRikD authored Sep 16, 2024
2 parents ca78f44 + b2da2c3 commit 1effa9f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/common/utils/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ ENABLE_GOSU_OVERLAY=false
# Enables logs for tosu developers, not very intuitive for you, the end user.
# best not to include without developer's request.
DEBUG_LOG=false
OPEN_DASHBOARD_ON_STARTUP=false
OPEN_DASHBOARD_ON_STARTUP=true
# IP address where the websocket api server will be registered
# 127.0.0.1 = localhost
Expand Down
1 change: 1 addition & 0 deletions packages/server/assets/homepage.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
</a>
<a href="/?tab=0" class="indent-left tab-item">Installed</a>
<a href="/?tab=1" class="tab-item">Available</a>
<a href="/?tab=3" class="tab-item">How to install a counter</a>
<!-- <a href="/?tab=3" class="tab-item">How to add counter</a> -->
<div class="indent-left">
<input class="search-bar" type="text" placeholder="search">
Expand Down
10 changes: 8 additions & 2 deletions packages/tosu/src/entities/BeatmapPpData/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,13 +281,19 @@ export class BeatmapPPData extends AbstractEntity {
this.PerformanceAttributes.free();
} catch (error) {
wLogger.debug(
`BPPD(updateMapMetadata) Can't get map: ${mapPath}`
`BPPD(updateMapMetadata) Can't get map`,
{
mapPath,
currentMods,
currentMode
},
(error as Error).stack
);
return 'not-ready';
}

this.beatmap = new rosu.Beatmap(this.beatmapContent);
if (this.beatmap.mode !== currentMode)
if (this.beatmap.mode === 0 && this.beatmap.mode !== currentMode)
this.beatmap.convert(currentMode);

const beatmapCheckTime = performance.now();
Expand Down

0 comments on commit 1effa9f

Please sign in to comment.