project_files/HedgewarsMobile/Classes/CommodityFunctions.m
changeset 5994 3c578f531cc1
parent 5486 e75f7c3c6275
child 6000 dbcebcd3d79f
equal deleted inserted replaced
5993:412ada3d2041 5994:3c578f531cc1
    61     natural_t mem_total = mem_used + mem_free;
    61     natural_t mem_total = mem_used + mem_free;
    62     DLog(@"used: %u free: %u total: %u", mem_used, mem_free, mem_total);
    62     DLog(@"used: %u free: %u total: %u", mem_used, mem_free, mem_total);
    63 #endif
    63 #endif
    64 }
    64 }
    65 
    65 
    66 BOOL inline isApplePhone () {
       
    67     return (IS_IPAD() == NO);
       
    68 }
       
    69 
       
    70 NSString *getModelType () {
    66 NSString *getModelType () {
    71     size_t size;
    67     size_t size;
    72     // set 'oldp' parameter to NULL to get the size of the data returned so we can allocate appropriate amount of space
    68     // set 'oldp' parameter to NULL to get the size of the data returned so we can allocate appropriate amount of space
    73     sysctlbyname("hw.machine", NULL, &size, NULL, 0);
    69     sysctlbyname("hw.machine", NULL, &size, NULL, 0);
    74     char *name = (char *)malloc(sizeof(char) * size);
    70     char *name = (char *)malloc(sizeof(char) * size);