comparison sms.c @ 1326:071e761bcdcf

Fix a deficiency in the way types were handled in my ternary tree. Fixes in which some paths that were constructed from a template with variables would sometimes get an extra garbage character thrown in
author Michael Pavone <pavone@retrodev.com>
date Fri, 21 Apr 2017 23:35:32 -0700
parents 5ee6b6345ea9
children 5b20840711c1
comparison
equal deleted inserted replaced
1325:58bfbed6cdb5 1326:071e761bcdcf
322 sms->bank_regs[1] = 0; 322 sms->bank_regs[1] = 0;
323 sms->bank_regs[2] = 0x4000 >> 14; 323 sms->bank_regs[2] = 0x4000 >> 14;
324 sms->bank_regs[3] = 0x8000 >> 14; 324 sms->bank_regs[3] = 0x8000 >> 14;
325 } 325 }
326 326
327 char * lowpass_cutoff_str = tern_find_path(config, "audio\0lowpass_cutoff\0").ptrval; 327 char * lowpass_cutoff_str = tern_find_path(config, "audio\0lowpass_cutoff\0", TVAL_PTR).ptrval;
328 uint32_t lowpass_cutoff = lowpass_cutoff_str ? atoi(lowpass_cutoff_str) : 3390; 328 uint32_t lowpass_cutoff = lowpass_cutoff_str ? atoi(lowpass_cutoff_str) : 3390;
329 329
330 //TODO: Detect region and pick master clock based off of that 330 //TODO: Detect region and pick master clock based off of that
331 sms->normal_clock = sms->master_clock = 53693175; 331 sms->normal_clock = sms->master_clock = 53693175;
332 332