From 7c964f6c43192f797b599f0bb55fea8fa2b90263 Mon Sep 17 00:00:00 2001 From: Ignacio Sanchez Gines <863613+drhelius@users.noreply.github.com> Date: Sat, 31 Aug 2024 00:22:40 +0200 Subject: [PATCH 1/7] Update README.md --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index a243e72..d0188fa 100644 --- a/README.md +++ b/README.md @@ -70,6 +70,24 @@ cd platforms/bsd gmake ``` +### Libretro + +- Ubuntu / Debian / Raspberry Pi (Raspbian): + +``` shell +sudo apt install build-essential +cd platforms/libretro +make +``` + +- Fedora: + +``` shell +sudo dnf install @development-tools gcc-c++ +cd platforms/libretro +make +``` + ## Contributors Thank you to all the people who have already contributed to Geargrafx! From 83d938eb6e539807153919dfe2127b3b91f5a90e Mon Sep 17 00:00:00 2001 From: Ignacio Sanchez Gines <863613+drhelius@users.noreply.github.com> Date: Sat, 31 Aug 2024 00:25:10 +0200 Subject: [PATCH 2/7] Update README.md --- README.md | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d0188fa..3b99b4a 100644 --- a/README.md +++ b/README.md @@ -12,10 +12,25 @@ This is an open source project with its ongoing development made possible thanks to the support by these awesome [backers](backers.md). If you find it useful, please, consider [sponsoring](https://github.com/sponsors/drhelius). ----------- - ![Geargrafx](https://github.com/user-attachments/assets/7db9eab6-e9c4-422d-a75f-3fde73d3d7f2) +## Downloads + +- **Windows**: + - [Geargrafx-0.0.3-windows-x64.zip](https://github.com/drhelius/Geargrafx/releases/download/0.0.3/Geargrafx-0.0.3-windows-x64.zip) + - [Geargrafx-0.0.3-windows-arm64.zip](https://github.com/drhelius/Geargrafx/releases/download/0.0.3/Geargrafx-0.0.3-windows-arm64.zip) + - NOTE: If you have errors you may need to install: + - [Microsoft Visual C++ Redistributable](https://go.microsoft.com/fwlink/?LinkId=746572) + - [OpenGL Compatibility Pack](https://apps.microsoft.com/detail/9nqpsl29bfff) +- **macOS**: + - [Geargrafx-0.0.3-macos-arm.zip](https://github.com/drhelius/Geargrafx/releases/download/0.0.3/Geargrafx-0.0.3-macos-arm.zip) + - [Geargrafx-0.0.3-macos-intel.zip](https://github.com/drhelius/Geargrafx/releases/download/0.0.3/Geargrafx-0.0.3-macos-intel.zip) +- **Linux**: + - [Geargrafx-0.0.3-ubuntu-24.04.zip](https://github.com/drhelius/Geargrafx/releases/download/0.0.3/Geargrafx-1.1.0-ubuntu-24.04.zip) + - [Geargrafx-0.0.3-ubuntu-22.04.zip](https://github.com/drhelius/Geargrafx/releases/download/0.0.3/Geargrafx-1.1.0-ubuntu-22.04.zip) + - [Geargrafx-0.0.3-ubuntu-20.04.zip](https://github.com/drhelius/Geargrafx/releases/download/0.0.3/Geargrafx-1.1.0-ubuntu-20.04.zip) + - NOTE: You may need to install `libsdl2` and `libglew` + ## Build Instructions ### Windows From e491f2952fd5803310d5d0bf6802e42509843e9f Mon Sep 17 00:00:00 2001 From: Ignacio Sanchez Gines <863613+drhelius@users.noreply.github.com> Date: Sat, 31 Aug 2024 00:28:28 +0200 Subject: [PATCH 3/7] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 3b99b4a..a986a4a 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,7 @@ This is an open source project with its ongoing development made possible thanks ## Downloads +- **Latest Builds**: [here](https://github.com/drhelius/Geargrafx/actions/workflows/geargrafx.yml)) - **Windows**: - [Geargrafx-0.0.3-windows-x64.zip](https://github.com/drhelius/Geargrafx/releases/download/0.0.3/Geargrafx-0.0.3-windows-x64.zip) - [Geargrafx-0.0.3-windows-arm64.zip](https://github.com/drhelius/Geargrafx/releases/download/0.0.3/Geargrafx-0.0.3-windows-arm64.zip) From a8c1514f21ecbec6e9a63d353db8495bd0679b40 Mon Sep 17 00:00:00 2001 From: Ignacio Sanchez Gines <863613+drhelius@users.noreply.github.com> Date: Sat, 31 Aug 2024 00:28:40 +0200 Subject: [PATCH 4/7] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a986a4a..6e2cf7a 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ This is an open source project with its ongoing development made possible thanks ## Downloads -- **Latest Builds**: [here](https://github.com/drhelius/Geargrafx/actions/workflows/geargrafx.yml)) +- **Latest Builds**: [here](https://github.com/drhelius/Geargrafx/actions/workflows/geargrafx.yml) - **Windows**: - [Geargrafx-0.0.3-windows-x64.zip](https://github.com/drhelius/Geargrafx/releases/download/0.0.3/Geargrafx-0.0.3-windows-x64.zip) - [Geargrafx-0.0.3-windows-arm64.zip](https://github.com/drhelius/Geargrafx/releases/download/0.0.3/Geargrafx-0.0.3-windows-arm64.zip) From 6ad91e2c76397f905d9009e18b60baf7f7c725cf Mon Sep 17 00:00:00 2001 From: Ignacio Sanchez Gines <863613+drhelius@users.noreply.github.com> Date: Sat, 31 Aug 2024 00:31:52 +0200 Subject: [PATCH 5/7] Update README.md From 8374d545a44c1c5fc5836006d85cab0db2bac2d5 Mon Sep 17 00:00:00 2001 From: Ignacio Sanchez Gines <863613+drhelius@users.noreply.github.com> Date: Sat, 31 Aug 2024 00:57:35 +0200 Subject: [PATCH 6/7] Fix render buffer size --- platforms/shared/desktop/emu.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platforms/shared/desktop/emu.cpp b/platforms/shared/desktop/emu.cpp index 85c3a14..b7fab59 100644 --- a/platforms/shared/desktop/emu.cpp +++ b/platforms/shared/desktop/emu.cpp @@ -45,7 +45,7 @@ static void update_debug_sprites(void); void emu_init(void) { - emu_frame_buffer = new u8[HUC6270_MAX_RESOLUTION_WIDTH * HUC6270_MAX_RESOLUTION_HEIGHT * 4]; + emu_frame_buffer = new u8[1024 * 512 * 4]; audio_buffer = new s16[GG_AUDIO_BUFFER_SIZE]; init_debug(); @@ -381,7 +381,7 @@ static void reset_buffers(void) emu_debug_background_buffer_width = 32; emu_debug_background_buffer_height = 32; - for (int i = 0; i < HUC6270_MAX_RESOLUTION_WIDTH * HUC6270_MAX_RESOLUTION_HEIGHT * 4; i++) + for (int i = 0; i < 1024 * 512 * 4; i++) emu_frame_buffer[i] = 0; for (int i = 0; i < GG_AUDIO_BUFFER_SIZE; i++) From 51c4afab563138936315cc594b574b6739bf5b9b Mon Sep 17 00:00:00 2001 From: Ignacio Sanchez Gines <863613+drhelius@users.noreply.github.com> Date: Sat, 31 Aug 2024 00:58:18 +0200 Subject: [PATCH 7/7] Fix mem editor selection frame --- platforms/shared/desktop/gui_debug_memeditor.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/platforms/shared/desktop/gui_debug_memeditor.cpp b/platforms/shared/desktop/gui_debug_memeditor.cpp index f8f101c..de592b1 100644 --- a/platforms/shared/desktop/gui_debug_memeditor.cpp +++ b/platforms/shared/desktop/gui_debug_memeditor.cpp @@ -432,13 +432,13 @@ void MemEditor::DrawSelectionFrame(int x, int y, int address, ImVec2 cell_pos, I cell_size.x += m_separator_column_width + 1; } - if (x == 0 || address == start) - m_draw_list->AddLine(cell_pos + ImVec2(-1, -1), cell_pos + ImVec2(-1, cell_size.y - (multiline ? 1.0f: 0.0f)), ImColor(frame_color), 1); + if ((x == 0) || (address == start)) + m_draw_list->AddLine(cell_pos + ImVec2(-1, -1), cell_pos + ImVec2(-1, cell_size.y), ImColor(frame_color), 1); - if (x == (m_bytes_per_row - 1) || (address) == end) - m_draw_list->AddLine(cell_pos + ImVec2(cell_size.x, (multiline ? 0.0f: -1.0f)), cell_pos + ImVec2(cell_size.x, cell_size.y), ImColor(frame_color), 1); + if ((x == (m_bytes_per_row - 1)) || (address == end)) + m_draw_list->AddLine(cell_pos + ImVec2(cell_size.x, multiline && (address == end) && (x != (m_bytes_per_row - 1)) ? 0 : -1), cell_pos + ImVec2(cell_size.x, cell_size.y), ImColor(frame_color), 1); - if (y == 0 || (address - m_bytes_per_row) < start) + if ((y == 0) || ((address - m_bytes_per_row) < start)) m_draw_list->AddLine(cell_pos + ImVec2(-1, -1), cell_pos + ImVec2(cell_size.x, -1), ImColor(frame_color), 1); if ((address + m_bytes_per_row) > end)