Skip to content

Commit

Permalink
fix colors on GO
Browse files Browse the repository at this point in the history
  • Loading branch information
krazynez committed Apr 19, 2024
1 parent 8688106 commit bc69b27
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions loader/dc/vunbricker/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -344,9 +344,14 @@ int app_main()
sceKernelUtilsMd5Digest((u8 *)&tick, sizeof(u64), (u8 *)md5);
sceKernelUtilsMt19937Init(&ctx, md5[0] ^ md5[1] ^ md5[2] ^ md5[3]);
rnd = sceKernelUtilsMt19937UInt(&ctx) % 12;


void *data = ReadFileAllocEx("flash0:/vsh/resource/01-12.bmp", rnd*6176, 6176, NULL);

u32 model = kuKernelGetModel();
if ( model == 4 )
data = ReadFileAllocEx("flash0:/vsh/resource/01-12_03g.bmp", rnd*6176, 6176, NULL);

if (!data || vlfGuiSetBackgroundFileBuffer(data, 6176) < 0)
{
vlfGuiSetBackgroundPlane(0xFF000000);
Expand Down

0 comments on commit bc69b27

Please sign in to comment.