Code cleanup read framebuffers to memory mode 

Tested with Danganronpa , BOF3 , Ys Seven .