int function1() { char buffer[512]; sceIdStorageReadLeaf(0x0050, buffer); If (buffer[0] == 0x09) return 0; else return 1; } int main() { if(!function1()) { printf("Success"); sceKernelExitGame(); return 0; }