Commit Graph

192 Commits

Author SHA1 Message Date
scawful
3734884ba3 Refactor Snes class and enhance Apu functionality
- Updated Snes constructor to initialize CPU callbacks directly, improving readability and maintainability.
- Removed unnecessary CpuCallbacks parameter from Cpu constructor, streamlining the class design.
- Added new methods in Apu for retrieving cycles, status, control, and handling DMA transfers, enhancing audio processing capabilities.
- Introduced unit tests for Apu to validate initialization, sample generation, and handshake timing, ensuring robust audio functionality.
2025-09-24 12:51:29 -04:00
scawful
fdda77c172 Refactor ROM handling and remove SharedRom singleton for improved architecture
- Eliminated the SharedRom class to enhance modularity and reduce global state management.
- Updated various classes to directly manage ROM instances, improving clarity and encapsulation.
- Added new functions for loading messages and colors from ROM, enhancing functionality.
- Refactored Canvas and Editor classes to utilize direct ROM references, streamlining interactions.
- Improved documentation and comments for better code understanding and maintainability.
2025-08-03 17:52:02 -04:00
scawful
1031509e8a Refactor Emulator and Snes classes for improved memory access
- Updated Emulator class to remove inheritance from SharedRom and streamline ROM handling.
- Refactored memory access methods in Emulator and Snes classes to use consistent naming conventions.
- Enhanced DungeonObjectRenderer to utilize the updated Snes class for CPU and memory operations, improving clarity and maintainability.
- Cleaned up unnecessary comments and improved code formatting for better readability.
2025-05-15 22:53:37 -04:00
scawful
fcb6a46bb1 Refactor Renderer access and improve gesture handling in iOS and test files
- Replaced instances of Renderer::GetInstance() with Renderer::Get() for consistency across the codebase.
- Enhanced gesture handling in iOS by adding mouse position events for touch gestures.
- Streamlined test initialization for ImGui to align with recent renderer access changes.
2025-05-08 19:39:49 -04:00
scawful
f3bb4e2358 Refactor CMake configuration for yaze_emu: add macOS support and restructure executable definition 2025-04-05 14:06:45 -04:00
scawful
33de8d2c77 Add "Load Last ROM" shortcut and streamline ROM asset loading in EditorManager 2025-03-11 14:04:13 -04:00
scawful
26cda69d44 Refactor common functionality into zelda3 namespace; remove references to core::common 2025-01-22 13:53:01 -05:00
scawful
de53ccae21 Refactor ExperimentFlags to FeatureFlags for consistency across the codebase 2025-01-22 13:41:28 -05:00
scawful
38d34fd40c Add BPS patch utility functions and integrate into CLI handlers 2025-01-19 18:46:56 -05:00
scawful
1c53ba24c5 Refactor PPU and CPU classes by removing Clock dependency and updating constructors 2025-01-18 00:12:12 -05:00
scawful
c8883a1e54 Remove unused includes and clean up header files 2025-01-16 03:44:37 -05:00
scawful
65be2d0bd2 move sdl_delete.h to platform 2025-01-06 13:23:07 -05:00
Justin Scofield
8b54906a51 Merge branch 'master' of https://github.com/scawful/yaze 2024-12-31 19:21:24 -05:00
Justin Scofield
75845b368d include string in spc700.h 2024-12-31 18:53:52 -05:00
scawful
d3eca0f950 Make ExperimentFlags a singleton, remove inheritance relationships 2024-12-31 18:13:53 -05:00
scawful
cbec34dacf Add PROJECT_BINARY_DIR to include directories in CMake configuration 2024-12-31 15:59:03 -05:00
scawful
c23a2458c4 Refactor emulator code: update SNES references to Snes for consistency, clean up includes, and remove commented-out code 2024-12-30 07:50:37 -05:00
scawful
d2a6169914 Refactor SNES class: rename to Snes for consistency, update method names, and clean up includes 2024-12-30 07:50:30 -05:00
scawful
b904cfd8a4 Refactor CPU clock and instruction handling: improve variable naming for clarity and consistency 2024-12-30 07:50:18 -05:00
scawful
0e81df57fd Refactor PPU code: remove unused namespaces and clean up includes in PPU files 2024-12-30 07:50:12 -05:00
scawful
f8f7d361a7 Refactor DMA handling: rename functions for clarity, remove unused header, and optimize memory initialization 2024-12-30 07:50:06 -05:00
scawful
f48cd171e1 Remove unused audio namespace and clean up includes in APU and DSP files 2024-12-30 07:49:46 -05:00
scawful
e05e7c35db remove app namespace 2024-12-28 21:28:51 -05:00
scawful
039d64c539 Add platform-specific source for Apple and clean up includes in SNES header 2024-11-27 16:39:20 -05:00
scawful
d45917fcab Update executable source file and improve keybinding naming conventions for clarity 2024-11-18 16:57:10 -05:00
scawful
36e5f7a150 Refactor input handling in Emulator and Controller for improved key event management 2024-11-18 14:34:08 -05:00
scawful
9f4756a853 Rename InitializeCocoa to yaze_initialize_cocoa for consistency in platform initialization 2024-11-15 23:51:31 -05:00
scawful
53c8667c48 Add incl directory to yaze_emu target include paths 2024-11-15 23:39:55 -05:00
scawful
ef2ddaa74e Refactor memory management: remove unused enums and RomInfo class to simplify memory.h 2024-11-09 20:13:08 -05:00
scawful
3340066415 Refactor CPU and memory components: remove logging dependencies and restructure DMA channel definitions 2024-11-08 21:09:04 -05:00
scawful
761b0d55f6 Refactor ReadRomHeader to use consistent variable naming for RomInfo 2024-11-08 21:03:01 -05:00
scawful
33f9053e34 Refactor DMA channel structure: consolidate and update definitions, remove obsolete header 2024-11-08 21:02:56 -05:00
scawful
e8e6ab00bf Refactor ImTextureID casting for SDL_Texture rendering 2024-10-09 01:59:15 -04:00
scawful
9c6d74544c add emu.cmake for emulator 2024-08-30 11:09:58 -04:00
scawful
2681e46a7b Refactor file paths for extension headers 2024-08-30 02:22:08 -04:00
scawful
ea8a851539 clang tidy cleanups 2024-08-21 00:37:14 -04:00
scawful
49611d4944 big cleanup, replace Bytes alias with std::vector<uint8_t> to reduce ambiguity 2024-08-20 12:02:47 -04:00
scawful
9bbb6c6114 chore: Refactor file_dialog.cc and file_dialog.h to use namespace aliases 2024-08-13 23:56:17 -04:00
scawful
e2168cc939 add yaze_emu target and YAZE_BUILD_EMU flag 2024-08-13 20:07:16 -04:00
scawful
9a2c8ae17a replace old renderer access pattern 2024-08-09 18:58:07 -04:00
Justin Scofield
42bb014a40 include <array> 2024-08-08 18:03:20 -04:00
scawful
1f9f09ce79 add sdl_deleter.h for RAII SDL resources 2024-08-07 09:59:08 -04:00
scawful
7c708519ac standardize imgui headers as user instead of system 2024-07-30 23:33:12 -04:00
scawful
65d97bbab5 housekeeping, imgui, emulator, input 2024-07-24 10:43:39 -04:00
scawful
f8510aec88 add emu.cc as main entry point for yaze_emu 2024-07-20 10:47:08 -04:00
scawful
fff117997c add yaze_emu CMakeLists target 2024-07-20 10:46:57 -04:00
scawful
85bd48eafa housekeeping 2024-05-24 21:34:36 -04:00
scawful
2e8473ff8e use callbacks directly to reduce stack frame impact of writes 2024-05-11 13:57:08 -04:00
scawful
a6907044bd add experimental single-cycle step control to spc700 2024-05-11 13:56:19 -04:00
scawful
eca262bcc8 cleanup ppu class 2024-04-26 12:05:49 -04:00