Skip to content

Commit

Permalink
The frontier URL formats need to be switched around
Browse files Browse the repository at this point in the history
Otherwise, it will always pick up the old version
  • Loading branch information
redstrate committed Jun 30, 2024
1 parent 2a429c4 commit d8fae2f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/execlookup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,16 @@ fn find_needle(installer_file: &[u8], needle: &str) -> Option<String> {
/// Extract the frontier URL from ffxivlauncher.exe
pub fn extract_frontier_url(launcher_path: &str) -> Option<String> {
let installer_file = fs::read(launcher_path).unwrap();

// Old Frontier URL format
if let Some(url) = find_needle(&installer_file, "https://frontier.ffxiv.com") {
return Some(url);
}


// New Frontier URL format
if let Some(url) = find_needle(&installer_file, "https://launcher.finalfantasyxiv.com") {
return Some(url);
}

// Old Frontier URL format
if let Some(url) = find_needle(&installer_file, "https://frontier.ffxiv.com") {
return Some(url);
}

None
}

0 comments on commit d8fae2f

Please sign in to comment.