Skip to content

Commit

Permalink
Merge pull request #273 from reco1I/hot_fix
Browse files Browse the repository at this point in the history
Fix infinite loading at game start
  • Loading branch information
Acivev committed Aug 21, 2023
2 parents 41b7d7c + 29759f9 commit 3132823
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/com/reco1l/legacy/ui/multiplayer/Multiplayer.kt
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,15 @@ object Multiplayer
var finalData: Array<StatisticV2>? = null


private val LOG_FILE = File("${Config.getCorePath()}/Log", "multi_log.txt")
private val LOG_FOLDER = File("${Config.getDefaultCorePath()}/Log").apply {
if (!exists())
mkdirs()
}

private val LOG_FILE = File(LOG_FOLDER, "multi_log.txt").apply {
if (!exists())
createNewFile()
}

init
{
Expand Down

0 comments on commit 3132823

Please sign in to comment.