mirror of
https://github.com/array-in-a-matrix/emudeck-electron.git
synced 2025-04-02 11:11:42 -04:00
BootMode on Settings
This commit is contained in:
parent
a8a9101b84
commit
ad97d4e1e6
6 changed files with 44 additions and 22 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -28,3 +28,4 @@ npm-debug.log.*
|
|||
*.sass.d.ts
|
||||
*.scss.d.ts
|
||||
release/app/package-lock.json
|
||||
*.db
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "EmuDeck",
|
||||
"version": "2.1.12",
|
||||
"version": "2.1.13",
|
||||
"description": "Play all your RetroGames",
|
||||
"license": "MIT",
|
||||
"author": {
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 7e8edf99d3c61e914f10ee4350d11641f4a7589b
|
||||
Subproject commit 691dfd683257a2c6a20943fab21cbb78c4566198
|
|
@ -147,16 +147,27 @@ function PatroenLoginPage() {
|
|||
{!!errorMessage && <p className="lead">{errorMessage}</p>}
|
||||
|
||||
{!patreonClicked && (
|
||||
<BtnSimple
|
||||
css="btn-simple--3"
|
||||
type="link"
|
||||
target="_blank"
|
||||
href="https://patreon.emudeck.com/"
|
||||
aria="Next"
|
||||
onClick={() => patreonShowInput()}
|
||||
>
|
||||
Login with Patreon
|
||||
</BtnSimple>
|
||||
<>
|
||||
<BtnSimple
|
||||
css="btn-simple--3"
|
||||
type="link"
|
||||
target="_blank"
|
||||
href="https://token.emudeck.com/"
|
||||
aria="Next"
|
||||
onClick={() => patreonShowInput()}
|
||||
>
|
||||
Login with Patreon
|
||||
</BtnSimple>
|
||||
<BtnSimple
|
||||
css="btn-simple--3"
|
||||
type="link"
|
||||
target="_blank"
|
||||
href="https://patreon.com/"
|
||||
aria="Next"
|
||||
>
|
||||
Change Patreon Account
|
||||
</BtnSimple>
|
||||
</>
|
||||
)}
|
||||
{!patreonClicked && (
|
||||
<BtnSimple
|
||||
|
|
|
@ -303,7 +303,7 @@ function SettingsPage() {
|
|||
});
|
||||
|
||||
let functionHomebrewGames;
|
||||
status
|
||||
status === true
|
||||
? (functionHomebrewGames = 'emuDeckInstallHomebrewGames')
|
||||
: (functionHomebrewGames = 'emuDeckUninstallHomebrewGames');
|
||||
|
||||
|
@ -314,6 +314,24 @@ function SettingsPage() {
|
|||
});
|
||||
};
|
||||
|
||||
const onClickBoot = (status) => {
|
||||
setState({
|
||||
...state,
|
||||
gamemode: status,
|
||||
});
|
||||
|
||||
let functionBootMode;
|
||||
status === true
|
||||
? (functionBootMode = 'game_mode_enable')
|
||||
: (functionBootMode = 'game_mode_disable');
|
||||
|
||||
ipcChannel.sendMessage('emudeck', [`bootMode|||${functionBootMode}`]);
|
||||
ipcChannel.once('bootMode', () => {
|
||||
// console.log(message);
|
||||
notificationShow('🎉 BootMode updated, please restart your device!');
|
||||
});
|
||||
};
|
||||
|
||||
return (
|
||||
<Wrapper>
|
||||
<Header title="Configure your" bold="Settings" />
|
||||
|
@ -331,6 +349,7 @@ function SettingsPage() {
|
|||
onClickLCD={onClickLCD}
|
||||
onClickAutoSave={autoSaveSet}
|
||||
onClickHomeBrew={HomeBrew}
|
||||
onClickBoot={onClickBoot}
|
||||
/>
|
||||
<Footer disabledNext disabledBack={disabledBack} />
|
||||
</Wrapper>
|
||||
|
|
|
@ -227,15 +227,6 @@ function WelcomePage() {
|
|||
status: true,
|
||||
function: () => selectMode('expert'),
|
||||
},
|
||||
{
|
||||
icon: [iconQuick],
|
||||
title: 'Game Mode',
|
||||
description: 'Enable the SteamOS experience on Windows',
|
||||
button: 'More info',
|
||||
btnCSS: 'btn-simple--5',
|
||||
status: system === 'win32',
|
||||
function: () => functions.navigate('/game-mode/welcome'),
|
||||
},
|
||||
{
|
||||
icon: [iconPlugin],
|
||||
title: 'Power Tools',
|
||||
|
|
Loading…
Add table
Reference in a new issue