Update stylesheet, add sdk version reading code

This commit is contained in:
CsvUpdater 2024-04-26 03:28:48 +00:00
parent ab01325361
commit bbbb06b2d3
2 changed files with 16 additions and 1 deletions

View File

@ -3,6 +3,17 @@ include("header.php");
?>
<?php
function getSdkVersion(SimpleXMLElement $xml)
{
if(isset($xml->attributes()->sdk_version)) {
return $xml->attributes()->sdk_version;
}
else if(isset($xml->attributes()->runtime_version)) {
return $xml->attributes()->runtime_version;
}
return "(Unknown)";
}
function getSdkType(SimpleXMLElement $xml)
{
if(isset($xml->app_xml_format))
@ -47,11 +58,14 @@ include("header.php");
$languageList = $xml->name->children();
$featureList = $xml->feature_list->children();
$SDKType = getSdkType($xml);
$SDKVer = getSdkVersion($xml);
$zrifinfo = getZRIF($game);
$zrifPendingInfo = getPendingZRIF($game);
$pkgSony = getPKG($game);
$simulatorZip = "decrypted-files/".$game.".zip";
$androidCompatibile = (($SDKVer !== "2.00.00") && ($SDKType == "PSM"));
$verXML = simplexml_load_file('gameinfo/' . $game . "/version.xml", 'SimpleXMLElement', LIBXML_NOENT);
$latestVersion = (string)($verXML->appVersion);
$pkgReborn = "/pkg/".$game."_00/".$latestVersion."/".$game."_00.pkg";
@ -93,6 +107,7 @@ include("header.php");
<li><p>Supported locale: <b><?php echo printLanguageList($languageList) ?></b></p></li>
<li><p>Genres: <b><?php echo printGenreList($genreList) ?></b></p></li>
<li><p>Type: <b><?php echo $SDKType ?></b></p></li>
<li><p>SDK Version: <b><?php echo($SDKVer); ?></b><?php if($androidCompatibile) { echo(" (Supports Android & PSVita)"); } else { echo(" (Supports PSVita Only.)");}; ?></p></li>
</ul>
</div>
</div>

View File

@ -366,7 +366,7 @@
*/
html,body,head {
font-family: "Comic Sans MS", "Comic Sans", cursive;
font-family: "Comic Sans MS", "Comic Sans", "Arial";
position: absolute;
width: 100%;
margin: 0;