Files
discord-decomp/modules/activities/native/doesOrientationMatchLockState.tsx
T
2026-11-01 12:12:55 +02:00

17 lines
418 B
TypeScript

// Metro module 10658 (f10659).
import { OrientationLockState } from "../Constants";
export default function doesOrientationMatchLockState(a0, a1) {
let r2 = a1 == null || a1 === OrientationLockState.UNLOCKED;
let r8 = a0;
if (!r2) {
r2 = a0 ? !a0 : a1 === OrientationLockState.PORTRAIT;
}
if (!r2) {
if (a0) {
r8 = a1 === OrientationLockState.LANDSCAPE;
}
r2 = r8;
}
return r2;
};