mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2026-07-22 14:40:53 +00:00
Remove restricted region
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
Copyright (C) 2024 BeamMP Ltd., BeamMP team and contributors.
|
||||
Licensed under AGPL-3.0 (or later), see <https://www.gnu.org/licenses/>.
|
||||
SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <vector>
|
||||
#include <string>
|
||||
#include <array>
|
||||
|
||||
class RegionHandler final {
|
||||
public:
|
||||
RegionHandler() = delete;
|
||||
static void TopLevelDomainFailed(bool failed);
|
||||
static std::string RegionToTopLevelDomain(const std::string region);
|
||||
private:
|
||||
static inline unsigned int mRegionIndex { 0 };
|
||||
const static inline std::array<std::string, 2> mValidTLDs {"beammp.com", "beammp.ru"};
|
||||
};
|
||||
Reference in New Issue
Block a user