Commit 3906fe75 authored by LoveSy's avatar LoveSy Committed by John Wu

Clean up code

parent 2497e548
......@@ -153,12 +153,7 @@ static bool file_getprop(const char *name, char *value) {
}
static bool check_pb() {
static bool checked = false;
static bool use_pb = false;
if (!checked) {
checked = true;
use_pb = access(PERSISTENT_PROPERTY_DIR "/persistent_properties", R_OK) == 0;
}
static bool use_pb = access(PERSISTENT_PROPERTY_DIR "/persistent_properties", R_OK) == 0;
return use_pb;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment