Files
discord-decomp/_bundle/Module4827.js
T
2026-11-01 12:12:55 +02:00

29 lines
810 B
JavaScript

// Metro module 4827 (f4828).
function $mk75042() {
return (a0) => String.fromCharCode(a0);
}
export function getStringValue(a0) {
return a0.map($mk75042()).join("");
}
export function getEncodedString(a0) {
if (a0.length >= 8) {
const r12 = a0.slice(0, 8).map($mk75042()).join("");
if (r12 === "ASCII\x00\x00\x00") {
return a0.slice(8).map($mk75042()).join("");
}
if (r12 === "JIS\x00\x00\x00\x00\x00") {
return "[JIS encoded text]";
}
if (r12 === "UNICODE\x00") {
return "[Unicode encoded text]";
}
if (r12 === "\x00\x00\x00\x00\x00\x00\x00\x00") {
return "[Undefined encoding]";
}
}
return "Undefined";
}
export function getCalculatedGpsValue(a0) {
return a0[0][0] / a0[0][1] + a0[1][0] / a0[1][1] / 60 + a0[2][0] / a0[2][1] / 3600;
}