[RoL/Rio] Add support

Games don't currently boot in 1.11.4 but I'm adding back support for later versions

also sonic team why the fuck are you using -1 in rio
This commit is contained in:
Michael 2018-02-03 23:29:32 -08:00
parent 803e3ed3fc
commit 46e193f8cb
4 changed files with 352 additions and 11 deletions

View File

@ -8,37 +8,286 @@ $scaleFactorY = $fullHeight / 720.0;
$title = get_title($fullWidth, $fullHeight); $title = get_title($fullWidth, $fullHeight);
?> ?>
[Definition] [Definition]
titleIds = 00050000101E5300 titleIds = 0005000010190300,00050000101e5300,00050000101e5400,0005000210190301,00050002101e5401
name = "Mario & Sonic at the Rio 2016 Olympic Games - <?=$title?>" name = "Mario & Sonic at the Rio 2016 Olympic Games - <?=$title?>"
version = 2 version = 2
[TextureRedefine] [TextureRedefine]
width = 1280 width = 1280
height = 720 height = 720
tileModesExcluded = 0x001
overwriteWidth = <?=round($scaleFactorX*1280)?> overwriteWidth = <?=round($scaleFactorX*1280)?>
overwriteHeight = <?=round($scaleFactorY*720)?> overwriteHeight = <?=round($scaleFactorY*720)?>
[TextureRedefine]
width = 1200
height = 100
#formatsExcluded =
overwriteWidth = <?=round($scaleFactorX*1200)?>
overwriteHeight = <?=round($scaleFactorY*100)?>
[TextureRedefine]
width = 1040
height = 60
#formatsExcluded =
overwriteWidth = <?=round($scaleFactorX*1040)?>
overwriteHeight = <?=round($scaleFactorY*60)?>
#[TextureRedefine] #May unintentionally scale textures, check formatsExcluded
#width = 1024
#height = 1024
#formatsExcluded =
#overwriteWidth = <?=round($scaleFactorX*1024)?>
#overwriteHeight = <?=round($scaleFactorY*1024)?>
[TextureRedefine]
width = 880
height = 226
#formatsExcluded =
overwriteWidth = <?=round($scaleFactorX*880)?>
overwriteHeight = <?=round($scaleFactorY*226)?>
[TextureRedefine]
width = 854
height = 480
#formatsExcluded =
overwriteWidth = <?=round($scaleFactorX*854)?>
overwriteHeight = <?=round($scaleFactorY*480)?>
[TextureRedefine]
width = 832
height = 40
#formatsExcluded =
overwriteWidth = <?=round($scaleFactorX*832)?>
overwriteHeight = <?=round($scaleFactorY*40)?>
[TextureRedefine]
width = 784
height = 130
#formatsExcluded =
overwriteWidth = <?=round($scaleFactorX*784)?>
overwriteHeight = <?=round($scaleFactorY*130)?>
[TextureRedefine]
width = 672
height = 64
#formatsExcluded =
overwriteWidth = <?=round($scaleFactorX*672)?>
overwriteHeight = <?=round($scaleFactorY*64)?>
[TextureRedefine]
width = 656
height = 46
#formatsExcluded =
overwriteWidth = <?=round($scaleFactorX*656)?>
overwriteHeight = <?=round($scaleFactorY*46)?>
[TextureRedefine] [TextureRedefine]
width = 640 width = 640
height = 360 height = 80
tileModesExcluded = 0x001 #formatsExcluded =
overwriteWidth = <?=round($scaleFactorX*640)?> overwriteWidth = <?=round($scaleFactorX*640)?>
overwriteHeight = <?=round($scaleFactorY*360)?> overwriteHeight = <?=round($scaleFactorY*80)?>
[TextureRedefine]
width = 624
height = 40
#formatsExcluded =
overwriteWidth = <?=round($scaleFactorX*624)?>
overwriteHeight = <?=round($scaleFactorY*40)?>
[TextureRedefine]
width = 608
height = 624
#formatsExcluded =
overwriteWidth = <?=round($scaleFactorX*608)?>
overwriteHeight = <?=round($scaleFactorY*624)?>
[TextureRedefine]
width = 570
height = 420
#formatsExcluded =
overwriteWidth = <?=round($scaleFactorX*570)?>
overwriteHeight = <?=round($scaleFactorY*420)?>
[TextureRedefine]
width = 544
height = 160
#formatsExcluded =
overwriteWidth = <?=round($scaleFactorX*544)?>
overwriteHeight = <?=round($scaleFactorY*160)?>
#[TextureRedefine] #May unintentionally scale textures, check formatsExcluded
#width = 512
#height = 512
#formatsExcluded =
#overwriteWidth = <?=round($scaleFactorX*512)?>
#overwriteHeight = <?=round($scaleFactorY*512)?>
[TextureRedefine]
width = 512
height = 34
#formatsExcluded =
overwriteWidth = <?=round($scaleFactorX*512)?>
overwriteHeight = <?=round($scaleFactorY*34)?>
[TextureRedefine]
width = 400
height = 40
#formatsExcluded =
overwriteWidth = <?=round($scaleFactorX*400)?>
overwriteHeight = <?=round($scaleFactorY*40)?>
[TextureRedefine]
width = 336
height = 60
#formatsExcluded =
overwriteWidth = <?=round($scaleFactorX*336)?>
overwriteHeight = <?=round($scaleFactorY*60)?>
[TextureRedefine] [TextureRedefine]
width = 320 width = 320
height = 180 height = 180
#formatsExcluded =
overwriteWidth = <?=round($scaleFactorX*320)?> overwriteWidth = <?=round($scaleFactorX*320)?>
overwriteHeight = <?=round($scaleFactorY*180)?> overwriteHeight = <?=round($scaleFactorY*180)?>
[TextureRedefine]
width = 320
height = 40
#formatsExcluded =
overwriteWidth = <?=round($scaleFactorX*320)?>
overwriteHeight = <?=round($scaleFactorY*40)?>
[TextureRedefine]
width = 320
height = 24
#formatsExcluded =
overwriteWidth = <?=round($scaleFactorX*320)?>
overwriteHeight = <?=round($scaleFactorY*24)?>
[TextureRedefine]
width = 280
height = 76
#formatsExcluded =
overwriteWidth = <?=round($scaleFactorX*280)?>
overwriteHeight = <?=round($scaleFactorY*76)?>
[TextureRedefine]
width = 272
height = 50
#formatsExcluded =
overwriteWidth = <?=round($scaleFactorX*272)?>
overwriteHeight = <?=round($scaleFactorY*50)?>
[TextureRedefine]
width = 256
height = 52
#formatsExcluded =
overwriteWidth = <?=round($scaleFactorX*256)?>
overwriteHeight = <?=round($scaleFactorY*52)?>
[TextureRedefine]
width = 224
height = 52
#formatsExcluded =
overwriteWidth = <?=round($scaleFactorX*224)?>
overwriteHeight = <?=round($scaleFactorY*52)?>
[TextureRedefine] [TextureRedefine]
width = 160 width = 160
height = 90 height = 90
#formatsExcluded =
overwriteWidth = <?=round($scaleFactorX*160)?> overwriteWidth = <?=round($scaleFactorX*160)?>
overwriteHeight = <?=round($scaleFactorY*90)?> overwriteHeight = <?=round($scaleFactorY*90)?>
[TextureRedefine] # gamepad [TextureRedefine]
width = 854 width = 160
height = 480 height = 46
#overwriteWidth = <?=round($scaleFactorX*1280)?> #formatsExcluded =
#overwriteHeight = <?=round($scaleFactorY*720)?> overwriteWidth = <?=round($scaleFactorX*160)?>
overwriteHeight = <?=round($scaleFactorY*46)?>
[TextureRedefine]
width = 160
height = 38
#formatsExcluded =
overwriteWidth = <?=round($scaleFactorX*160)?>
overwriteHeight = <?=round($scaleFactorY*38)?>
[TextureRedefine]
width = 128
height = 58
#formatsExcluded =
overwriteWidth = <?=round($scaleFactorX*128)?>
overwriteHeight = <?=round($scaleFactorY*58)?>
[TextureRedefine]
width = 80
height = 45
#formatsExcluded =
overwriteWidth = <?=round($scaleFactorX*80)?>
overwriteHeight = <?=round($scaleFactorY*45)?>
#[TextureRedefine] #May unintentionally scale textures, check formatsExcluded
#width = 64
#height = 64
#formatsExcluded =
#overwriteWidth = <?=round($scaleFactorX*64)?>
#overwriteHeight = <?=round($scaleFactorY*64)?>
[TextureRedefine]
width = 40
height = 22
#formatsExcluded =
overwriteWidth = <?=round($scaleFactorX*40)?>
overwriteHeight = <?=round($scaleFactorY*22)?>
[TextureRedefine]
width = 20
height = 11
#formatsExcluded =
overwriteWidth = <?=round($scaleFactorX*20)?>
overwriteHeight = <?=round($scaleFactorY*11)?>
#[TextureRedefine] #May unintentionally scale textures, check formatsExcluded
#width = 16
#height = 16
#formatsExcluded =
#overwriteWidth = <?=round($scaleFactorX*16)?>
#overwriteHeight = <?=round($scaleFactorY*16)?>
[TextureRedefine]
width = 10
height = 5
#formatsExcluded =
overwriteWidth = <?=round($scaleFactorX*10)?>
overwriteHeight = <?=round($scaleFactorY*5)?>
[TextureRedefine]
width = 5
height = 2
#formatsExcluded =
overwriteWidth = <?=round($scaleFactorX*5)?>
overwriteHeight = <?=round($scaleFactorY*2)?>
#[TextureRedefine] #May unintentionally scale textures, check formatsExcluded
#width = 4
#height = 4
#formatsExcluded =
#overwriteWidth = <?=round($scaleFactorX*4)?>
#overwriteHeight = <?=round($scaleFactorY*4)?>
[TextureRedefine]
width = 2
height = 1
#formatsExcluded =
overwriteWidth = <?=round($scaleFactorX*2)?>
overwriteHeight = <?=round($scaleFactorY*1)?>
#[TextureRedefine] #May unintentionally scale textures, check formatsExcluded
#width = 1
#height = 1
#formatsExcluded =
#overwriteWidth = <?=round($scaleFactorX*1)?>
#overwriteHeight = <?=round($scaleFactorY*1)?>

