Skip to content

Commit

Permalink
Fix parsers fix on install
Browse files Browse the repository at this point in the history
  • Loading branch information
dragoonDorise committed Nov 13, 2023
1 parent 3951466 commit 1161805
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions src/renderer/pages/EmulatorsDetailPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -748,9 +748,6 @@ function EmulatorsDetailPage() {
ipcChannel.sendMessage('emudeck', [
`parsersUpdatePrev|||setSetting emuGBA ${state.emulatorAlternative.gba}; setSetting emuMAME ${state.emulatorAlternative.mame}; setSetting emuMULTI ${state.emulatorAlternative.multiemulator}; setSetting emuN64 ${state.emulatorAlternative.n64}; setSetting emuNDS ${state.emulatorAlternative.nds}; setSetting emuPSP ${state.emulatorAlternative.psp}; setSetting emuPSX ${state.emulatorAlternative.psx}; setSetting emuSCUMMVM ${state.emulatorAlternative.scummvm}; setSetting doInstallPPSSPP ${state.installEmus.ppsspp.status};setSetting doInstallmelonDS ${state.installEmus.melonds.status};setSetting doInstallDuck ${state.installEmus.duckstation.status};`,
]);
/*
setSetting doInstallMAME ${state.installEmus.mame.status};setSetting doInstallMAME ${state.installEmus.mame.status};setSetting doInstallMAME ${state.installEmus.mame};setSetting doInstallRMG ${state.installEmus.rmg.status};setSetting doInstallScummVM ${state.installEmus.scummvm.status};setSetting doInstallScummVM ${state.installEmus.scummvm.status
*/
} else {
ipcChannel.sendMessage('emudeck', [
`parsersUpdatePrev|||$(. ~/.config/EmuDeck/backend/functions/all.sh && setSetting emuGBA ${state.emulatorAlternative.gba} >/dev/null && setSetting emuMAME ${state.emulatorAlternative.mame} >/dev/null && setSetting emuMULTI ${state.emulatorAlternative.multiemulator} >/dev/null && setSetting emuN64 ${state.emulatorAlternative.n64} >/dev/null && setSetting emuNDS ${state.emulatorAlternative.nds} >/dev/null && setSetting emuPSP ${state.emulatorAlternative.psp} >/dev/null && setSetting emuPSX ${state.emulatorAlternative.psx} >/dev/null && setSetting emuSCUMMVM ${state.emulatorAlternative.scummvm} && setSetting doInstallPPSSPP ${state.installEmus.ppsspp.status} >/dev/null && setSetting doInstallMAME ${state.installEmus.mame.status} >/dev/null && setSetting doInstallmelonDS ${state.installEmus.melonds.status} >/dev/null && setSetting doInstallDuck ${state.installEmus.duckstation.status} >/dev/null && setSetting doInstallMAME ${state.installEmus.mame} >/dev/null && setSetting doInstallRMG ${state.installEmus.rmg.status} >/dev/null && setSetting doInstallScummVM ${state.installEmus.scummvm.status} >/dev/null && setSetting doInstallScummVM ${state.installEmus.scummvm.status}} >/dev/null) >/dev/null`,
Expand All @@ -765,29 +762,32 @@ function EmulatorsDetailPage() {
const status = message.stdout;
status.replace('\n', '');
console.log({ message });
const modalData = {
active: true,
header: <span className="h4">Success!</span>,
body: (
<p>
The emulator has been installed, now you can play games using
EmulationStation-DE or adding them to your Steam Library using Steam
Rom Manager
</p>
),

footer: (
<BtnSimple
css="btn-simple--1"
type="button"
onClick={() => navigate('/welcome')}
>
Close
</BtnSimple>
),
css: 'emumodal--xs',
};

let modalData;
if (status.includes('true')) {
modalData = {
active: true,
header: <span className="h4">Success!</span>,
body: <p>All Parsers have been configured.</p>,
footer: (
<BtnSimple
css="btn-simple--1"
type="button"
onClick={() => navigate('/welcome')}
>
Close
</BtnSimple>
),
css: 'emumodal--xs',
};
} else if (system !== 'win32') {
modalData = {
active: true,
header: <span className="h4">Failed</span>,
body: <p>There was an issue trying to configure your parsers</p>,
css: 'emumodal--xs',
};
console.log({ modalData });
}
setStatePage({
...statePage,
modal: modalData,
Expand Down

0 comments on commit 1161805

Please sign in to comment.