Skip to content
This repository has been archived by the owner on Jul 27, 2022. It is now read-only.

Commit

Permalink
Merge pull request #34 from stromcon/feature/improve-share-notice
Browse files Browse the repository at this point in the history
Improve share notice
  • Loading branch information
CapitaineJSparrow authored May 16, 2021
2 parents 02bb6c0 + dc69578 commit 942ac51
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "emusak",
"productName": "emusak",
"version": "1.0.37",
"version": "1.0.38",
"description": "Saves, shaders, firmwares and keys manager for switch emulators",
"main": ".webpack/main",
"repository": "https://github.com/stromcon/emusak-ui.git",
Expand Down
13 changes: 11 additions & 2 deletions src/service/ryujinx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,15 +123,24 @@ export const shareShader = async (config: IRyujinxConfig, titleID: string, GameN
}

if (!localStorage.getItem('shaders-share-warning')) {
await Swal.fire('notice', `
const { value } = await Swal.fire({
title: 'Notice',
showCancelButton: true,
html: `
Please make sure to only share shaders that are working for you and do no "just click the button" if you are not 100% sure.
<br />
<br />
Remember it takes a lot of time to validate shaders since we are downloading them and testing ingame before upload to emusak, this goes to everyone
<br />
<br />
<b>Please do NOT merge two separate Shader caches (Files), this causes Shader cache corruption ~ Mid game crash. Using one as a base and adding more through playing is fine</b>
`)
`,
});

if (!value) {
return false;
}

localStorage.setItem('shaders-share-warning', 'true');
}

Expand Down
3 changes: 1 addition & 2 deletions src/ui/changelog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,8 @@ const Changelog = () => {
<h1 style={{ textAlign: 'center' }}>What's new ? v{version}</h1>
<br />
<ul style={{ marginLeft: 20 }}>
<li>Added a threshold to enable the share shaders button : Since we are getting a lot of submissions, it takes a lot of time to validate shaders because we are downloading them, testing in game before upload. <b>Share button will be disabled if you share less than 50 new shaders</b> than emusak</li>
<li>Added a threshold to enable the share shaders button : Since we are getting a lot of submissions, it takes a lot of time to validate shaders because we are downloading them, testing in game before upload. <b>you are only able to upload Shaders which surpass the previous ones by at least 100 new ones for now</b></li>
<li>Add a notice first time you share shaders</li>
<li>Technical cleanup</li>
</ul>
<br/>
<p>
Expand Down

0 comments on commit 942ac51

Please sign in to comment.