2018-02-03 00:09:02 +01:00
|
|
|
<?php
|
|
|
|
include 'Source/functions.php';
|
|
|
|
$fullWidth = $argv[1];
|
|
|
|
$fullHeight = $argv[2];
|
|
|
|
$scaleFactorX = $fullWidth / 1280.0;
|
|
|
|
$scaleFactorY = $fullHeight / 720.0;
|
|
|
|
$title = get_title($fullWidth, $fullHeight);
|
|
|
|
?>
|
|
|
|
|
2017-10-20 04:28:36 +02:00
|
|
|
[Definition]
|
|
|
|
titleIds = 0005000010101D00,0005000010101E00,000500001014B700,000500001014B800,0005000010101C00,0005000010142300,0005000010142400,0005000010142200
|
2018-02-03 00:09:02 +01:00
|
|
|
name = "New Super Mario Bros. U - <?=$title?>"
|
2017-10-20 04:28:36 +02:00
|
|
|
version = 2
|
|
|
|
|
2018-02-03 00:09:02 +01:00
|
|
|
##tilemap don't scale
|
2018-02-02 23:52:49 +01:00
|
|
|
#width = 2048
|
|
|
|
#height = 512
|
|
|
|
|
|
|
|
[TextureRedefine]
|
2017-10-20 04:28:36 +02:00
|
|
|
width = 1280
|
|
|
|
height = 720
|
2018-02-03 00:09:02 +01:00
|
|
|
#formatsExcluded =
|
|
|
|
overwriteWidth = <?=round($scaleFactorX*1280)?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*720)?>
|
|
|
|
|
2017-10-20 04:28:36 +02:00
|
|
|
|
2018-02-02 23:52:49 +01:00
|
|
|
[TextureRedefine] #map shadows
|
|
|
|
width = 1024
|
|
|
|
height = 1024
|
|
|
|
formats = 0x005
|
2018-02-03 00:09:02 +01:00
|
|
|
overwriteWidth = <?=round($scaleFactorX*1024)?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*1024)?>
|
2017-10-20 04:28:36 +02:00
|
|
|
|
2018-02-02 23:52:49 +01:00
|
|
|
[TextureRedefine]
|
2017-10-20 04:28:36 +02:00
|
|
|
width = 854
|
|
|
|
height = 480
|
2018-02-03 00:09:02 +01:00
|
|
|
#formatsExcluded =
|
|
|
|
overwriteWidth = <?=round($scaleFactorX*854)?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*480)?>
|
2018-02-02 23:52:49 +01:00
|
|
|
|
|
|
|
[TextureRedefine]
|
|
|
|
width = 640
|
|
|
|
height = 360
|
2018-02-03 00:09:02 +01:00
|
|
|
#formatsExcluded =
|
|
|
|
overwriteWidth = <?=round($scaleFactorX*640)?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*360)?>
|
2018-02-02 23:52:49 +01:00
|
|
|
|
|
|
|
[TextureRedefine]
|
|
|
|
width = 320
|
|
|
|
height = 180
|
2018-02-03 00:09:02 +01:00
|
|
|
#formatsExcluded =
|
|
|
|
overwriteWidth = <?=round($scaleFactorX*320)?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*180)?>
|
2018-02-02 23:52:49 +01:00
|
|
|
|
|
|
|
[TextureRedefine]
|
|
|
|
width = 160
|
|
|
|
height = 90
|
2018-02-03 00:09:02 +01:00
|
|
|
#formatsExcluded =
|
|
|
|
overwriteWidth = <?=round($scaleFactorX*160)?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*90)?>
|
|
|
|
|
|
|
|
## Gradient don't scale
|
|
|
|
#width = 48
|
|
|
|
#height = 48
|
|
|
|
|