View File

@ -0,0 +1,90 @@
<?php
include 'Source/functions.php';
$fullWidth = $argv[1];
$fullHeight = $argv[2];
$scaleFactorX = $fullWidth / 1280.0;
$scaleFactorY = $fullHeight / 720.0;
$title = get_title($fullWidth, $fullHeight);
?>
[Definition]
titleIds = 0005000010175B00,0005000010177800,0005000010191F00
name = "Sonic Boom: Rise of Lyric - <?=$title?>"
version = 2
[TextureRedefine]
width = 1280
height = 720
tileModesExcluded = 0x001
overwriteWidth = <?=round($scaleFactorX*1280)?>
overwriteHeight = <?=round($scaleFactorY*720)?>
[TextureRedefine]
width = 854
height = 480
#formatsExcluded =
overwriteWidth = <?=round($scaleFactorX*1280)?>
overwriteHeight = <?=round($scaleFactorY*720)?>
[TextureRedefine]
width = 640
height = 360
tileModesExcluded = 0x001
overwriteWidth = <?=round($scaleFactorX*640)?>
overwriteHeight = <?=round($scaleFactorY*360)?>
[TextureRedefine]
width = 320
height = 180
#formatsExcluded =
overwriteWidth = <?=round($scaleFactorX*320)?>
overwriteHeight = <?=round($scaleFactorY*180)?>
#[TextureRedefine] #May unintentionally scale textures, check formatsExcluded
#width = 256
#height = 256
#formatsExcluded =
#overwriteWidth = <?=round($scaleFactorX*256)?>
#overwriteHeight = <?=round($scaleFactorY*256)?>
[TextureRedefine]
width = 160
height = 90
#formatsExcluded =
overwriteWidth = <?=round($scaleFactorX*160)?>
overwriteHeight = <?=round($scaleFactorY*90)?>
[TextureRedefine]
width = 80
height = 45
#formatsExcluded =
overwriteWidth = <?=round($scaleFactorX*80)?>
overwriteHeight = <?=round($scaleFactorY*45)?>
#[TextureRedefine] #May unintentionally scale textures, check formatsExcluded
#width = 64
#height = 64
#formatsExcluded =
#overwriteWidth = <?=round($scaleFactorX*64)?>
#overwriteHeight = <?=round($scaleFactorY*64)?>
#[TextureRedefine] #May unintentionally scale textures, check formatsExcluded
#width = 16
#height = 16
#formatsExcluded =
#overwriteWidth = <?=round($scaleFactorX*16)?>
#overwriteHeight = <?=round($scaleFactorY*16)?>
#[TextureRedefine] #May unintentionally scale textures, check formatsExcluded
#width = 4
#height = 4
#formatsExcluded =
#overwriteWidth = <?=round($scaleFactorX*4)?>
#overwriteHeight = <?=round($scaleFactorY*4)?>
#[TextureRedefine] #May unintentionally scale textures, check formatsExcluded
#width = 1
#height = 1
#formatsExcluded =
#overwriteWidth = <?=round($scaleFactorX*1)?>
#overwriteHeight = <?=round($scaleFactorY*1)?>

