mirror of
https://github.com/Karmaz95/Snake_Apple.git
synced 2026-03-30 14:00:16 +02:00
26 lines
802 B
C
26 lines
802 B
C
#include <stdbool.h>
|
|
#include <stdio.h>
|
|
|
|
int rosetta_dyld_is_translated(bool *is_translated);
|
|
|
|
// Pseudo implementation of SyscallDelegate::isTranslated
|
|
bool isTranslated() {
|
|
bool is_translated = false;
|
|
if (rosetta_dyld_is_translated(&is_translated) == 0) {
|
|
return is_translated;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
// Mock implementation of rosetta_dyld_is_translated for demonstration purposes
|
|
// This function always sets is_translated to true using pointer - for the sake of the example
|
|
int rosetta_dyld_is_translated(bool *is_translated) {
|
|
*is_translated = true; // Simulated behavior: always set is_translated to true
|
|
return 0; // Return success
|
|
}
|
|
|
|
int main() {
|
|
bool translated = isTranslated();
|
|
printf("Is translated: %s\n", translated ? "true" : "false");
|
|
return 0;
|
|
} |