mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-14 19:15:05 -05:00
add "desktop" and "mobile" to PlatformID::getCovered
This commit is contained in:
parent
b66bcca2a6
commit
72cb957afd
1 changed files with 3 additions and 0 deletions
|
@ -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 };
|
||||
|
|
Loading…
Reference in a new issue