Change DSi-ify to use a script instead of using it per page + other changes

This commit is contained in:
HotPizzaYT 2022-05-08 21:43:05 -05:00
commit ee47c13713
15 changed files with 60 additions and 115 deletions

View file

@ -0,0 +1,20 @@
<?php
$isDSi = false;
$width = "320";
$height1 = "208";
$height2 = "222";
if(strpos($_SERVER["HTTP_USER_AGENT"], "Nintendo DSi") !== false){
$width = "240";
$height1 = "176";
$height2 = "176";
$isDSi = true;
} else {
$width = "320";
}
$cbp = (78.125 / 100) * intval($width);
$cbp1 = strval($cbp);
if(count(get_included_files()) == 1 && count(get_required_files()) == 1){
echo "Top screen: ". $width . "x" . $height1 . ", bottom screen: " . $width . "x" . $height2;
}
?>