add "desktop" and "mobile" to PlatformID::getCovered

This commit is contained in:
HJfod 2024-09-09 22:52:18 +03:00
parent b66bcca2a6
commit 72cb957afd

View file

@ -49,6 +49,9 @@ bool PlatformID::coveredBy(std::string const& str, PlatformID t) {
std::vector<PlatformID> PlatformID::getCovered(std::string_view str) {
switch (hash(str)) {
case hash("desktop"): return { PlatformID::Windows, PlatformID::MacArm, PlatformID::MacIntel };
case hash("mobile"): return { PlatformID::iOS, PlatformID::Android32, PlatformID::Android64 };
case hash("win"): return { PlatformID::Windows };
case hash("mac"): return { PlatformID::MacIntel, PlatformID::MacArm };