You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Merge pull request #65902 from MJacred/editor/copysysteminfo
Add an editor option to copy system info to clipboard
This commit is contained in:
@@ -182,7 +182,7 @@ String OS_Android::get_name() const {
|
||||
}
|
||||
|
||||
String OS_Android::get_system_property(const char *key) const {
|
||||
static String value;
|
||||
String value;
|
||||
char value_str[PROP_VALUE_MAX];
|
||||
if (__system_property_get(key, value_str)) {
|
||||
value = String(value_str);
|
||||
@@ -230,20 +230,20 @@ String OS_Android::get_version() const {
|
||||
"ro.potato.version", "ro.xtended.version", "org.evolution.version", "ro.corvus.version", "ro.pa.version",
|
||||
"ro.crdroid.version", "ro.syberia.version", "ro.arrow.version", "ro.lineage.version" };
|
||||
for (int i = 0; i < roms.size(); i++) {
|
||||
static String rom_version = get_system_property(roms[i]);
|
||||
String rom_version = get_system_property(roms[i]);
|
||||
if (!rom_version.is_empty()) {
|
||||
return rom_version;
|
||||
}
|
||||
}
|
||||
|
||||
static String mod_version = get_system_property("ro.modversion"); // Handles other Android custom ROMs.
|
||||
String mod_version = get_system_property("ro.modversion"); // Handles other Android custom ROMs.
|
||||
if (!mod_version.is_empty()) {
|
||||
return mod_version;
|
||||
}
|
||||
|
||||
// Handles stock Android.
|
||||
static String sdk_version = get_system_property("ro.build.version.sdk_int");
|
||||
static String build = get_system_property("ro.build.version.incremental");
|
||||
String sdk_version = get_system_property("ro.build.version.sdk_int");
|
||||
String build = get_system_property("ro.build.version.incremental");
|
||||
if (!sdk_version.is_empty()) {
|
||||
if (!build.is_empty()) {
|
||||
return vformat("%s.%s", sdk_version, build);
|
||||
|
||||
Reference in New Issue
Block a user