mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-16 02:30:19 +00:00
move cpu arch stuff to separate function
This commit is contained in:
@@ -647,6 +647,24 @@ get_mhz (void)
|
||||
return 0; /* fails on Win9x */
|
||||
}
|
||||
|
||||
int
|
||||
get_cpu_arch (void)
|
||||
{
|
||||
SYSTEM_INFO si;
|
||||
unsigned short int cpu_arch;
|
||||
|
||||
GetSystemInfo (&si);
|
||||
|
||||
if (si.wProcessorArchitecture == 9)
|
||||
{
|
||||
return 64;
|
||||
}
|
||||
else
|
||||
{
|
||||
return 86;
|
||||
}
|
||||
}
|
||||
|
||||
char *
|
||||
get_cpu_str (void)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user