2009-06-04 08:30:31 +00:00
|
|
|
/* ScummVM - Graphic Adventure Engine
|
|
|
|
*
|
|
|
|
* ScummVM is the legal property of its developers, whose names
|
|
|
|
* are too numerous to list here. Please refer to the COPYRIGHT
|
|
|
|
* 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.
|
2014-02-18 02:34:20 +01:00
|
|
|
*
|
2009-06-04 08:30:31 +00:00
|
|
|
* 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.
|
2014-02-18 02:34:20 +01:00
|
|
|
*
|
2009-06-04 08:30:31 +00:00
|
|
|
* 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-03-08 20:26:11 +00:00
|
|
|
#ifndef GPH_H
|
|
|
|
#define GPH_H
|
2009-06-04 08:30:31 +00:00
|
|
|
|
2011-04-11 18:22:58 +01:00
|
|
|
#if defined(GPH_DEVICE)
|
2009-06-04 08:30:31 +00:00
|
|
|
|
2011-03-08 20:26:11 +00:00
|
|
|
#include "backends/base-backend.h"
|
2012-07-29 21:04:53 +01:00
|
|
|
#include "backends/platform/sdl/sdl-sys.h"
|
2011-03-08 20:26:11 +00:00
|
|
|
#include "backends/platform/sdl/posix/posix.h"
|
|
|
|
#include "backends/events/gph/gph-events.h"
|
2011-05-08 22:43:09 +01:00
|
|
|
#include "backends/graphics/gph/gph-graphics.h"
|
2009-06-04 08:30:31 +00:00
|
|
|
|
2011-03-08 20:26:11 +00:00
|
|
|
class OSystem_GPH : public OSystem_POSIX {
|
2009-06-04 08:30:31 +00:00
|
|
|
public:
|
2011-05-08 22:43:09 +01:00
|
|
|
OSystem_GPH();
|
|
|
|
|
2009-06-04 08:30:31 +00:00
|
|
|
/* Platform Setup Stuff */
|
|
|
|
void addSysArchivesToSearchSet(Common::SearchSet &s, int priority);
|
|
|
|
void initBackend();
|
|
|
|
void quit();
|
2012-07-29 21:04:53 +01:00
|
|
|
|
|
|
|
protected:
|
|
|
|
bool _inited;
|
|
|
|
bool _initedSDL;
|
|
|
|
virtual void initSDL();
|
2019-11-03 22:48:37 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
Common::String getCurrentDirectory();
|
2009-06-04 08:30:31 +00:00
|
|
|
};
|
|
|
|
|
2011-03-08 20:26:11 +00:00
|
|
|
#endif
|
|
|
|
#endif //GPH_H
|