Rip out remainder of that old unmaintained dump code
This commit is contained in:
parent
08e5f6acc9
commit
84faf2f42e
7 changed files with 0 additions and 23 deletions
|
@ -292,10 +292,6 @@ struct core_core_params
|
|||
* Note: This value should not be changed while ROM is running, since video dumper may malfunction.
|
||||
*/
|
||||
std::pair<uint32_t, uint32_t> (*audio_rate)();
|
||||
/**
|
||||
* Get SNES CPU and SMP rates. If not SNES, this should be NULL.
|
||||
*/
|
||||
std::pair<uint32_t, uint32_t> (*snes_rate)();
|
||||
/**
|
||||
* Save all SRAMs.
|
||||
*/
|
||||
|
@ -440,7 +436,6 @@ struct core_core
|
|||
bool set_region(core_region& region);
|
||||
std::pair<uint32_t, uint32_t> get_video_rate();
|
||||
std::pair<uint32_t, uint32_t> get_audio_rate();
|
||||
std::pair<uint32_t, uint32_t> get_snes_rate(); //(0,0) for non-SNES.
|
||||
std::string get_core_identifier();
|
||||
std::map<std::string, std::vector<char>> save_sram() throw(std::bad_alloc);
|
||||
void load_sram(std::map<std::string, std::vector<char>>& sram) throw(std::bad_alloc);
|
||||
|
@ -490,7 +485,6 @@ private:
|
|||
bool (*_set_region)(core_region& region);
|
||||
std::pair<uint32_t, uint32_t> (*_video_rate)();
|
||||
std::pair<uint32_t, uint32_t> (*_audio_rate)();
|
||||
std::pair<uint32_t, uint32_t> (*_snes_rate)();
|
||||
std::map<std::string, std::vector<char>> (*_save_sram)() throw(std::bad_alloc);
|
||||
void (*_load_sram)(std::map<std::string, std::vector<char>>& sram) throw(std::bad_alloc);
|
||||
void (*_serialize)(std::vector<char>& out);
|
||||
|
@ -546,7 +540,6 @@ public:
|
|||
bool set_region(core_region& region) { return core->set_region(region); }
|
||||
std::pair<uint32_t, uint32_t> get_video_rate() { return core->get_video_rate(); }
|
||||
std::pair<uint32_t, uint32_t> get_audio_rate() { return core->get_audio_rate(); }
|
||||
std::pair<uint32_t, uint32_t> get_snes_rate() { return core->get_snes_rate(); }
|
||||
std::string get_core_identifier() { return core->get_core_identifier(); }
|
||||
std::string get_core_shortname() { return core->get_core_shortname(); }
|
||||
std::map<std::string, std::vector<char>> save_sram() throw(std::bad_alloc) { return core->save_sram(); }
|
||||
|
|
|
@ -65,7 +65,6 @@ namespace
|
|||
.set_region = [](core_region& reg) -> bool { return true; },
|
||||
.video_rate = []() -> std::pair<unsigned, unsigned> { return std::make_pair(60, 1); },
|
||||
.audio_rate = []() -> std::pair<unsigned, unsigned> { return std::make_pair(48000, 1); },
|
||||
.snes_rate = NULL,
|
||||
.save_sram = []() -> std::map<std::string, std::vector<char>> {
|
||||
std::map<std::string, std::vector<char>> x;
|
||||
return x;
|
||||
|
|
|
@ -691,9 +691,6 @@ namespace
|
|||
return std::make_pair(64081, 2);
|
||||
return std::make_pair(SNES::system.apu_frequency(), static_cast<uint32_t>(768));
|
||||
},
|
||||
.snes_rate = []() -> std::pair<uint32_t, uint32_t> {
|
||||
return std::make_pair(SNES::system.cpu_frequency(), SNES::system.apu_frequency());
|
||||
},
|
||||
.save_sram = []() -> std::map<std::string, std::vector<char>> {
|
||||
std::map<std::string, std::vector<char>> out;
|
||||
if(!internal_rom)
|
||||
|
|
|
@ -290,7 +290,6 @@ namespace
|
|||
.set_region = [](core_region& region) -> bool { return (®ion == ®ion_world); },
|
||||
.video_rate = []() -> std::pair<uint32_t, uint32_t> { return std::make_pair(262144, 4389); },
|
||||
.audio_rate = []() -> std::pair<uint32_t, uint32_t> { return std::make_pair(32768, 1); },
|
||||
.snes_rate = NULL,
|
||||
.save_sram = []() -> std::map<std::string, std::vector<char>> {
|
||||
std::map<std::string, std::vector<char>> s;
|
||||
if(!internal_rom)
|
||||
|
|
|
@ -243,7 +243,6 @@ namespace sky
|
|||
.set_region = [](core_region& region) -> bool { return (®ion == &world_region); },
|
||||
.video_rate = []() -> std::pair<uint32_t, uint32_t> { return std::make_pair(656250, 18227); },
|
||||
.audio_rate = []() -> std::pair<uint32_t, uint32_t> { return std::make_pair(48000, 1); },
|
||||
.snes_rate = []() -> std::pair<uint32_t, uint32_t> { return std::make_pair(0, 0); },
|
||||
.save_sram = []() -> std::map<std::string, std::vector<char>> {
|
||||
std::map<std::string, std::vector<char>> r;
|
||||
std::vector<char> sram;
|
||||
|
|
|
@ -132,7 +132,6 @@ namespace
|
|||
.set_region = [](core_region& region) -> bool { return (®ion == ®ion_world); },
|
||||
.video_rate = []() -> std::pair<uint32_t, uint32_t> { return std::make_pair(60, 1); },
|
||||
.audio_rate = []() -> std::pair<uint32_t, uint32_t> { return std::make_pair(48000, 1); },
|
||||
.snes_rate = NULL,
|
||||
.save_sram = []() -> std::map<std::string, std::vector<char>> {
|
||||
std::map<std::string, std::vector<char>> s;
|
||||
return s;
|
||||
|
|
|
@ -346,7 +346,6 @@ core_core::core_core(const core_core_params& params)
|
|||
_set_region = params.set_region;
|
||||
_video_rate = params.video_rate;
|
||||
_audio_rate = params.audio_rate;
|
||||
_snes_rate = params.snes_rate;
|
||||
_save_sram = params.save_sram;
|
||||
_load_sram = params.load_sram;
|
||||
_serialize = params.serialize;
|
||||
|
@ -403,14 +402,6 @@ std::pair<uint32_t, uint32_t> core_core::get_audio_rate()
|
|||
return _audio_rate();
|
||||
}
|
||||
|
||||
std::pair<uint32_t, uint32_t> core_core::get_snes_rate()
|
||||
{
|
||||
if(_snes_rate)
|
||||
return _snes_rate();
|
||||
else
|
||||
return std::make_pair(0, 0);
|
||||
}
|
||||
|
||||
std::string core_core::get_core_identifier()
|
||||
{
|
||||
return _core_identifier();
|
||||
|
|
Loading…
Add table
Reference in a new issue