fix: aimeio not applying

This commit is contained in:
2025-04-16 07:41:38 +00:00
parent c7ddeb53e6
commit d3145bfc4e
5 changed files with 25 additions and 3 deletions

View File

@ -134,6 +134,9 @@ impl Segatools {
if self.amnet.name.len() > 0 {
aimeio.set("serverName", &self.amnet.name);
}
} else if let Aime::Other(key) = &self.aime {
ini_out.with_section(Some("aimeio"))
.set("path", util::pkg_dir().join(key.to_string()).join("segatools").join("aimeio.dll").stringify()?);
}
} else {
ini_out.with_section(Some("aime"))

View File

@ -154,7 +154,10 @@ listen<{ message: string; header: string }>('invoke-error', (event) => {
><div class="pi pi-box"></div
></Tab>
<Tab
v-if="prf.current?.meta.game === 'chunithm'"
v-if="
prf.current?.meta.game === 'chunithm' &&
prf.current.data.sgt.target.length > 0
"
value="patches"
><div class="pi pi-ticket"></div
></Tab>
@ -255,6 +258,20 @@ listen<{ message: string; header: string }>('invoke-error', (event) => {
<div v-else>
Patches require <code>mempatcher</code> to be installed
and enabled.
<div>
<Button
label="Add mempatcher"
icon="pi pi-plus"
class="mt-3"
@click="
() =>
pkg.installFromKey(
'mempatcher-mempatcher'
)
"
/>
</div>
</div>
</TabPanel>
<TabPanel value="info">

View File

@ -40,7 +40,8 @@ if (unsupported.value === true && model.value === true) {
<UpdateButton :pkg="pkg" />
<span
v-tooltip="
unsupported && 'This package is not compatible with STARTLINER.'
unsupported &&
'This package is currently incompatible with STARTLINER.'
"
>
<ToggleSwitch

View File

@ -84,6 +84,7 @@ load();
</OptionRow>
<OptionRow
title="Aime code"
tooltip="Only applicable with the segatools built-in emulation or with compatible third-party packages"
v-if="prf.current!.data.sgt.aime !== 'Disabled'"
>
<InputText

View File

@ -329,7 +329,7 @@ export const usePrfStore = defineStore('prf', () => {
if (timeout !== null) {
clearTimeout(timeout);
}
timeout = setTimeout(() => invoke('save_current_profile'), 2000);
timeout = setTimeout(() => invoke('save_current_profile'), 600);
}
});