Fixed android cpu name

This commit is contained in:
TheDarkBug 2021-12-23 17:04:32 +01:00
parent a79e426218
commit 13a51a1588

View file

@ -965,7 +965,7 @@ struct info get_info()
while (fgets(buffer, sizeof(buffer), model_fp) && !sscanf(buffer, "%[^\n]", user_info.host_model)) while (fgets(buffer, sizeof(buffer), model_fp) && !sscanf(buffer, "%[^\n]", user_info.host_model))
; ;
#ifndef __FREEBSD__ #ifndef __FREEBSD__
while (fgets(buffer, sizeof(buffer), cpuinfo) && sscanf(buffer, "Hardware : %[^\n]", user_info.cpu_model)) while (fgets(buffer, sizeof(buffer), cpuinfo) && !sscanf(buffer, "Hardware : %[^\n]", user_info.cpu_model))
; ;
#endif #endif
} else if (library) { // Apple } else if (library) { // Apple
@ -1182,7 +1182,7 @@ struct info get_info()
sscanf(buffer, " Height: %d", &user_info.screen_height); sscanf(buffer, " Height: %d", &user_info.screen_height);
} }
#endif #endif
if (strcmp(user_info.os_name, "windows")) MOVE_CURSOR = "\033[21C"; // windows logo is slightly bigger if (strcmp(user_info.os_name, "windows")) MOVE_CURSOR = "\033[21C"; // to print windows logo on not windows systems
// package count // package count
#ifdef _WIN32 #ifdef _WIN32