use "\r\n" as newline for all platforms
This commit is contained in:
@@ -201,11 +201,13 @@ CString RageFile::GetLine()
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(_WIN32)
|
// Always use "\r\n". Even though the program may be running on Unix, the
|
||||||
|
// files written to a memory card are likely to be edited using Windows.
|
||||||
|
//#if defined(_WIN32)
|
||||||
#define NEWLINE "\r\n"
|
#define NEWLINE "\r\n"
|
||||||
#else
|
//#else
|
||||||
#define NEWLINE "\n"
|
//#define NEWLINE "\n"
|
||||||
#endif
|
//#endif
|
||||||
|
|
||||||
int RageFile::PutLine( const CString &str )
|
int RageFile::PutLine( const CString &str )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user