• R/O
  • SSH
  • HTTPS

gtaconfig: Commit


Commit MetaInfo

Revision24 (tree)
Time2019-02-19 20:06:37
Authorquiret

Log Message

- small fixes due to changed FileSystem API

Change Summary

Incremental Difference

--- src/csv.cpp (revision 23)
+++ src/csv.cpp (revision 24)
@@ -81,7 +81,7 @@
8181 while ( iter != items.end() )
8282 {
8383 const std::string& item = *iter;
84- m_file->Write( item.c_str(), 1, item.size() );
84+ m_file->Write( item.c_str(), item.size() );
8585
8686 iter++;
8787
@@ -112,7 +112,7 @@
112112 // Get a complete line, until a NULL termination appears, and check, how many seperation are in this line
113113 while (seek < 65536 && lastchr != 0 && lastchr != '\n' && lastchr != -1)
114114 {
115- if (!m_file->Read(&lastchr, 1, 1))
115+ if (!m_file->Read(&lastchr, 1))
116116 return false;
117117
118118 linebuff[seek] = lastchr;
--- src/ini.cpp (revision 23)
+++ src/ini.cpp (revision 24)
@@ -9,7 +9,7 @@
99
1010 char *buffer = (char*)malloc( streamSize + 1 );
1111
12- stream->Read( buffer, 1, streamSize );
12+ stream->Read( buffer, streamSize );
1313 buffer[ streamSize ] = 0;
1414
1515 CINI *config = new CINI(buffer);
Show on old repository browser