aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/simple_file.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/titanic/simple_file.h')
-rw-r--r--engines/titanic/simple_file.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/engines/titanic/simple_file.h b/engines/titanic/simple_file.h
index 17dd82a130..65b0ac6f31 100644
--- a/engines/titanic/simple_file.h
+++ b/engines/titanic/simple_file.h
@@ -100,12 +100,15 @@ public:
double readFloat();
/**
+ * Read a string and copy it into an optionally passed buffer
+ */
+ void readBuffer(char *buffer = nullptr, size_t count = 0);
+
+ /**
* Write a string line
*/
void writeLine(const CString &str);
-
-
/**
* Write a string
*/
@@ -117,6 +120,11 @@ public:
void writeQuotedString(const CString &str);
/**
+ * Write a quoted string line
+ */
+ void writeQuotedLine(const CString &str, int indent);
+
+ /**
* Write a number to file
*/
void writeNumber(int val);
@@ -134,9 +142,9 @@ public:
/**
* Validates that the following non-space character is either
* an opening or closing squiggly bracket denoting a class
- * definition start or end. Returns true if it's a class end
+ * definition start or end. Returns true if it's a class start
*/
- bool IsClassEnd();
+ bool IsClassStart();
/**
* Write the starting header for a class definition