-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupdate-ams.htm
72 lines (68 loc) · 2.87 KB
/
update-ams.htm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<html>
<head>
<title>Mechanical Crismos emulator</title>
<script>
var hash = "";
function loadStuff() {
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function () {
if (this.readyState == 4 && this.status == 200) {
var res = JSON.parse(this.responseText);
hash = res["body"].split("\"")[1];
document.getElementById('fw').textContent = res["name"].split(" ")[3];
var fusee_asset = res["assets"].find(
asset => asset["browser_download_url"].includes("fusee.zip")
);
document.getElementById('patches').href = fusee_asset["browser_download_url"];
document.getElementById('patches').textContent = fusee_asset["browser_download_url"];
}
};
xhttp.open("GET", "https://api.github.com/repos/ITotalJustice/patches/releases/latest", true);
xhttp.send();
xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function () {
if (this.readyState == 4 && this.status == 200) {
var res = JSON.parse(this.responseText);
var release = res.find(checkHash, hash);
var ams = release["assets"][0]["browser_download_url"];
var fusee = release["assets"].find(
asset => asset["browser_download_url"].includes("fusee.bin")
)["browser_download_url"];
document.getElementById('ams').href = ams;
document.getElementById('ams').textContent = ams;
document.getElementById('fusee').href = fusee;
document.getElementById('fusee').textContent = fusee;
}
};
xhttp.open("GET", "https://api.github.com/repos/Atmosphere-NX/atmosphere/releases", true);
xhttp.send();
}
function checkHash(release) {
if (release["assets"].find(asset => asset["browser_download_url"].includes(hash))) {
return true;
}
return false;
}
// function checkAsset(asset, hash) {
// return asset["browser_download_url"].includes(hash);
// }
</script>
</head>
<body onload="loadStuff()">
<p>Supported Firmware version: up to <b id="fw">shit's broken, wait for fix</b></p>
<p>Download 2 archives, unpack to the root of your SD:</p>
<ul>
<li>Atmosphere CFW: <a id="ams">shit's broken, wait for fix</a></li>
<li>Sigpatches set: <a id="patches">shit's broken, wait for fix</a></li>
</ul>
<p>Download fresh payload, inject after unpacking archives:</p>
<ul>
<li>Fusee-primary payload: <a id="fusee">shit's broken, wait for fix</a></li>
</ul>
<p>If you have any problems booting, try:<br>
a) remove your cartridge from the slot, boot again<br>
b) rename/delete "atmosphere" and "sept" folders before unpacking newly downloaded archives again
</p>
<!-- <button onclick="loadStuff()">aaaa</button> -->
</body>
</html>