Toolbox for analyzing and editing pkg application files for psp,ps3, ps4 and ps5, includes the most useful functions you might need.
| 1 | from Utilities.Logger import Logger |
| 2 | |
| 3 | |
| 4 | class bcolors: |
| 5 | HEADER = '\033[95m' |
| 6 | OKBLUE = '\033[94m' |
| 7 | OKCYAN = '\033[96m' |
| 8 | OKGREEN = '\033[92m' |
| 9 | WARNING = '\033[93m' |
| 10 | FAIL = '\033[91m' |
| 11 | ENDC = '\033[0m' |
| 12 | BOLD = '\033[1m' |
| 13 | UNDERLINE = '\033[4m' |
| 14 | |
| 15 | |
| 16 | def print_aligned(name: str, text: str, color: str = ''): |
| 17 | print(f"{name:>20} {color}{bcolors.BOLD}{text}{bcolors.ENDC}") |
| 18 |