From a77adf33c78b888f3d7ea9ac476f79c8717c7281 Mon Sep 17 00:00:00 2001 From: AJR Date: Mon, 16 Aug 2021 14:04:29 -0400 Subject: dvmemory: Substitute strongly typed enum for magic numbers specifying data format --- src/osd/modules/debugger/debugimgui.cpp | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'src/osd/modules/debugger/debugimgui.cpp') diff --git a/src/osd/modules/debugger/debugimgui.cpp b/src/osd/modules/debugger/debugimgui.cpp index 23cc8ef66ba..8fe382a8d72 100644 --- a/src/osd/modules/debugger/debugimgui.cpp +++ b/src/osd/modules/debugger/debugimgui.cpp @@ -844,23 +844,23 @@ void debug_imgui::draw_memory(debug_area* view_ptr, bool* opened) auto* mem = downcast(view_ptr->view); bool physical = mem->physical(); bool rev = mem->reverse(); - int format = mem->get_data_format(); + debug_view_memory::data_format format = mem->get_data_format(); uint32_t chunks = mem->chunks_per_row(); - if(ImGui::MenuItem("1-byte chunks", nullptr,(format == 1) ? true : false)) - mem->set_data_format(1); - if(ImGui::MenuItem("2-byte chunks", nullptr,(format == 2) ? true : false)) - mem->set_data_format(2); - if(ImGui::MenuItem("4-byte chunks", nullptr,(format == 4) ? true : false)) - mem->set_data_format(4); - if(ImGui::MenuItem("8-byte chunks", nullptr,(format == 8) ? true : false)) - mem->set_data_format(8); - if(ImGui::MenuItem("32-bit floating point", nullptr,(format == 9) ? true : false)) - mem->set_data_format(9); - if(ImGui::MenuItem("64-bit floating point", nullptr,(format == 10) ? true : false)) - mem->set_data_format(10); - if(ImGui::MenuItem("80-bit floating point", nullptr,(format == 11) ? true : false)) - mem->set_data_format(11); + if(ImGui::MenuItem("1-byte chunks", nullptr,(format == debug_view_memory::data_format::HEX_8BIT) ? true : false)) + mem->set_data_format(debug_view_memory::data_format::HEX_8BIT); + if(ImGui::MenuItem("2-byte chunks", nullptr,(format == debug_view_memory::data_format::HEX_16BIT) ? true : false)) + mem->set_data_format(debug_view_memory::data_format::HEX_16BIT); + if(ImGui::MenuItem("4-byte chunks", nullptr,(format == debug_view_memory::data_format::HEX_32BIT) ? true : false)) + mem->set_data_format(debug_view_memory::data_format::HEX_32BIT); + if(ImGui::MenuItem("8-byte chunks", nullptr,(format == debug_view_memory::data_format::HEX_64BIT) ? true : false)) + mem->set_data_format(debug_view_memory::data_format::HEX_64BIT); + if(ImGui::MenuItem("32-bit floating point", nullptr,(format == debug_view_memory::data_format::FLOAT_32BIT) ? true : false)) + mem->set_data_format(debug_view_memory::data_format::FLOAT_32BIT); + if(ImGui::MenuItem("64-bit floating point", nullptr,(format == debug_view_memory::data_format::FLOAT_64BIT) ? true : false)) + mem->set_data_format(debug_view_memory::data_format::FLOAT_64BIT); + if(ImGui::MenuItem("80-bit floating point", nullptr,(format == debug_view_memory::data_format::FLOAT_80BIT) ? true : false)) + mem->set_data_format(debug_view_memory::data_format::FLOAT_80BIT); ImGui::Separator(); if(ImGui::MenuItem("Logical addresses", nullptr,!physical)) mem->set_physical(false); -- cgit v1.2.3 From 94664102484edb96ac81f8613b096cb11cdeb6ab Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Sun, 22 Aug 2021 08:09:29 +1000 Subject: srcclean for upcoming release --- hash/cd32.xml | 20 +-- hash/fm7_cass.xml | 10 +- hash/ibm5170_cdrom.xml | 4 +- hash/nes.xml | 32 ++--- hash/pc98.xml | 2 +- hash/specpls3_flop.xml | 2 +- hash/spectrum_cass.xml | 6 +- hash/timex_cass.xml | 4 +- makefile | 2 + src/devices/bus/apricot/video/mono.cpp | 8 +- src/devices/bus/apricot/video/video.cpp | 2 +- src/devices/bus/nes/mmc3_clones.cpp | 242 ++++++++++++++++---------------- src/devices/bus/nes/mmc3_clones.h | 26 ++-- src/devices/bus/nes/multigame.cpp | 2 +- src/devices/bus/nes/multigame.h | 2 +- src/devices/bus/nes/nes_slot.h | 8 +- src/devices/bus/nes/sachen.cpp | 2 +- src/devices/cpu/f2mc16/f2mc16.cpp | 2 +- src/devices/cpu/rsp/rsp.cpp | 48 +++---- src/mame/audio/wiping.cpp | 10 +- src/mame/drivers/apxen.cpp | 30 ++-- src/mame/drivers/clshroad.cpp | 6 +- src/mame/drivers/gfamily.cpp | 2 +- src/mame/drivers/miniguay.cpp | 2 +- src/mame/drivers/missbamby.cpp | 4 +- src/mame/drivers/pwp14.cpp | 24 ++-- src/mame/drivers/taitopjc.cpp | 8 +- src/mame/drivers/vsmileb.cpp | 22 +-- src/mame/includes/gp32.h | 2 +- src/mame/machine/apple2common.cpp | 2 +- src/mame/video/n64.cpp | 26 ++-- src/mame/video/n64types.h | 2 +- src/mame/video/pc9801.cpp | 6 +- src/osd/modules/debugger/debugimgui.cpp | 4 +- 34 files changed, 288 insertions(+), 286 deletions(-) (limited to 'src/osd/modules/debugger/debugimgui.cpp') diff --git a/hash/cd32.xml b/hash/cd32.xml index 1e021600bab..8db63de2626 100644 --- a/hash/cd32.xml +++ b/hash/cd32.xml @@ -1753,16 +1753,16 @@ license:CC0 - Superfrog (Rev 1) - 1999 - Islona - - - - - - - + Superfrog (Rev 1) + 1999 + Islona + + + + + + + diff --git a/hash/fm7_cass.xml b/hash/fm7_cass.xml index 9e0f48bf684..d00b0488762 100644 --- a/hash/fm7_cass.xml +++ b/hash/fm7_cass.xml @@ -142,7 +142,7 @@ Titles, serial #s, publishers and release dates taken from: - + Biotek 1983 @@ -156,7 +156,7 @@ Titles, serial #s, publishers and release dates taken from: - + The Black Onyx 1985 @@ -604,7 +604,7 @@ Titles, serial #s, publishers and release dates taken from: - + Elevator Game 19?? @@ -616,7 +616,7 @@ Titles, serial #s, publishers and release dates taken from: - + Enterprise 1983 @@ -2480,7 +2480,7 @@ Titles, serial #s, publishers and release dates taken from: - + Zaiko Kanri 1981 diff --git a/hash/ibm5170_cdrom.xml b/hash/ibm5170_cdrom.xml index 4981a589b8f..f5d48a16cfe 100644 --- a/hash/ibm5170_cdrom.xml +++ b/hash/ibm5170_cdrom.xml @@ -2121,7 +2121,7 @@ license:CC0 - + @@ -2445,7 +2445,7 @@ license:CC0 - + diff --git a/hash/nes.xml b/hash/nes.xml index 69c2e9de303..1ffd1a9574d 100644 --- a/hash/nes.xml +++ b/hash/nes.xml @@ -54081,22 +54081,22 @@ preliminary proto for the PAL version, still running on NTSC systems) or the gfx diff --git a/hash/pc98.xml b/hash/pc98.xml index 25348af6363..b60a7dba185 100644 --- a/hash/pc98.xml +++ b/hash/pc98.xml @@ -31867,7 +31867,7 @@ Requires MS-DOS 5.00H plus an unknown procedure (HDD install?) diff --git a/hash/specpls3_flop.xml b/hash/specpls3_flop.xml index 6ae9993b3bf..1eef473cd0d 100644 --- a/hash/specpls3_flop.xml +++ b/hash/specpls3_flop.xml @@ -11,7 +11,7 @@ license:CC0