Skip to content

Commit

Permalink
add "desktop" and "mobile" to PlatformID::getCovered
Browse files Browse the repository at this point in the history
  • Loading branch information
HJfod committed Sep 9, 2024
1 parent b66bcca commit 72cb957
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions loader/src/utils/PlatformID.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down

0 comments on commit 72cb957

Please sign in to comment.