This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
byte * FUN_0001bea4(undefined4 param_1,undefined4 param_2,byte *param_3, | |
uint param_4,ushort param_5) | |
{ | |
byte bVar1; | |
byte bVar2; | |
byte *pbVar3; | |
int iVar4; | |
ushort uVar5; | |
short sVar6; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var mainDataFile = @"C:\Dev\Projects\Gaming\CD-i\Disc Images\Extracted\BODYSLAM\data.rtr"; | |
var mainCdiFile = new CdiFile(mainDataFile); | |
var dataSectors = mainCdiFile.Sectors.Where(x => x.SubMode.IsData).OrderBy(x => x.Channel) | |
.ThenBy(x => x.SectorIndex).Select(x => x.GetSectorData()).ToList(); | |
var mainData = dataSectors.SelectMany(x => x).ToArray(); | |
File.WriteAllBytes(@"C:\Dev\Projects\Gaming\CD-i\Disc Images\Extracted\BODYSLAM\Output\mainData.bin", mainData); | |
var offsets = FileHelpers.FindSequenceOffsets(mainData, [0x43, 0x50, 0x4c, 0x32]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
byte * Decompress(undefined4 param_1,undefined4 param_2,byte *param_3, | |
uint param_4,ushort param_5) | |
{ | |
ushort uVar2; | |
uint uVar1; | |
int iVar3; | |
byte bVar4; | |
uint uVar5; |