Mercurial > hg > xmms-sid
comparison src/xs_sidplayfp.cpp @ 876:d03e5c73eb51
Add ROM image loading.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 09 Nov 2012 05:13:29 +0200 |
parents | 3a9bf45178ff |
children | 5d26b869a48e |
comparison
equal
deleted
inserted
replaced
875:0fdb001e456c | 876:d03e5c73eb51 |
---|---|
45 class XSSIDPlayFP { | 45 class XSSIDPlayFP { |
46 public: | 46 public: |
47 #ifdef HAVE_SIDPLAYFP_V1 | 47 #ifdef HAVE_SIDPLAYFP_V1 |
48 sidplayfp emu; | 48 sidplayfp emu; |
49 SidConfig config; | 49 SidConfig config; |
50 guint8 *romImages[XS_C64_ROM_IMAGES]; | |
50 #else | 51 #else |
51 sidplay2 emu; | 52 sidplay2 emu; |
52 sid2_config_t config; | 53 sid2_config_t config; |
53 #endif | 54 #endif |
54 SidTune tune; | 55 SidTune tune; |
288 return FALSE; | 289 return FALSE; |
289 } | 290 } |
290 | 291 |
291 XSDEBUG("%s\n", engine->config.sidEmulation->credits()); | 292 XSDEBUG("%s\n", engine->config.sidEmulation->credits()); |
292 | 293 |
294 #ifdef HAVE_SIDPLAYFP_V1 | |
295 if (!xs_load_rom_images(engine->romImages)) | |
296 return FALSE; | |
297 | |
298 engine->emu.setRoms(engine->romImages[0], engine->romImages[1], engine->romImages[2]); | |
299 #endif | |
293 | 300 |
294 return TRUE; | 301 return TRUE; |
295 } | 302 } |
296 | 303 |
297 | 304 |