scummvm/backends/platform/sdl/posix/posix.h

65 lines
2 KiB
C
Raw Normal View History

2011-04-16 14:08:33 +02:00
/* ScummVM - Graphic Adventure Engine
2009-10-04 10:21:50 +00:00
*
2011-04-16 14:08:33 +02:00
* ScummVM is the legal property of its developers, whose names
* are too numerous to list here. Please refer to the COPYRIGHT
2009-10-04 10:21:50 +00:00
* file distributed with this source distribution.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
*/
2011-04-14 12:41:26 +02:00
#ifndef PLATFORM_SDL_POSIX_H
#define PLATFORM_SDL_POSIX_H
2009-10-04 10:21:50 +00:00
2011-04-14 12:41:26 +02:00
#include "backends/platform/sdl/sdl.h"
2009-10-04 10:21:50 +00:00
2011-04-14 12:41:26 +02:00
class OSystem_POSIX : public OSystem_SDL {
public:
// Let the subclasses be able to change _baseConfigName in the constructor
2012-01-27 13:43:37 +01:00
OSystem_POSIX(Common::String baseConfigName = ".residualvmrc");
2011-04-14 12:41:26 +02:00
virtual ~OSystem_POSIX() {}
2011-06-09 11:17:15 +02:00
virtual bool hasFeature(Feature f);
virtual bool displayLogFile();
2011-04-14 12:41:26 +02:00
virtual void init();
virtual void initBackend();
2009-10-04 10:21:50 +00:00
protected:
2011-06-09 11:17:15 +02:00
/**
* Base string for creating the default path and filename for the
* configuration file. This allows the Mac OS X subclass to override
* the config file path and name.
*/
2011-04-14 12:41:26 +02:00
Common::String _baseConfigName;
2009-10-04 10:21:50 +00:00
2011-06-09 11:17:15 +02:00
/**
* The path of the currently open log file, if any.
*
* @note This is currently a string and not an FSNode for simplicity;
* e.g. we don't need to include fs.h here, and currently the
* only use of this value is to use it to open the log file in an
* editor; for that, we need it only as a string anyway.
*/
Common::String _logFilePath;
2011-04-14 12:41:26 +02:00
virtual Common::String getDefaultConfigFileName();
2009-10-04 10:21:50 +00:00
2011-04-14 12:41:26 +02:00
virtual Common::WriteStream *createLogFile();
};
2009-10-04 10:21:50 +00:00
#endif