1
Fork 0
mirror of https://github.com/redstrate/Physis.git synced 2025-04-20 11:47:46 +00:00

The frontier URL formats need to be switched around

Otherwise, it will always pick up the old version
This commit is contained in:
Joshua Goins 2024-06-29 20:03:59 -04:00
parent 2a429c45c9
commit d8fae2f822

View file

@ -48,16 +48,16 @@ fn find_needle(installer_file: &[u8], needle: &str) -> Option<String> {
/// Extract the frontier URL from ffxivlauncher.exe /// Extract the frontier URL from ffxivlauncher.exe
pub fn extract_frontier_url(launcher_path: &str) -> Option<String> { pub fn extract_frontier_url(launcher_path: &str) -> Option<String> {
let installer_file = fs::read(launcher_path).unwrap(); let installer_file = fs::read(launcher_path).unwrap();
// New Frontier URL format
if let Some(url) = find_needle(&installer_file, "https://launcher.finalfantasyxiv.com") {
return Some(url);
}
// Old Frontier URL format // Old Frontier URL format
if let Some(url) = find_needle(&installer_file, "https://frontier.ffxiv.com") { if let Some(url) = find_needle(&installer_file, "https://frontier.ffxiv.com") {
return Some(url); return Some(url);
} }
// New Frontier URL format
if let Some(url) = find_needle(&installer_file, "https://launcher.finalfantasyxiv.com") {
return Some(url);
}
None None
} }