| 37 | } |
| 38 | |
| 39 | static Ref<Platform> Recognize(BinaryView* view, Metadata* metadata) |
| 40 | { |
| 41 | auto machoPlatform = metadata->Get("machoplatform"); |
| 42 | if (!machoPlatform || !machoPlatform->IsUnsignedInteger()) |
| 43 | return nullptr; |
| 44 | if (machoPlatform->GetUnsignedInteger() != 2) |
| 45 | return g_macX86; |
| 46 | |
| 47 | return nullptr; |
| 48 | } |
| 49 | }; |
| 50 | |
| 51 |
nothing calls this directly
no test coverage detected