From 54f213a732cd096a319261e31222209f78979b58 Mon Sep 17 00:00:00 2001 From: Phil A Date: Sun, 8 Dec 2024 19:28:01 +0800 Subject: [PATCH] Update poeCustomSoundtrack.js --- poeCustomSoundtrack.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/poeCustomSoundtrack.js b/poeCustomSoundtrack.js index 93a4070..bc19f39 100644 --- a/poeCustomSoundtrack.js +++ b/poeCustomSoundtrack.js @@ -116,6 +116,13 @@ function parseLogLine(line) { // watch log file for area changes let newArea = line.match(/You have entered ([^.]*)./); + // POE2 support + if (settings.get('poePath').includes('Path of Exile 2')) + { + let newLevel = line.match(/Generating level \d+ area "(.*?)" with seed \d+/); + newArea = newLevel; + } + // also watch for poe to boot up and play login window music const loginWindow = line.match(/LOG FILE OPENING/);