Changed SaveFileManager methods to take Common::String params (instead of char pointers)

svn-id: r41000
This commit is contained in:
Max Horn 2009-05-29 14:38:22 +00:00
parent 518e005ec2
commit fb79b18571
43 changed files with 170 additions and 168 deletions

View file

@ -1756,7 +1756,7 @@ void ScummEngine_v5::o5_roomOps() {
error("SO_SAVE_STRING: Unsupported filename %s\n", filename.c_str());
}
Common::OutSaveFile *file = _saveFileMan->openForSaving(filename.c_str());
Common::OutSaveFile *file = _saveFileMan->openForSaving(filename);
if (file != NULL) {
byte *ptr;
ptr = getResourceAddress(rtString, a);
@ -1781,7 +1781,7 @@ void ScummEngine_v5::o5_roomOps() {
error("SO_LOAD_STRING: Unsupported filename %s\n", filename.c_str());
}
Common::InSaveFile *file = _saveFileMan->openForLoading(filename.c_str());
Common::InSaveFile *file = _saveFileMan->openForLoading(filename);
if (file != NULL) {
byte *ptr;
int len = 256, cnt = 0;