diff --git a/gctGenerator.js b/gctGenerator.js index 7c21d6b..b48f585 100644 --- a/gctGenerator.js +++ b/gctGenerator.js @@ -85,7 +85,7 @@ function generateGCT() { var valueSelected = false; for (var i = 0; i < codeList.length; i++) { if (codeList[i].className === "checked") { - data += codeList[i].getAttribute("data-codeSrc"); + data += codeList[i].getAttribute("data-codesrc"); valueSelected = true; } } @@ -118,8 +118,8 @@ function generateTXT(s) { data += "\r\n"; if (s.id === "gcmDownloadButton") data += "\r\n"; else data += "$"; - data += codeList[i].getAttribute("data-codeName") + " (" + codeList[i].getAttribute("data-codeDate") + ") [" + codeList[i].getAttribute("data-codeAuthor") + "]\r\n"; - data += (codeList[i].getAttribute("data-codeSrc").match(/.{8}/g).join(" ")).replace(/(.{17})./g, "$1\r\n"); + data += codeList[i].getAttribute("data-codename") + " (" + codeList[i].getAttribute("data-codedate") + ") [" + codeList[i].getAttribute("data-codeAuthor") + "]\r\n"; + data += (codeList[i].getAttribute("data-codesrc").match(/.{8}/g).join(" ")).replace(/(.{17})./g, "$1\r\n"); valueSelected = true; } } @@ -150,18 +150,18 @@ function updateCodelist() { function updateDescription(s) { document.getElementById("descriptionBox").innerHTML = "
Author(s): " + - s.getAttribute("data-codeAuthor") + "
Version: " + - s.getAttribute("data-codeVersion") + " (" + - s.getAttribute("data-codeDate") + ")
" + "" + - s.getAttribute("data-codeDesc") + "
"; + s.getAttribute("data-codename") + "Author(s): " + + s.getAttribute("data-codeauthor") + "
Version: " + + s.getAttribute("data-codeversion") + " (" + + s.getAttribute("data-codedate") + ")
" + "" + + s.getAttribute("data-codedesc") + "
"; } function setButtonDescription(s) { if (s.id === "downloadButton") document.getElementById("descriptionBox").innerHTML = "Download the cheats in the GCT format for use with Nintendont.
"; else if (s.id === "dolphinDownloadButton") - document.getElementById("descriptionBox").innerHTML = "Download a textfile containing the formatted codes for use with Dolphin. Copy the contents of the file on top of your games .ini file.
"; + document.getElementById("descriptionBox").innerHTML = "Download a textfile containing the formatted codes for use with Dolphin. Copy the contents of the file on top of your games .ini file.
You can open the .ini file by right clicking the game in Dolphin. In the context menu select \"Properties\" and then \"Edit configuration\".
"; else document.getElementById("descriptionBox").innerHTML = "Download the cheats in a textfile formatted for use with the Gecko Cheat Manager. Place the txt file in SD:/txtcodes/.
A zip archive containing pregenerated txt files with all available codes on this site can be downloaded here."; }