JP-A support
This commit is contained in:
parent
ddd9045a5c
commit
817db46388
2 changed files with 8 additions and 5 deletions
|
@ -56,17 +56,19 @@ function parseXML(name) {
|
|||
|
||||
function downloadFile(data, filename) {
|
||||
|
||||
var fname = filename.replace("GMSJ0A","GMSJ01");
|
||||
|
||||
var file = new Blob([data], {
|
||||
type: "application/octet-stream"
|
||||
});
|
||||
|
||||
if (window.navigator.msSaveOrOpenBlob)
|
||||
window.navigator.msSaveOrOpenBlob(file, filename);
|
||||
window.navigator.msSaveOrOpenBlob(file, fname);
|
||||
else {
|
||||
var a = document.createElement("a"),
|
||||
url = window.URL.createObjectURL(file);
|
||||
a.href = url;
|
||||
a.download = filename;
|
||||
a.download = fname;
|
||||
a.click();
|
||||
setTimeout(function() {
|
||||
window.URL.revokeObjectURL(url);
|
||||
|
@ -110,7 +112,7 @@ function generateTXT(s) {
|
|||
return;
|
||||
}
|
||||
if (s.id === "dolphinDownloadButton") var data = "Paste the following on top of your games .ini file:\r\n[Gecko]";
|
||||
else var data = document.getElementById("gameID").value + "\r\nSuper Mario Sunshine";
|
||||
else var data = document.getElementById("gameID").value.replace("GMSJ0A","GMSJ01") + "\r\nSuper Mario Sunshine";
|
||||
var codeList = document.getElementById("checkList").getElementsByTagName("li");
|
||||
var valueSelected = false;
|
||||
for (var i = 0; i < codeList.length; i++) {
|
||||
|
@ -118,7 +120,7 @@ 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-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;
|
||||
}
|
||||
|
|
|
@ -14,8 +14,9 @@
|
|||
<select id="gameID" class="selectionHeader" onchange="updateCodelist()" autocomplete="off">
|
||||
<option selected disabled hidden>Choose Version</option>
|
||||
<option value="GMSE01">GMSE01 (NTSC-U)</option>
|
||||
<option value="GMSJ01">GMSJ01 (NTSC-J 1.0)</option>
|
||||
<option value="GMSP01">GMSP01 (PAL)</option>
|
||||
<option value="GMSJ01">GMSJ01 (NTSC-J 1.0)</option>
|
||||
<option value="GMSJ0A">GMSJ01 (NTSC-J 1.1/A)</option>
|
||||
</select>
|
||||
<ul id="checkList">
|
||||
</ul>
|
||||
|
|
Loading…
Reference in a new issue