diff --git a/docs/_config.yml b/docs/_config.yml index 9522c80f..48408ecb 100644 --- a/docs/_config.yml +++ b/docs/_config.yml @@ -4,7 +4,7 @@ url: https://slashiee.github.io/cemu_graphic_packs/ repository: slashiee/cemu_graphic_packs author: - name: Slashiee + awesome contributors + name: "Slashiee, Crementif and other contributors" collections: - FAQ diff --git a/docs/_data/GameTitles.yml b/docs/_data/GameTitles.yml index f2a6b7d2..8a69ce30 100644 --- a/docs/_data/GameTitles.yml +++ b/docs/_data/GameTitles.yml @@ -54,7 +54,7 @@ "Captain Toad: Treasure Tracker": nativeRes: 720 compatLink: "http://compat.cemu.info/wiki/Captain_Toad:_Treasure_Tracker" - version: 3 + version: 4 hasUltrawide: true "Chariot": nativeRes: 720 @@ -181,7 +181,7 @@ "Mario Kart 8": nativeRes: 720 compatLink: "http://compat.cemu.info/wiki/Mario_Kart_8" - version: 3 + version: 4 hasUltrawide: true "Mario Tennis: Ultra Smash": nativeRes: 720 @@ -190,7 +190,7 @@ "Meme Run": nativeRes: 720 compatLink: "http://compat.cemu.info/wiki/Meme_Run" - version: 3 + version: 4 "Minecraft: Story Mode": nativeRes: 720 compatLink: "http://compat.cemu.info/wiki/Minecraft:_Story_Mode" @@ -310,12 +310,12 @@ "Sonic Lost World": nativeRes: 720 compatLink: "http://compat.cemu.info/wiki/Sonic_Lost_World" - version: 3 + version: 4 hasUltrawide: true "Splatoon": nativeRes: 720 compatLink: "http://compat.cemu.info/wiki/Splatoon" - version: 3 + version: 4 hasUltrawide: true "SpongeBob SquarePants: Plankton’s Robotic Revenge": nativeRes: 720 @@ -324,7 +324,7 @@ "Star Fox Guard": nativeRes: 720 compatLink: "http://compat.cemu.info/wiki/Star_Fox_Guard" - version: 3 + version: 4 "Star Fox Zero": nativeRes: 720 compatLink: "http://compat.cemu.info/wiki/Star_Fox_Zero" @@ -332,7 +332,7 @@ "Super Mario 3D World": nativeRes: 720 compatLink: "http://compat.cemu.info/wiki/Super_Mario_3D_World" - version: 3 + version: 4 hasUltrawide: true "Super Mario Maker": nativeRes: 720 @@ -361,7 +361,7 @@ "The Legend of Zelda: Breath of the Wild": nativeRes: 720 compatLink: "http://compat.cemu.info/wiki/The_Legend_of_Zelda:_Breath_of_the_Wild" - version: 3 + version: 4 hasUltrawide: true "The Legend of Zelda: The Wind Waker HD": nativeRes: 1080 @@ -407,6 +407,7 @@ nativeRes: 720 compatLink: "http://compat.cemu.info/wiki/Yoshi's_Woolly_World" version: 3 + hasUltrawide: true "ZombiU": nativeRes: 720 compatLink: "http://compat.cemu.info/wiki/ZombiU" diff --git a/docs/assets/css/index.css b/docs/assets/css/index.css index 1a187a0c..1789bc4e 100644 --- a/docs/assets/css/index.css +++ b/docs/assets/css/index.css @@ -47,9 +47,10 @@ #information-box.ultrawide-supported #ultrawide #ultrawide-supported { display: block !important; } #information-box.ultrawide-unsupported #ultrawide #ultrawide-unsupported { display: block !important; } -#information-box #version-3 p { display: none; } -#information-box.version-3-supported #version-3 #version-3-supported { display: block !important; } -#information-box.version-3-unsupported #version-3 #version-3-unsupported { display: block !important; } +#information-box #version-info p { display: none; } +#information-box.version-4-supported #version-info #version-4-supported { display: block !important; } +#information-box.version-3-supported #version-info #version-3-supported { display: block !important; } +#information-box.version-2-supported #version-info #version-2-supported { display: block !important; } #information-box #compat-status span { display: none; } #information-box.compat-status-loading #compat-status-loading { display: inline !important; } diff --git a/docs/assets/images/compat_status/loads.png b/docs/assets/images/compat_status/loads.png index ee1a0177..7f86433c 100644 Binary files a/docs/assets/images/compat_status/loads.png and b/docs/assets/images/compat_status/loads.png differ diff --git a/docs/assets/images/compat_status/perfect.png b/docs/assets/images/compat_status/perfect.png index 2847fb79..31bf87f5 100644 Binary files a/docs/assets/images/compat_status/perfect.png and b/docs/assets/images/compat_status/perfect.png differ diff --git a/docs/assets/images/compat_status/playable.png b/docs/assets/images/compat_status/playable.png index 94246a11..b823e619 100644 Binary files a/docs/assets/images/compat_status/playable.png and b/docs/assets/images/compat_status/playable.png differ diff --git a/docs/assets/images/compat_status/runs.png b/docs/assets/images/compat_status/runs.png index 58bff18b..2e0cc23d 100644 Binary files a/docs/assets/images/compat_status/runs.png and b/docs/assets/images/compat_status/runs.png differ diff --git a/docs/assets/images/compat_status/unplayable.png b/docs/assets/images/compat_status/unplayable.png index 6ff145ec..4ed8797f 100644 Binary files a/docs/assets/images/compat_status/unplayable.png and b/docs/assets/images/compat_status/unplayable.png differ diff --git a/docs/assets/images/download.png b/docs/assets/images/download.png index 16127689..2c8cce89 100644 Binary files a/docs/assets/images/download.png and b/docs/assets/images/download.png differ diff --git a/docs/assets/images/embed-icon.png b/docs/assets/images/embed-icon.png index 9b7d8809..4239b9cf 100644 Binary files a/docs/assets/images/embed-icon.png and b/docs/assets/images/embed-icon.png differ diff --git a/docs/assets/images/no-cover-available.png b/docs/assets/images/no-cover-available.png index 6cdd5f10..12428a99 100644 Binary files a/docs/assets/images/no-cover-available.png and b/docs/assets/images/no-cover-available.png differ diff --git a/docs/assets/javascript/index.js b/docs/assets/javascript/index.js index a96bc433..732ee3b5 100644 --- a/docs/assets/javascript/index.js +++ b/docs/assets/javascript/index.js @@ -17,11 +17,19 @@ var supportedGamesSearchSetHalfTitles = {}; const altNames = { "botw": "The Legend of Zelda: Breath of the Wild", "hw": "Hyrule Warriors", + "mc": "Minecraft", + "slw": "Sonic Lost World", "smm": "Super Mario Maker", "mk8": "Mario Kart 8", "tphd": "The Legend of Zelda: Twilight Princess HD", "wwhd": "The Legend of Zelda: The Wind Waker HD", - "breath of the dicknut": "The Legend of Zelda: Breath of the Wild" + // easter eggs + "breath of the dicknut": "The Legend of Zelda: Breath of the Wild", + "f-zero": "FAST Racing NEO", + "m&m": "Sonic", + "michele": "Sonic", + "slashiee": "Sonic", + "best game": "Meme Run" }; async function searchSupportedGames(searchString) { @@ -46,6 +54,11 @@ async function searchSupportedGames(searchString) { let resultsHintSearch = []; if (Object.keys(altNames).includes(searchString.toLowerCase())) searchString = altNames[searchString.toLowerCase()]; + if (searchString.toLowerCase() == "digital foundry") { + document.title = "Home - Cemu Hacks"; + document.getElementsByClassName("display-4")[0].innerText="Cemu Hacks"; + document.getElementsByClassName("lead")[0].innerText = "Get your online Cemu hax here!!"; + } if (searchString != "*") resultsHintSearch = supportedGamesSearchSet.get(searchString); else { for (supportedGame in supportedGames) { @@ -62,8 +75,9 @@ async function searchSupportedGames(searchString) { let gameTitleText = document.createTextNode(currResult); let versionBadge = document.createElement("span"); let versionBadgeText; - if (supportedGames[currResult].version == 3) versionBadgeText = document.createTextNode("Latest Cemu version"); - else if (supportedGames[currResult].version == 2) versionBadgeText = document.createTextNode("Only supported on version 2"); + if (supportedGames[currResult].version == 4) versionBadgeText = document.createTextNode("Supports OpenGL and Vulkan"); + else if (supportedGames[currResult].version == 3) versionBadgeText = document.createTextNode("Only supported on OpenGL"); + else if (supportedGames[currResult].version == 2) versionBadgeText = document.createTextNode("Only supported on 1.8.0 through 1.13.2"); else versionBadgeText = document.createTextNode("No resolution pack yet :("); let resolutionBadge = document.createElement("span"); let resolutionBadgeText = document.createTextNode(supportedGames[currResult].nativeRes+"p"); @@ -73,12 +87,15 @@ async function searchSupportedGames(searchString) { resolutionBadge.className = "badge badge-pill badge-primary float-right"; searchResultEntry.onclick=searchInfoModalTrigger - if (supportedGames[currResult].version === 3) { - searchResultEntry.classList.add("list-group-item-primary"); - } - else { - searchResultEntry.classList.add("list-group-item-secondary"); - } + if (supportedGames[currResult].version === 4) { + searchResultEntry.classList.add("list-group-item-danger"); + } + else if (supportedGames[currResult].version === 3) { + searchResultEntry.classList.add("list-group-item-primary"); + } + else { + searchResultEntry.classList.add("list-group-item-secondary"); + } searchResultEntry.appendChild(gameTitleText); versionBadge.appendChild(versionBadgeText); @@ -98,17 +115,19 @@ async function searchInfoModalTrigger(clickedElem) { let clickedGame = clickedElem.target.firstChild.textContent; // Reset Compat Information - document.getElementById("modal-preview-image").src="https://github.com/Crementif/cemu_graphic_packs/blob/gh-pages/assets/images/no-cover-available.png"; + document.getElementById("modal-preview-image").src="assets/images/no-cover-available.png"; document.getElementById("information-box").className="compat-status-loading"; document.getElementById("gameTitle").innerText=clickedGame; document.getElementById("compatWikiButton").href=supportedGames[clickedGame].compatLink; document.getElementById("nativeResolution").textContent=supportedGames[clickedGame].nativeRes; - document.getElementById("information-box").classList.add(supportedGames[clickedGame].version3 ? "version-3-supported" : "version-3-unsupported"); + if (supportedGames[clickedGame].version == 4) document.getElementById("information-box").classList.add("version-4-supported"); + else if (supportedGames[clickedGame].version == 3) document.getElementById("information-box").classList.add("version-3-supported"); + else if (supportedGames[clickedGame].version == 2) document.getElementById("information-box").classList.add("version-2-supported"); document.getElementById("information-box").classList.add(supportedGames[clickedGame].hasUltrawide ? "ultrawide-supported" : "ultrawide-unsupported"); if (supportedGames[clickedGame].hasOwnProperty("compatLink")) { - await fetch(`https://cors-anywhere.herokuapp.com/http://compat.cemu.info/w/api?action=parse&page=${supportedGames[clickedGame].compatLink.split("http://compat.cemu.info/wiki/")[1]}&redirects=true&prop=parsetree&format=json`).then(fetchRes => fetchRes.json()).then(fetchJson => { + await fetch(`https://cors-anywhere.herokuapp.com/http://wiki.cemu.info/api.php?action=parse&page=${supportedGames[clickedGame].compatLink.split("http://compat.cemu.info/wiki/")[1]}&redirects=true&prop=parsetree&format=json`).then(fetchRes => fetchRes.json()).then(fetchJson => { console.debug(`Fetched ${clickedGame}'s(=${supportedGames[clickedGame].compatLink.split("http://compat.cemu.info/wiki/")[1]}) compat wiki`, fetchJson); let compatTemplates = new DOMParser().parseFromString(fetchJson.parse.parsetree["*"], "application/xml").documentElement.getElementsByTagName("template"); let compatJson = []; diff --git a/docs/img/avatar-icon.png b/docs/img/avatar-icon.png deleted file mode 100644 index 9b7d8809..00000000 Binary files a/docs/img/avatar-icon.png and /dev/null differ diff --git a/docs/index.html b/docs/index.html index 12211a0f..08ae0e2f 100644 --- a/docs/index.html +++ b/docs/index.html @@ -12,8 +12,7 @@ layout: page
Manual installation instructions
Remove all of your graphic packs first, then move all of the folders from a downloaded .zip below to the graphicPacks folder from your Cemu folder.

Select the download for your Cemu version

- Cemu 1.14.0 and newer (version 3) - + Cemu 1.14.0 and newer (versions 3 and 4)
- Search Icon + Search Icon