forked from akanyan/STARTLINER
fix: localization fixes
This commit is contained in:
@ -7,12 +7,20 @@ use crate::pkg_store::PackageStore;
|
||||
use crate::util;
|
||||
use crate::profiles::types::ProfilePaths;
|
||||
|
||||
pub async fn prepare_packages<'a>(p: &'a impl ProfilePaths, pkgs: &BTreeSet<PkgKey>, redo_bepinex: bool) -> Result<()> {
|
||||
pub async fn prepare_packages<'a>(p: &'a impl ProfilePaths, pkgs: &BTreeSet<PkgKey>, mut redo_bepinex: bool) -> Result<()> {
|
||||
log::debug!("begin prepare packages");
|
||||
|
||||
let pfx_dir = p.data_dir();
|
||||
let opt_dir = pfx_dir.join("option");
|
||||
|
||||
for m in pkgs {
|
||||
let (namespace, _) = m.split()?;
|
||||
if namespace == "local" {
|
||||
log::info!("package with the 'local' namespace enabled -- force refreshing");
|
||||
redo_bepinex = true;
|
||||
}
|
||||
}
|
||||
|
||||
if redo_bepinex {
|
||||
if pfx_dir.join("BepInEx").exists() {
|
||||
util::remove_dir_all(pfx_dir.join("BepInEx")).await?;
|
||||
|
Reference in New Issue
Block a user