Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
TrapjawwS committed Apr 29, 2024
1 parent affd45f commit 82edc02
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
10 changes: 9 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,14 @@
EJS_core = "gba";

if (HMR3_optionValue == "customlink") {
var gametitle = prompt("What is the title of the game?")
var customurl = prompt("Enter your url. (If you don't know how to get the url, upload your rom to github, copy the url for the raw file, and put it through githack)")
HMR3_optionValue = customurl

HMR3_cachedtitles.push(gametitle);
HMR3_cachedlinks.push(customurl);
localStorage.setItem("HMR3_cachedtitles", string)
localStorage.setItem("HMR3_cachedlinks", string)
alert("Ok cool. Next time you open this file, the game you added should be saved and in the dropdown! Enjoy :)")
}

if (HMR3_optionValue == "moreroms") {
Expand Down Expand Up @@ -248,6 +253,9 @@
//function HMR3_writeOptions(){
var HMR3_dropdownString = "";

HMR3_optionText = HMR3_optionText.concat(HMR3_cachedtitles)
HMR3_optionValue = HMR3_optionValue.concat(HMR3_cachedlinks)

for (i=0;i<HMR3_optionText.length;i++){
HMR3_dropdownString += "<option value=\"" + HMR3_optionValue[i] + "\">" + HMR3_optionText[i] + "</option>";
}
Expand Down
8 changes: 8 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -825,3 +825,11 @@ var HMR3_SNES = [
var HMR3_SEGAMS = [

]

var HMR3_cachedtitles = [

]

var HMR3_cachedlinks = [

]

0 comments on commit 82edc02

Please sign in to comment.