2017-10-18 04:16:46 +02:00
|
|
|
<?php
|
2017-10-18 08:46:57 +02:00
|
|
|
include 'Source/functions.php';
|
2017-10-18 04:16:46 +02:00
|
|
|
$fullWidth = $argv[1];
|
|
|
|
$fullHeight = $argv[2];
|
2017-10-19 09:22:38 +02:00
|
|
|
$scaleFactorX = $fullWidth / 1280.0;
|
|
|
|
$scaleFactorY = $fullHeight / 720.0;
|
|
|
|
|
2017-10-18 08:46:57 +02:00
|
|
|
$title = get_title($fullWidth, $fullHeight);
|
2017-10-18 04:16:46 +02:00
|
|
|
?>
|
|
|
|
[Definition]
|
|
|
|
titleIds = 0005000010180600,0005000010180700,0005000010180500
|
|
|
|
name = "Captain Toad: Treasure Tracker - <?=$title?>"
|
|
|
|
version = 2
|
|
|
|
|
|
|
|
[TextureRedefine] # tv
|
|
|
|
width = 1280
|
|
|
|
height = 720
|
|
|
|
formatsExcluded = 0x008,0x41A,0x034,0x035 # exclude obvious textures
|
2017-10-19 09:22:38 +02:00
|
|
|
overwriteWidth = <?=round($scaleFactorX*1280)?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*720)?>
|
2017-10-18 04:16:46 +02:00
|
|
|
|
|
|
|
[TextureRedefine] # zoomed in
|
|
|
|
width = 1128
|
|
|
|
height = 720
|
2017-10-19 09:22:38 +02:00
|
|
|
overwriteWidth = <?=round($scaleFactorX*1280)?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*720)?>
|
2017-10-18 04:16:46 +02:00
|
|
|
|
|
|
|
[TextureRedefine] # zoom transition
|
|
|
|
width = 1000
|
|
|
|
height = 600
|
2017-10-19 09:22:38 +02:00
|
|
|
overwriteWidth = <?=round($scaleFactorX*1280)?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*720)?>
|
2017-10-18 04:16:46 +02:00
|
|
|
|
|
|
|
[TextureRedefine] # zoom transition 2
|
|
|
|
width = 1000
|
|
|
|
height = 720
|
2017-10-19 09:22:38 +02:00
|
|
|
overwriteWidth = <?=round($scaleFactorX*1280)?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*720)?>
|
2017-10-18 04:16:46 +02:00
|
|
|
|
|
|
|
[TextureRedefine] # half-res alpha
|
|
|
|
width = 640
|
|
|
|
height = 360
|
|
|
|
formatsExcluded = 0x41A # exclude obvious textures
|
2017-10-19 09:22:38 +02:00
|
|
|
overwriteWidth = <?=round($scaleFactorX*640)?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*360)?>
|
2017-10-18 04:16:46 +02:00
|
|
|
|
|
|
|
[TextureRedefine] # half-res (zoomed in)
|
|
|
|
width = 564
|
|
|
|
height = 360
|
2017-10-19 09:22:38 +02:00
|
|
|
overwriteWidth = <?=round($scaleFactorX*640)?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*360)?>
|
2017-10-18 04:16:46 +02:00
|
|
|
|
|
|
|
[TextureRedefine] # half-res (zoom transition)
|
|
|
|
width = 500
|
|
|
|
height = 300
|
2017-10-19 09:22:38 +02:00
|
|
|
overwriteWidth = <?=round($scaleFactorX*640)?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*360)?>
|
2017-10-18 04:16:46 +02:00
|
|
|
|
|
|
|
[TextureRedefine] # half-res (zoom transition 2)
|
|
|
|
width = 500
|
|
|
|
height = 360
|
2017-10-19 09:22:38 +02:00
|
|
|
overwriteWidth = <?=round($scaleFactorX*640)?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*360)?>
|
2017-10-18 04:16:46 +02:00
|
|
|
|
|
|
|
[TextureRedefine] # quarter-res alpha
|
|
|
|
width = 320
|
|
|
|
height = 180
|
|
|
|
formatsExcluded = 0x41A # exclude obvious textures
|
2017-10-19 09:22:38 +02:00
|
|
|
overwriteWidth = <?=round($scaleFactorX*320)?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*180)?>
|
2017-10-18 04:16:46 +02:00
|
|
|
|
|
|
|
[TextureRedefine] # q-res (zoomed in)
|
|
|
|
width = 282
|
|
|
|
height = 180
|
2017-10-19 09:22:38 +02:00
|
|
|
overwriteWidth = <?=round($scaleFactorX*320)?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*180)?>
|
2017-10-18 04:16:46 +02:00
|
|
|
|
|
|
|
[TextureRedefine] # q-res (zoom transition)
|
|
|
|
width = 250
|
|
|
|
height = 150
|
2017-10-19 09:22:38 +02:00
|
|
|
overwriteWidth = <?=round($scaleFactorX*320)?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*180)?>
|
2017-10-18 04:16:46 +02:00
|
|
|
|
|
|
|
[TextureRedefine] # q-res (zoom transition 2)
|
|
|
|
width = 250
|
|
|
|
height = 180
|
2017-10-19 09:22:38 +02:00
|
|
|
overwriteWidth = <?=round($scaleFactorX*320)?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*180)?>
|
2017-10-18 04:16:46 +02:00
|
|
|
|
|
|
|
[TextureRedefine] # gamepad
|
|
|
|
width = 854
|
|
|
|
height = 480
|
2017-10-19 09:22:38 +02:00
|
|
|
overwriteWidth = <?=round($scaleFactorX*1280)?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*720)?>
|
2017-10-18 04:16:46 +02:00
|
|
|
|
|
|
|
[TextureRedefine] # half-res (gamepad)
|
|
|
|
width = 427
|
|
|
|
height = 240
|
|
|
|
formatsExcluded = 0x41A # exclude obvious textures
|
2017-10-19 09:22:38 +02:00
|
|
|
overwriteWidth = <?=round($scaleFactorX*640)?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*360)?>
|
2017-10-18 04:16:46 +02:00
|
|
|
|
|
|
|
[TextureRedefine] # q-res (gamepad)
|
|
|
|
width = 214
|
|
|
|
height = 120
|
|
|
|
formatsExcluded = 0x41A # exclude obvious textures
|
2017-10-19 09:22:38 +02:00
|
|
|
overwriteWidth = <?=round($scaleFactorX*320)?>
|
|
|
|
overwriteHeight = <?=round($scaleFactorY*180)?>
|