summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/abc80x.cpp
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2021-01-05 15:03:38 -0500
committer AJR <ajrhacker@users.noreply.github.com>2021-01-05 15:04:11 -0500
commitb75fade787cac00a6377052f40ecf0c84b9d4ceb (patch)
tree6cc32f7a78531ac03fed78a15ab8656b9c9700fc /src/mame/drivers/abc80x.cpp
parent17f0286d737f33a7b92aeeb1891865fb896487bc (diff)
Simplify snapshot/quickload callback parameters; remove some uses of auto_alloc_array
Diffstat (limited to 'src/mame/drivers/abc80x.cpp')
-rw-r--r--src/mame/drivers/abc80x.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/drivers/abc80x.cpp b/src/mame/drivers/abc80x.cpp
index dcac4e7164b..d61631795f6 100644
--- a/src/mame/drivers/abc80x.cpp
+++ b/src/mame/drivers/abc80x.cpp
@@ -971,8 +971,8 @@ QUICKLOAD_LOAD_MEMBER(abc800_state::quickload_cb)
{
address_space &space = m_maincpu->space(AS_PROGRAM);
- std::vector<uint8_t> data;
- data.resize(quickload_size);
+ size_t quickload_size = image.length();
+ std::vector<uint8_t> data(quickload_size);
image.fread(&data[0], quickload_size);
uint8_t prstat = data[2];