1 /* ScummVM - Graphic Adventure Engine 2 * 3 * ScummVM is the legal property of its developers, whose names 4 * are too numerous to list here. Please refer to the COPYRIGHT 5 * file distributed with this source distribution. 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License 9 * as published by the Free Software Foundation; either version 2 10 * of the License, or (at your option) any later version. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20 * 21 */ 22 23 #ifndef PLATFORM_SDL_WIN32_H 24 #define PLATFORM_SDL_WIN32_H 25 26 #include "backends/platform/sdl/sdl.h" 27 #include "backends/platform/sdl/win32/win32-window.h" 28 29 class OSystem_Win32 : public OSystem_SDL { 30 public: 31 virtual void init(); 32 virtual void initBackend(); 33 34 virtual void addSysArchivesToSearchSet(Common::SearchSet &s, int priority = 0); 35 36 virtual bool hasFeature(Feature f); 37 38 virtual bool displayLogFile(); 39 40 virtual bool openUrl(const Common::String &url); 41 42 virtual void logMessage(LogMessageType::Type type, const char *message); 43 44 virtual Common::String getSystemLanguage() const; 45 46 virtual Common::String getScreenshotsPath(); 47 48 protected: 49 virtual Common::String getDefaultConfigFileName(); 50 virtual Common::String getDefaultLogFileName(); 51 52 // Override createAudioCDManager() to get our Mac-specific 53 // version. 54 virtual AudioCDManager *createAudioCDManager(); 55 getHwnd()56 HWND getHwnd() { return ((SdlWindow_Win32*)_window)->getHwnd(); } 57 58 virtual char *convertEncoding(const char *to, const char *from, const char *string, size_t length); 59 }; 60 61 #endif 62