2010-06-20 22:45:09 +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:24 +01:00
|
|
|
*
|
2010-06-20 22:45:09 +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:24 +01:00
|
|
|
*
|
2010-06-20 22:45:09 +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.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2010-06-24 19:05:59 +00:00
|
|
|
#ifndef PLATFORM_SDL_WIN32_H
|
|
|
|
#define PLATFORM_SDL_WIN32_H
|
2010-06-20 22:45:09 +00:00
|
|
|
|
|
|
|
#include "backends/platform/sdl/sdl.h"
|
2019-06-24 21:32:45 +02:00
|
|
|
#include "backends/platform/sdl/win32/win32-window.h"
|
2010-06-20 22:45:09 +00:00
|
|
|
|
2020-10-16 18:32:08 +01:00
|
|
|
class OSystem_Win32 final : public OSystem_SDL {
|
2010-06-20 22:45:09 +00:00
|
|
|
public:
|
2020-10-16 18:32:08 +01:00
|
|
|
virtual void init() override;
|
|
|
|
virtual void initBackend() override;
|
2010-06-24 17:37:09 +00:00
|
|
|
|
2020-10-16 18:32:08 +01:00
|
|
|
virtual void addSysArchivesToSearchSet(Common::SearchSet &s, int priority = 0) override;
|
2011-06-04 14:26:37 -04:00
|
|
|
|
2020-10-16 18:32:08 +01:00
|
|
|
virtual bool hasFeature(Feature f) override;
|
2011-06-04 14:26:37 -04:00
|
|
|
|
2020-10-16 18:32:08 +01:00
|
|
|
virtual bool displayLogFile() override;
|
2011-06-04 14:26:37 -04:00
|
|
|
|
2020-10-16 18:32:08 +01:00
|
|
|
virtual bool openUrl(const Common::String &url) override;
|
2016-09-09 23:51:40 +01:00
|
|
|
|
2020-10-16 18:32:08 +01:00
|
|
|
virtual void logMessage(LogMessageType::Type type, const char *message) override;
|
2018-05-27 22:24:55 +01:00
|
|
|
|
2020-10-16 18:32:08 +01:00
|
|
|
virtual Common::String getSystemLanguage() const override;
|
2018-05-27 22:14:06 +01:00
|
|
|
|
2020-10-16 18:32:08 +01:00
|
|
|
virtual Common::String getScreenshotsPath() override;
|
2017-03-24 22:25:46 +01:00
|
|
|
|
2010-06-20 22:45:09 +00:00
|
|
|
protected:
|
2020-10-16 18:32:08 +01:00
|
|
|
virtual Common::String getDefaultConfigFileName() override;
|
|
|
|
virtual Common::String getDefaultLogFileName() override;
|
2015-09-29 17:47:57 -04:00
|
|
|
|
2019-10-05 21:58:44 +01:00
|
|
|
// Override createAudioCDManager() to get our Windows-specific
|
2015-09-29 17:47:57 -04:00
|
|
|
// version.
|
2020-10-16 18:32:08 +01:00
|
|
|
virtual AudioCDManager *createAudioCDManager() override;
|
2021-05-04 11:45:03 +03:00
|
|
|
|
2019-06-24 21:32:45 +02:00
|
|
|
HWND getHwnd() { return ((SdlWindow_Win32*)_window)->getHwnd(); }
|
2010-06-20 22:45:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|