Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions poeCustomSoundtrack.js
Original file line number Diff line number Diff line change
Expand Up @@ -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/);

Expand Down