View File

@ -15,7 +15,7 @@ version = 2
[TextureRedefine] [TextureRedefine]
width = 1280 width = 1280
height = 720 height = 720
#formatsExcluded = tileModesExcluded = 0x001
overwriteWidth = <?=round($scaleFactorX*1280)?> overwriteWidth = <?=round($scaleFactorX*1280)?>
overwriteHeight = <?=round($scaleFactorY*720)?> overwriteHeight = <?=round($scaleFactorY*720)?>
@ -92,7 +92,7 @@ overwriteHeight = <?=round($scaleFactorY*720)?>
[TextureRedefine] [TextureRedefine]
width = 640 width = 640
height = 360 height = 360
#formatsExcluded = tileModesExcluded = 0x001
overwriteWidth = <?=round($scaleFactorX*640)?> overwriteWidth = <?=round($scaleFactorX*640)?>
overwriteHeight = <?=round($scaleFactorY*360)?> overwriteHeight = <?=round($scaleFactorY*360)?>

View File

@ -148,6 +148,7 @@ std_respack "KirbyRainbowCurse" "${res16by9[@]/$just720p}"
std_respack "KungFuPanda" "${res16by9[@]/$just720p}" std_respack "KungFuPanda" "${res16by9[@]/$just720p}"
std_respack "LEGOCityUndercover" "${res16by9[@]/$just720p}" std_respack "LEGOCityUndercover" "${res16by9[@]/$just720p}"
std_respack "MarioKart8" "${res16by9[@]/$just720p}" "${res21by9[@]}" "${res48by9[@]}" std_respack "MarioKart8" "${res16by9[@]/$just720p}" "${res21by9[@]}" "${res48by9[@]}"
std_respack "MarioSonicRio" "${res16by9[@]/$just720p}"
std_respack "MarioSonicSochi" "${res16by9[@]/$just720p}" std_respack "MarioSonicSochi" "${res16by9[@]/$just720p}"
std_respack "MarioTennis" "${res16by9[@]/$just720p}" std_respack "MarioTennis" "${res16by9[@]/$just720p}"
std_respack "MarioParty10" "${res16by9[@]/$just720p}" std_respack "MarioParty10" "${res16by9[@]/$just720p}"
@ -164,6 +165,7 @@ std_respack "Pikmin3" "${res16by9[@]/$just720p}"
std_respack "PokkenTournament" "${res16by9[@]/$just720p}" std_respack "PokkenTournament" "${res16by9[@]/$just720p}"
std_respack "ProjectZero" "${res16by9[@]/$just720p}" std_respack "ProjectZero" "${res16by9[@]/$just720p}"
std_respack "PuyoPuyoTetris" "${res16by9[@]/$just1080p}" std_respack "PuyoPuyoTetris" "${res16by9[@]/$just1080p}"
std_respack "RiseOfLyric" "${res16by9[@]/$just720p}"
std_respack "SanatoryHallways" "${res16by9[@]/$just720p}" std_respack "SanatoryHallways" "${res16by9[@]/$just720p}"
std_respack "ScribblenautsUnlimited" "${res16by9[@]/$just720p}" std_respack "ScribblenautsUnlimited" "${res16by9[@]/$just720p}"
std_respack "ScribblenautsUnmasked" "${res16by9[@]/$just720p}" std_respack "ScribblenautsUnmasked" "${res16by9[@]/$just720p}"