BACKENDS: Add OSystem::getDefaultConfigFileName
This is used to provide default implementations for createConfigWriteStream and createConfigReadStream, which can be used by most backends. Note that backends can still override createConfigRead/WriteStream; this could be useful if settings on some port are not stored in a regular file (think 'Windows registry', for a hypothetical example).
This commit is contained in:
parent
afb06b51cc
commit
c847522422
16 changed files with 43 additions and 137 deletions
|
@ -246,20 +246,6 @@ void OSystem_SDL::addSysArchivesToSearchSet(Common::SearchSet &s, int priority)
|
|||
|
||||
}
|
||||
|
||||
Common::String OSystem_SDL::getDefaultConfigFileName() {
|
||||
return "scummvm.ini";
|
||||
}
|
||||
|
||||
Common::SeekableReadStream *OSystem_SDL::createConfigReadStream() {
|
||||
Common::FSNode file(getDefaultConfigFileName());
|
||||
return file.createReadStream();
|
||||
}
|
||||
|
||||
Common::WriteStream *OSystem_SDL::createConfigWriteStream() {
|
||||
Common::FSNode file(getDefaultConfigFileName());
|
||||
return file.createWriteStream();
|
||||
}
|
||||
|
||||
void OSystem_SDL::setWindowCaption(const char *caption) {
|
||||
Common::String cap;
|
||||
byte c;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue