Skip to content

Commit

Permalink
EmuDeck cloud
Browse files Browse the repository at this point in the history
  • Loading branch information
dragoonDorise committed Sep 30, 2024
1 parent c3dc974 commit e1aa7fd
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion release/app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "EmuDeck",
"version": "2.3.0",
"version": "2.3.1",
"description": "Play all your RetroGames",
"license": "MIT",
"author": {
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/components
13 changes: 12 additions & 1 deletion src/renderer/pages/CloudSyncConfigPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,12 @@ function CloudSyncPageConfig() {

let cloudFunction;
cloudFunction = 'cloud_sync_install_and_config ';
let patreonToken = localStorage.getItem('patreon_token');

patreonToken = patreonToken.replaceAll('|', '-');

ipcChannel.sendMessage('emudeck', [
`cloud_saves|||${cloudFunction} ${cloudSync}`,
`cloud_saves|||${cloudFunction} ${cloudSync} ${patreonToken}`,
]);

ipcChannel.once('cloud_saves', (message) => {
Expand Down Expand Up @@ -384,6 +387,10 @@ function CloudSyncPageConfig() {
{cloudSyncType === 'Sync' && (
<PatreonLogin>
<Header title="Cloud Sync - Select your provider" />
<p className="lead">
Automatically sync or backup your saves and saved states to the
cloud.
</p>
<CloudSyncConfig
onClick={cloudSyncSet}
onClickInstall={installRclone}
Expand All @@ -400,6 +407,10 @@ function CloudSyncPageConfig() {
{cloudSyncType === 'Save' && (
<>
<Header title="Cloud Backup - Select your provider" />
<p className="lead">
Automatically sync or backup your saves and saved states to the
cloud.
</p>
<CloudSyncConfig
onClick={cloudSyncSet}
onClickInstall={installRclone}
Expand Down

0 comments on commit e1aa7fd

Please sign in to comment.