aboutsummaryrefslogtreecommitdiff
path: root/engines/hugo/schedule.cpp
diff options
context:
space:
mode:
authorArnaud Boutonné2011-02-12 16:20:57 +0000
committerArnaud Boutonné2011-02-12 16:20:57 +0000
commitc846231af3ccf9a910c5cfd5276a38a2244e325d (patch)
tree9b8cdcaaae28fda4b0c0783ea0c53ae987324ca5 /engines/hugo/schedule.cpp
parent4ad7f20b77cd7239d43f1b2c61ea424d0d826ffa (diff)
downloadscummvm-rg350-c846231af3ccf9a910c5cfd5276a38a2244e325d.tar.gz
scummvm-rg350-c846231af3ccf9a910c5cfd5276a38a2244e325d.tar.bz2
scummvm-rg350-c846231af3ccf9a910c5cfd5276a38a2244e325d.zip
HUGO: Replace Common::File by Common::ReadStream in several functions
svn-id: r55897
Diffstat (limited to 'engines/hugo/schedule.cpp')
-rw-r--r--engines/hugo/schedule.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/hugo/schedule.cpp b/engines/hugo/schedule.cpp
index b31cab6819..b36ce70847 100644
--- a/engines/hugo/schedule.cpp
+++ b/engines/hugo/schedule.cpp
@@ -233,7 +233,7 @@ void Scheduler::waitForRefresh() {
/**
* Read kALnewscr used by maze (Hugo 2)
*/
-void Scheduler::loadAlNewscrIndex(Common::File &in) {
+void Scheduler::loadAlNewscrIndex(Common::ReadStream &in) {
debugC(6, kDebugSchedule, "loadAlNewscrIndex(&in)");
int numElem;
@@ -247,7 +247,7 @@ void Scheduler::loadAlNewscrIndex(Common::File &in) {
/**
* Load actListArr from Hugo.dat
*/
-void Scheduler::loadActListArr(Common::File &in) {
+void Scheduler::loadActListArr(Common::ReadStream &in) {
debugC(6, kDebugSchedule, "loadActListArr(&in)");
int numElem, numSubElem, numSubAct;
@@ -910,7 +910,7 @@ void Scheduler::saveEvents(Common::WriteStream *f) {
* Restore the action data from file with handle f
*/
-void Scheduler::restoreActions(Common::SeekableReadStream *f) {
+void Scheduler::restoreActions(Common::ReadStream *f) {
for (int i = 0; i < _actListArrSize; i++) {
@@ -982,7 +982,7 @@ void Scheduler::findAction(act* action, int16* index, int16* subElem) {
/**
* Restore the event list from file with handle f
*/
-void Scheduler::restoreEvents(Common::SeekableReadStream *f) {
+void Scheduler::restoreEvents(Common::ReadStream *f) {
debugC(1, kDebugSchedule, "restoreEvents");
event_t savedEvents[kMaxEvents]; // Convert event ptrs to indexes