Skip to content

Commit

Permalink
Merge pull request #372 from fjtrujy/duplicatedColorElfLoader
Browse files Browse the repository at this point in the history
Improve colors in the ELF loader
  • Loading branch information
fjtrujy authored Dec 11, 2022
2 parents b5ccc1c + a8b653a commit 06569bc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ee/elf-loader/src/loader/src/loader.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,16 @@
#define SET_GS_BGCOLOUR(colour)
#endif

// Color status helper in BGR format
#define WHITE_BG 0xFFFFFF // start main
#define CYAN_BG 0xFFFF00 // proper argc count
#define RED_BG 0x0000FF // wrong argc count
#define GREEN_BG 0x00FF00 // before SifLoadELF
#define BLUE_BG 0xFF0000 // after SifLoadELF
#define YELLOW_BG 0x00FFFF // good SifLoadELF return
#define MAGENTA_BG 0xFF00FF // wrong SifLoadELF return
#define BROWN_BG 0x2A2AA5 // after reset IOP
#define ORANGE_BG 0x00A5FF // after reset IOP
#define BROWN_BG 0x2A2AA5 // before FlushCache
#define PURPBLE_BG 0x800080 // before ExecPS2


Expand Down Expand Up @@ -119,7 +121,7 @@ int main(int argc, char *argv[])
while(!SifIopReset(NULL, 0)){};
while (!SifIopSync()) {};

SET_GS_BGCOLOUR(RED_BG);
SET_GS_BGCOLOUR(ORANGE_BG);

SifInitRpc(0);
// Load modules.
Expand Down

0 comments on commit 06569bc

Please sign in to comment.