2014-10-14 13:11:37 +00:00
|
|
|
/*
|
|
|
|
* This file is part of the Colobot: Gold Edition source code
|
2020-07-07 08:19:36 +00:00
|
|
|
* Copyright (C) 2001-2020, Daniel Roux, EPSITEC SA & TerranovaTeam
|
2015-08-22 14:40:02 +00:00
|
|
|
* http://epsitec.ch; http://colobot.info; http://github.com/colobot
|
2014-10-14 13:11:37 +00:00
|
|
|
*
|
|
|
|
* 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 3 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, see http://gnu.org/licenses
|
|
|
|
*/
|
2013-10-30 16:27:05 +00:00
|
|
|
|
|
|
|
/**
|
2016-07-24 12:38:49 +00:00
|
|
|
* \file common/system/system_macosx.h
|
2013-10-30 16:27:05 +00:00
|
|
|
* \brief MacOSX-specific implementation of system functions
|
|
|
|
*/
|
|
|
|
|
2016-07-24 12:38:49 +00:00
|
|
|
#include "common/system/system.h"
|
|
|
|
#include "common/system/system_other.h"
|
2013-10-30 16:27:05 +00:00
|
|
|
|
2015-09-29 19:35:29 +00:00
|
|
|
//@colobot-lint-exclude UndefinedFunctionRule
|
|
|
|
|
2013-10-30 16:27:05 +00:00
|
|
|
class CSystemUtilsMacOSX : public CSystemUtilsOther
|
|
|
|
{
|
|
|
|
public:
|
2015-08-17 19:53:28 +00:00
|
|
|
void Init() override;
|
2013-10-30 16:27:05 +00:00
|
|
|
|
2015-08-17 19:53:28 +00:00
|
|
|
std::string GetDataPath() override;
|
|
|
|
std::string GetLangPath() override;
|
|
|
|
std::string GetSaveDir() override;
|
2015-04-27 16:35:41 +00:00
|
|
|
|
2020-04-05 11:24:45 +00:00
|
|
|
std::string GetEnvVar(const std::string& name) override;
|
2020-04-03 18:15:24 +00:00
|
|
|
|
2020-07-17 15:27:09 +00:00
|
|
|
bool OpenPath(const std::string& path) override;
|
|
|
|
bool OpenWebsite(const std::string& url) override;
|
2019-07-27 14:59:51 +00:00
|
|
|
|
2015-08-17 19:53:28 +00:00
|
|
|
void Usleep(int usec) override;
|
2015-04-27 16:35:41 +00:00
|
|
|
|
2013-10-30 16:27:05 +00:00
|
|
|
private:
|
|
|
|
std::string m_ASPath;
|
2013-11-08 09:41:50 +00:00
|
|
|
std::string m_dataPath;
|
2013-10-30 16:27:05 +00:00
|
|
|
};
|
|
|
|
|
2015-09-29 19:35:29 +00:00
|
|
|
//@end-colobot-lint-exclude
|