comparison libblastem.c @ 1842:49f65d240299 mame_interp

Merge from default
author Michael Pavone <pavone@retrodev.com>
date Sun, 14 Apr 2019 23:38:02 -0700
parents 8500bd987dda
children 96323d73b8ab
comparison
equal deleted inserted replaced
1787:0c6d07f91346 1842:49f65d240299
67 } 67 }
68 68
69 RETRO_API void retro_get_system_info(struct retro_system_info *info) 69 RETRO_API void retro_get_system_info(struct retro_system_info *info)
70 { 70 {
71 info->library_name = "BlastEm"; 71 info->library_name = "BlastEm";
72 info->library_version = "0.6.2-pre"; //TODO: share this with blastem.c 72 info->library_version = "0.6.3-pre"; //TODO: share this with blastem.c
73 info->valid_extensions = "md|gen|sms|bin|rom"; 73 info->valid_extensions = "md|gen|sms|bin|rom";
74 info->need_fullpath = 0; 74 info->need_fullpath = 0;
75 info->block_extract = 0; 75 info->block_extract = 0;
76 } 76 }
77 77
280 } 280 }
281 281
282 void render_set_video_standard(vid_std std) 282 void render_set_video_standard(vid_std std)
283 { 283 {
284 video_standard = std; 284 video_standard = std;
285 }
286
287 int render_fullscreen(void)
288 {
289 return 1;
285 } 290 }
286 291
287 void process_events() 292 void process_events()
288 { 293 {
289 static int16_t prev_state[2][RETRO_DEVICE_ID_JOYPAD_L2]; 294 static int16_t prev_state[2][RETRO_DEVICE_ID_JOYPAD_L2];
339 344
340 void render_audio_adjust_clock(audio_source *src, uint64_t master_clock, uint64_t sample_divider) 345 void render_audio_adjust_clock(audio_source *src, uint64_t master_clock, uint64_t sample_divider)
341 { 346 {
342 } 347 }
343 348
349 void render_audio_source_gaindb(audio_source *src, float gain)
350 {
351 //TODO: Implement this once I hook up a core option for individual FM/PSG gain
352 }
353
344 static void check_put_sample(void) 354 static void check_put_sample(void)
345 { 355 {
346 for (int i = 0; i < num_audio_sources; i++) 356 for (int i = 0; i < num_audio_sources; i++)
347 { 357 {
348 int32_t min_samples = audio_sources[i]->freq / 53267; 358 int32_t min_samples = audio_sources[i]->freq / 53267;
390 } 400 }
391 401
392 void bindings_set_mouse_mode(uint8_t mode) 402 void bindings_set_mouse_mode(uint8_t mode)
393 { 403 {
394 } 404 }
405
406 extern const char rom_db_data[];
407 char *read_bundled_file(char *name, uint32_t *sizeret)
408 {
409 if (!strcmp(name, "rom.db")) {
410 *sizeret = strlen(rom_db_data);
411 char *ret = malloc(*sizeret+1);
412 memcpy(ret, rom_db_data, *sizeret + 1);
413 return ret;
414 }
415 return NULL;
416 }