github: update jak 2 bug ticket link

This commit is contained in:
Tyler Wilding 2024-10-03 18:26:18 -04:00
parent 0e80d0d35b
commit 59102754ff
No known key found for this signature in database
GPG key ID: BF7B068C2FEFD7EF
4 changed files with 24 additions and 12 deletions

View file

@ -1,7 +1,7 @@
use std::path::Path;
use crate::{config::LauncherConfig, util::file::delete_dir};
use crate::util::os::get_installed_vcc_runtime;
use crate::{config::LauncherConfig, util::file::delete_dir};
use semver::Version;
use sysinfo::Disks;
use tauri::Manager;
@ -122,7 +122,9 @@ pub async fn is_minimum_vcc_runtime_installed(
let minimum_version = semver::Version::new(14, 40, 33810);
let installed_vcc_runtime_version = get_installed_vcc_runtime();
if installed_vcc_runtime_version.is_none() {
Err(CommandError::Configuration("Unable to check if VCC runtime is installed".to_owned()))
Err(CommandError::Configuration(
"Unable to check if VCC runtime is installed".to_owned(),
))
} else {
Ok(installed_vcc_runtime_version.unwrap() >= minimum_version)
}

View file

@ -14,9 +14,10 @@ use tauri::api::path::config_dir;
use crate::{
config::LauncherConfig,
util::{os::get_installed_vcc_runtime, zip::{
append_dir_contents_to_zip, append_file_to_zip, check_if_zip_contains_top_level_file,
}},
util::{
os::get_installed_vcc_runtime,
zip::{append_dir_contents_to_zip, append_file_to_zip, check_if_zip_contains_top_level_file},
},
};
use super::CommandError;

View file

@ -14,7 +14,7 @@ pub fn open_dir_in_os(dir: String) -> Result<(), std::io::Error> {
#[cfg(not(target_os = "windows"))]
pub fn get_installed_vcc_runtime() -> Option<semver::Version> {
None;
return None;
}
#[cfg(target_os = "windows")]
@ -33,7 +33,7 @@ pub fn get_installed_vcc_runtime() -> Option<semver::Version> {
log::error!("VCC runtime exists in the registry but is not marked as installed");
return None;
}
},
}
Err(err) => {
log::error!("Couldn't determine if VCC runtime was installed: {}", err);
return None;
@ -42,21 +42,30 @@ pub fn get_installed_vcc_runtime() -> Option<semver::Version> {
let patch_version: u32 = match key.get_value("Bld") {
Ok(val) => val,
Err(err) => {
log::error!("Couldn't determine installed VCC runtime patch version: {}", err);
log::error!(
"Couldn't determine installed VCC runtime patch version: {}",
err
);
return None;
}
};
let minor_version: u32 = match key.get_value("Minor") {
Ok(val) => val,
Err(err) => {
log::error!("Couldn't determine installed VCC runtime minor version: {}", err);
log::error!(
"Couldn't determine installed VCC runtime minor version: {}",
err
);
return None;
}
};
let major_version: u32 = match key.get_value("Major") {
Ok(val) => val,
Err(err) => {
log::error!("Couldn't determine installed VCC runtime major version: {}", err);
log::error!(
"Couldn't determine installed VCC runtime major version: {}",
err
);
return None;
}
};
@ -69,4 +78,4 @@ pub fn get_installed_vcc_runtime() -> Option<semver::Version> {
return Some(installed_version);
}
return None;
}
}

View file

@ -237,7 +237,7 @@
{$_("gameControls_beta_bugReport_linkPreText")}
<a
class="text-blue-400"
href="https://github.com/open-goal/jak-project/issues/new?assignees=&labels=bug%2Cjak2&projects=&template=jak2-bug-report.yml"
href="https://github.com/open-goal/jak-project/issues/new?template=jak2-bug-report.yml"
target="_blank"
rel="noopener noreferrer"
>{$_("gameControls_beta_bugReport_linkText")}</a