forked from akanyan/STARTLINER
fix: misc fixes for 0.6.0
This commit is contained in:
@ -255,6 +255,11 @@ impl Package {
|
|||||||
flags |= Feature::Mod;
|
flags |= Feature::Mod;
|
||||||
game_dll = Some(path.to_owned());
|
game_dll = Some(path.to_owned());
|
||||||
}
|
}
|
||||||
|
if let Some(serde_json::Value::String(path)) = installer.get("dll_game") {
|
||||||
|
flags |= Feature::GameDLL;
|
||||||
|
flags |= Feature::Mod;
|
||||||
|
game_dll = Some(path.to_owned());
|
||||||
|
}
|
||||||
if let Some(serde_json::Value::String(path)) = installer.get("dll-amdaemon") {
|
if let Some(serde_json::Value::String(path)) = installer.get("dll-amdaemon") {
|
||||||
flags |= Feature::AmdDLL;
|
flags |= Feature::AmdDLL;
|
||||||
flags |= Feature::Mod;
|
flags |= Feature::Mod;
|
||||||
|
@ -299,6 +299,10 @@ impl PackageStore {
|
|||||||
Self::clean_up_file(&path, "manifest.json", true).await?;
|
Self::clean_up_file(&path, "manifest.json", true).await?;
|
||||||
Self::clean_up_file(&path, "README.md", true).await?;
|
Self::clean_up_file(&path, "README.md", true).await?;
|
||||||
Self::clean_up_file(&path, "post_load.ps1", false).await?;
|
Self::clean_up_file(&path, "post_load.ps1", false).await?;
|
||||||
|
// todo search for the proper dll
|
||||||
|
Self::clean_up_file(&path, "saekawa.dll", false).await?;
|
||||||
|
Self::clean_up_file(&path, "mempatcher32.dll", false).await?;
|
||||||
|
Self::clean_up_file(&path, "mempatcher64.dll", false).await?;
|
||||||
|
|
||||||
tokio::fs::remove_dir(path.as_ref())
|
tokio::fs::remove_dir(path.as_ref())
|
||||||
.await
|
.await
|
||||||
|
@ -67,26 +67,14 @@ onMounted(async () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fetch_promise.then(async () => {
|
fetch_promise.then(async () => {
|
||||||
const promises = [];
|
await invoke('install_package', {
|
||||||
promises.push(
|
key: 'segatools-mu3hook',
|
||||||
invoke('install_package', {
|
force: false,
|
||||||
key: 'segatools-mu3hook',
|
});
|
||||||
force: false,
|
await invoke('install_package', {
|
||||||
})
|
key: 'segatools-chusanhook',
|
||||||
);
|
force: false,
|
||||||
promises.push(
|
});
|
||||||
invoke('install_package', {
|
|
||||||
key: 'segatools-chusanhook',
|
|
||||||
force: false,
|
|
||||||
})
|
|
||||||
);
|
|
||||||
promises.push(
|
|
||||||
invoke('install_package', {
|
|
||||||
key: 'mempatcher-mempatcher',
|
|
||||||
force: false,
|
|
||||||
})
|
|
||||||
);
|
|
||||||
await Promise.all(promises);
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -268,7 +256,17 @@ listen<{ message: string; header: string }>('invoke-error', (event) => {
|
|||||||
</footer>
|
</footer>
|
||||||
</TabPanel>
|
</TabPanel>
|
||||||
<TabPanel :value="4">
|
<TabPanel :value="4">
|
||||||
<PatchList />
|
<PatchList
|
||||||
|
v-if="
|
||||||
|
pkg.hasLocal('mempatcher-mempatcher') &&
|
||||||
|
prf.isPkgKeyEnabled('mempatcher-mempatcher')
|
||||||
|
.value === true
|
||||||
|
"
|
||||||
|
/>
|
||||||
|
<div v-else>
|
||||||
|
Patches require <code>mempatcher</code> to be installed
|
||||||
|
and enabled.
|
||||||
|
</div>
|
||||||
</TabPanel>
|
</TabPanel>
|
||||||
</TabPanels>
|
</TabPanels>
|
||||||
<div v-if="currentTab === 5 || currentTab === 3">
|
<div v-if="currentTab === 5 || currentTab === 3">
|
||||||
|
@ -222,6 +222,12 @@ export const usePrfStore = defineStore('prf', () => {
|
|||||||
current.value?.data.mods.includes(pkgKey(pkg))
|
current.value?.data.mods.includes(pkgKey(pkg))
|
||||||
);
|
);
|
||||||
|
|
||||||
|
const isPkgKeyEnabled = (pkg: string) =>
|
||||||
|
computed(
|
||||||
|
() =>
|
||||||
|
current.value !== null && current.value?.data.mods.includes(pkg)
|
||||||
|
);
|
||||||
|
|
||||||
const reload = async () => {
|
const reload = async () => {
|
||||||
const p = (await invoke('get_current_profile')) as Profile;
|
const p = (await invoke('get_current_profile')) as Profile;
|
||||||
current.value = p;
|
current.value = p;
|
||||||
@ -322,6 +328,7 @@ export const usePrfStore = defineStore('prf', () => {
|
|||||||
current,
|
current,
|
||||||
list,
|
list,
|
||||||
isPkgEnabled,
|
isPkgEnabled,
|
||||||
|
isPkgKeyEnabled,
|
||||||
reload,
|
reload,
|
||||||
create,
|
create,
|
||||||
rename,
|
rename,
|
||||||
|
Reference in New Issue
Block a user