[Scummvm-devel] File handling revamp

Torbjörn Andersson eriktorbjorn at telia.com
Fri Aug 1 13:09:55 CEST 2008

Max Horn wrote:

> Fine by me. So, how do we determine what native line breaks are?
>  #if WINDOWS
>    stream.writeByte('\r');
>  #else
>    stream.writeByte('\n');
>  #endif

I don't know if stream.writeString("\n") would do the trick. Aquadran
mentioned something about it not working, because of something in the
String class. In that case, perhaps we to do some #if/#ifdef like that
after all, but in that case we should perhaps add a separate function
for it in the stream class?


More information about the Scummvm-devel mailing list