NDS: Cleanup of the file I/O code
|Reported by:||fingolfin||Owned by:||agent-q|
The attached patch represents a first step to cleaning up the Nintendo DS port's file/FS code. It moves the stdio emulation code into its own Common::Stream subclass. Based on that, it should be possible to (a) simplify this stream emulation code, (b) make it actually more compliant with std I/O behavior (which might fix the one or other obscure bug in the NDS port?), and (c) would allow to cleanup the rest of the NDS port nicely.
Ticket imported from: #2594629. Ticket imported from: patches/1057.