From 298abfb1280134a4def3dc30fab1530edcb64bb8 Mon Sep 17 00:00:00 2001 From: Random <28494085+Random06457@users.noreply.github.com> Date: Tue, 14 Apr 2020 01:03:10 +0200 Subject: Decompile z_jpeg.c (#70) * Decompile z_jpeg.c - Decompile z_jpeg.c - Move .bss variables from fault.c and fault_drawer.c into .s files to avoid bss reordering * Rename JPEGWork to JpegWork and minor fix in Jpeg_GetU16 --- src/code/graph.c | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'src/code/graph.c') diff --git a/src/code/graph.c b/src/code/graph.c index cd7f5fe2b..5e1d2563d 100644 --- a/src/code/graph.c +++ b/src/code/graph.c @@ -13,13 +13,19 @@ FaultClient sGraphFaultClient; CfbInfo sGraphCfbInfos[3]; FaultClient sGraphUcodeFaultClient; +// clang-format off UCodeInfo D_8012D230[3] = { - { 1, D_80155F50 }, { 2, NULL }, { 3, D_801120C0 + 0xFB0 }, // D_80113070 + { 1, D_80155F50 }, + { 2, NULL }, + { 3, D_80113070 }, }; UCodeInfo D_8012D248[3] = { - { 1, D_80155F50 }, { 2, NULL }, { 3, D_801120C0 + 0xFB0 }, // D_80113070 + { 1, D_80155F50 }, + { 2, NULL }, + { 3, D_80113070 }, }; +// clang-format on void Graph_FaultClient() { void* nextFb; @@ -208,9 +214,9 @@ void Graph_TaskSet00(GraphicsContext* gfxCtx) { task->type = M_GFXTASK; task->flags = OS_SC_DRAM_DLIST; task->ucode_boot = SysUcode_GetUCodeBoot(); - task->ucode_boot_size = SysUcode_GetUcodeBootSize(); - task->ucode = SysUcode_GetUcode(); - task->ucode_data = SysUcode_GetUcodeData(); + task->ucode_boot_size = SysUcode_GetUCodeBootSize(); + task->ucode = SysUcode_GetUCode(); + task->ucode_data = SysUcode_GetUCodeData(); task->ucode_size = 0x1000; task->ucode_data_size = 0x800; task->dram_stack = gGfxSPTaskStack; -- cgit v1.2.3