Update stylesheet, add sdk version reading code
This commit is contained in:
parent
ab01325361
commit
bbbb06b2d3
15
libary.php
15
libary.php
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue