Update README.md

This commit is contained in:
Ramaerel 2022-04-22 20:23:47 +10:00 committed by GitHub
parent 59298b536f
commit 4c5a461c00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,21 +4,33 @@ An addition to ethan's EmulatorJS, which is a basic games library that reads the
<h1>Adding to the Library</h1>
To add to the library, use the following template:
<hr />
case "file_MD5":
$data["Name"] = Game_Name;
$data["Console"] = Game_Console; (According to the EmulatorJS system abbreviations)
$data["Region"] = Game_Region;
break;
<hr />
Example:
<hr />
case "3d45c1ee9abd5738df46d2bdda8b57dc":
$data["Name"] = "Pokemon Red";
$data["Console"] = "gb";
$data["Region"] = "USA";
break;
Add the case statement underneath the last break; you see in Library.php. Additions to the Library on here are very welcome!