diff options
author | 2016-09-24 09:54:20 -0400 | |
---|---|---|
committer | 2016-09-24 09:56:47 -0400 | |
commit | 5f3bb35b126e1e3323f31a748f6b027c8d866587 (patch) | |
tree | 3f6a3ee548fbfbd7d042c7b4e45cd5c15a292c17 /plugins/data/load_dat.lua | |
parent | bb8625f7feb2db0fbb9fd4b834cac2115e2b6dc4 (diff) |
Imgtool: Changed the read_sector apparatus to use std::vector
This also eliminated the need for get_sector_size
The asute reviewer will note that a side effect of this change is that in scenarios where we once returned IMGTOOLERR_OUTOFMEMORY, we now throw std::bad_alloc. This is deliberate. Having an error code for out of memory conditions no longer makes sense with MAME's embrace of the C++ way of doing things. It is highly likely that I will follow up this change with one that eliminates IMGTOOLERR_OUTOFMEMORY in favor of throwing std::bad_alloc.
This commit also fixes a recent regression in which we passed nullptr to an std::string ctor
Diffstat (limited to 'plugins/data/load_dat.lua')
0 files changed, 0 insertions, 0 deletions