project_files/HedgewarsMobile/Classes/CommodityFunctions.m
changeset 3996 eb549fd864a5
parent 3983 aa24192417a8
child 4098 40df542b5f62
equal deleted inserted replaced
3995:360332f8785f 3996:eb549fd864a5
   226     natural_t mem_total = mem_used + mem_free;
   226     natural_t mem_total = mem_used + mem_free;
   227     DLog(@"used: %u free: %u total: %u", mem_used, mem_free, mem_total);
   227     DLog(@"used: %u free: %u total: %u", mem_used, mem_free, mem_total);
   228 }
   228 }
   229 
   229 
   230 BOOL inline isApplePhone () {
   230 BOOL inline isApplePhone () {
   231     return (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone);
   231     return (IS_IPAD() == NO);
   232 }
   232 }
   233 
   233 
   234 NSString *modelType () {
   234 NSString *modelType () {
   235     size_t size;
   235     size_t size;
   236     // set 'oldp' parameter to NULL to get the size of the data returned so we can allocate appropriate amount of space
   236     // set 'oldp' parameter to NULL to get the size of the data returned so we can allocate appropriate amount of space