Fixed the bugs related to the PS1 and PS2 emulator, along with making logging a bit nicer