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:
parent
2a429c45c9
commit
d8fae2f822
1 changed files with 6 additions and 6 deletions
|
@ -49,15 +49,15 @@ fn find_needle(installer_file: &[u8], needle: &str) -> Option<String> {
|
|||
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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue