Skip to content

Commit

Permalink
CloudSync Health + remove of .exe files mention
Browse files Browse the repository at this point in the history
  • Loading branch information
dragoonDorise committed Jan 15, 2024
1 parent cd75b77 commit ce353d8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 62 deletions.
2 changes: 1 addition & 1 deletion src/renderer/components
46 changes: 7 additions & 39 deletions src/renderer/pages/CloudSyncConfigPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ function CloudSyncPageConfig() {
active: true,
header: <span className="h4">Testing CloudSync</span>,
body: <p>Please wait a few minutes while we test your configuration.</p>,
footer: <ProgressBar css="progress--success" infinite max="100" />,
css: 'emumodal--sm',
};
setStatePage({
Expand All @@ -162,48 +163,15 @@ function CloudSyncPageConfig() {
modalData = {
active: true,
header: <span className="h4">Success!</span>,
body: <p>Everything seems to be in order.</p>,
css: 'emumodal--sm',
};
} else if (stdout.includes('nobinary')) {
modalData = {
active: true,
header: <span className="h4">Missing CloudSync binary</span>,
body: <p>Please try reinstalling CloudSync.</p>,
body: <div dangerouslySetInnerHTML={{ __html: stdout }} />,
css: 'emumodal--sm',
};
} else if (stdout.includes('noconfig')) {
modalData = {
active: true,
header: (
<span className="h4">CloudSync failure - No config file</span>
),
body: <p>Please try reinstalling CloudSync</p>,
css: 'emumodal--sm',
};
} else if (stdout.includes('noprovider')) {
modalData = {
active: true,
header: (
<span className="h4">
CloudSync failure - No cloud provider found
</span>
),
body: <p>Please try reinstalling CloudSync</p>,
css: 'emumodal--sm',
};
} else if (stdout.includes('upload')) {
modalData = {
active: true,
header: <span className="h4">CloudSync failure</span>,
body: <p>{stdout}</p>,
css: 'emumodal--sm',
};
} else if (stdout.includes('download')) {
} else {
console.log({ stdout });
modalData = {
active: true,
header: <span className="h4">CloudSync failure</span>,
body: <p>{stdout}</p>,
body: <div dangerouslySetInnerHTML={{ __html: stdout }} />,
css: 'emumodal--sm',
};
}
Expand Down Expand Up @@ -263,7 +231,7 @@ function CloudSyncPageConfig() {
console.log({ stdout });
let modalData;
if (stdout.includes('true')) {
checkHealth();
// checkHealth();
modalData = {
active: true,
header: <span className="h4">CloudSync Configured</span>,
Expand Down Expand Up @@ -312,7 +280,7 @@ function CloudSyncPageConfig() {
cloudSyncStatus: true,
});
} else {
checkHealth();
// checkHealth();
let warningChrome;
if (system !== 'win32') {
warningChrome = `Make sure you have Google Chrome installed, Firefox won't work. Once you have CloudSync installed you can remove Chrome`;
Expand Down
26 changes: 4 additions & 22 deletions src/renderer/pages/GameModePage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,28 +41,10 @@ function GameModePage() {
active: true,
header: <span className="h4">Game Mode enabled</span>,
body: (
<>
<p>
Restart your device to go into Game Mode, Exit Steam to go back to
your Desktop
</p>
<p>
Make sure to add exceptions in your antivirus to these files
before restarting or your computer won't start properly.
<br />
</p>
<p>
<code>
USER\AppData\Roaming\EmuDeck\backend\tools\gamemode\enable.exe
</code>
<code>
USER\AppData\Roaming\EmuDeck\backend\tools\gamemode\disable.exe
</code>
<code>
USER\AppData\Roaming\EmuDeck\backend\tools\gamemode\login.exe
</code>
</p>
</>
<p>
Restart your device to go into Game Mode, Exit Steam to go back to
your Desktop
</p>
),
css: 'emumodal--sm',
};
Expand Down

0 comments on commit ce353d8

Please sign in to comment.