Commit Graph

371 Commits

Author SHA1 Message Date
scawful
11504ca4c1 Refactor Renderer access and enhance graphics loading functionality
- Replaced instances of Renderer::GetInstance() with Renderer::Get() for consistency across the codebase.
- Updated various rendering methods to streamline bitmap updates and enhance performance.
- Removed unused includes and comments to improve code clarity and maintainability.
2025-05-08 19:37:48 -04:00
scawful
0e39c2b201 Remove kDrawDungeonRoomGraphics feature and related code from FeatureFlags and DungeonEditor for improved clarity and performance. Update room loading and rendering methods to streamline graphics management using gfx::Arena. 2025-05-05 12:28:25 -04:00
scawful
3bd05f6beb Enhance Renderer class with Clear and Present methods for improved rendering control; remove unnecessary comments and streamline SDL_Surface and SDL_Texture deleters by eliminating memory tracking logic. Additionally, remove unused TexturePool class to simplify the codebase. 2025-04-30 00:44:12 -04:00
scawful
c0c6374539 Refactor event handling in Controller::OnInput to use SDL_WaitEvent instead of polling; improves efficiency by reducing CPU usage during event processing. 2025-04-20 17:37:05 -04:00
scawful
97bb0a8bc6 Remove vsync from Renderer 2025-04-20 17:36:14 -04:00
scawful
44e13cf4bb Refactor bitmap palette management across various components to streamline palette setting and improve error handling; remove unnecessary status checks and enhance consistency in palette application methods. 2025-04-17 21:49:47 -04:00
scawful
935b0b5863 Add MemoryTracker class for memory allocation tracking; integrate with SDL deleters for improved memory management 2025-04-12 11:30:28 -04:00
scawful
14bd313a7e Refactor Controller::OnLoad: adjust ImGui style variables for improved dock space appearance 2025-03-30 14:42:02 -04:00
scawful
61e35f2819 Implement docking support in the main editor window; enhance editor activation management 2025-03-11 21:05:04 -04:00
scawful
2a6683db82 Refactor audio handling in Controller; replace LoadAudioDevice with backend audio initialization and shutdown methods 2025-03-11 21:03:38 -04:00
scawful
358520fcae Remove test editor integration from Controller and update integration test logic 2025-03-11 20:11:47 -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
684959634c Refactor CreateAndRenderBitmap in Renderer class: change return type to void, improve error handling for palette setting 2025-03-08 00:31:39 -05:00
scawful
4c42dcc5dd refactor controller 2025-03-03 17:33:46 -05:00
scawful
c99a4b0bc4 rename ApplyPalette with SetPalette 2025-03-02 17:06:46 -05:00
scawful
790f105013 Refactor font loading: enhance font management by passing FontConfig to AddIconFont and AddJapaneseFont functions, and streamline font initialization in LoadPackageFonts 2025-02-27 19:16:37 -05:00
scawful
c7608a8c0f Refactor font loading: remove redundant icon and Japanese font configurations, and introduce FontState structure for better font management 2025-02-10 11:47:23 -05:00
scawful
e8659e9fde Refactor audio buffer allocation: replace raw pointer with shared pointer for better memory management 2025-02-10 11:47:03 -05:00
scawful
646db9607a Refactor Controller and File Dialog: streamline platform handling, remove redundant parameters, and enhance initialization logic 2025-01-26 19:28:40 -05:00
scawful
1bc0f07a7e Refactor FlagsMenu to core namespace; remove redundant flags.h file and update references in editor files 2025-01-26 13:20:29 -05:00
scawful
9a11c970ae Change yaze_run_cocoa_app_delegate to return an int for better error handling; update main to reflect this change 2025-01-26 13:19:58 -05:00
scawful
26cda69d44 Refactor common functionality into zelda3 namespace; remove references to core::common 2025-01-22 13:53:01 -05:00
scawful
43fc52dec7 Refactor SnesToPc and PcToSnes functions for improved readability and consistency; remove redundant core:: namespace usage 2025-01-22 13:45:58 -05:00
scawful
de53ccae21 Refactor ExperimentFlags to FeatureFlags for consistency across the codebase 2025-01-22 13:41:28 -05:00
scawful
b245b10963 Refactor logging to use util::logf and add log utility header 2025-01-22 13:36:37 -05:00
scawful
a5b94ab173 Refactor folder item management and move NotifyValue to a new utility header 2025-01-22 13:32:45 -05:00
scawful
50c9223a53 Add hex utility functions and refactor usage in editors 2025-01-22 13:28:21 -05:00
scawful
809282edad remove nonstandard type aliases 2025-01-19 20:16:40 -05:00
scawful
38d34fd40c Add BPS patch utility functions and integrate into CLI handlers 2025-01-19 18:46:56 -05:00
scawful
c8883a1e54 Remove unused includes and clean up header files 2025-01-16 03:44:37 -05:00
scawful
2d15833b0d Implement folder dialog, subdirs, files with nfd 2025-01-06 13:25:49 -05:00
scawful
65be2d0bd2 move sdl_delete.h to platform 2025-01-06 13:23:07 -05:00
scawful
b3bc05e620 consolidate file related functions, add nativefiledialog-extended to build 2025-01-06 13:21:28 -05:00
Justin Scofield
839449e85d Improve logging and reformat CreateWindow call
Updated common.h to include <chrono> and absl/strings/str_cat.h.
Modified logf to include a timestamp in log messages.
Replaced log_to_console with ExperimentFlags::get().kLogToConsole.
Removed newline character from logf output.
Reformatted SDL_CreateWindow call in controller.cc for readability.
2025-01-05 20:56:53 -05:00
Justin Scofield
5e0fb9e36e Add ReloadPackageFonts 2025-01-05 20:54:56 -05:00
Justin Scofield
31217e1c5c Refactor flags and add Font Manager to settings editor
Simplified `ExperimentFlags` by removing unused flags and updated
`Controller` to no longer inherit from it. Refactored `FlagsMenu`
to separate flag categories into individual methods for better
organization. Enhanced settings editor with a new "Font Manager"
tab and updated `DrawGeneralSettings` to use the new flag category
methods. Added `DrawFontManager` function for font management.
2025-01-05 11:58:45 -05:00
Justin Scofield
66dc72148d Add helper functions SetFontPath, LoadFont, AddIconFont, and AddJapaneseFont 2025-01-05 06:38:14 -05:00
Justin Scofield
f1f6df829f controller and canvas houskeeping 2025-01-05 06:17:09 -05:00
Justin Scofield
8cb9eedb25 replace constexpr std string with static const 2024-12-31 21:00:27 -05:00
scawful
d3eca0f950 Make ExperimentFlags a singleton, remove inheritance relationships 2024-12-31 18:13:53 -05:00
scawful
1a5d5befb9 Initialize member variables in Controller class for improved stability 2024-12-31 17:41:47 -05:00
scawful
0e67413d55 Refactor logging to use logf function and update log file name 2024-12-31 16:54:44 -05:00
scawful
d47e8a8387 Remove ImGui input flag and related code from core and editor components 2024-12-31 16:40:24 -05:00
scawful
5ff7eaa526 Add yaze_config.h for version management and update version check logic 2024-12-31 12:50:14 -05:00
scawful
bac4660bac Refactor Controller: Replace SetupScreen with Initialize and clean up unused code 2024-12-31 11:46:39 -05:00
Justin Scofield
1ca1e5f17a make hex format strings const static 2024-12-31 11:41:26 -05:00
Justin Scofield
10c7e15f92 Add font path prefix for non apple platforms 2024-12-30 09:56:26 -05:00
scawful
f13ce9d6fd Refactor hex string handling: introduce HexStringParams struct and consolidate hex formatting functions 2024-12-30 09:46:51 -05:00
scawful
bf862f2d5a Refactor file loading functions: simplify LoadFile, add LoadConfigFile, and adjust platform handling 2024-12-29 10:44:22 -05:00
scawful
e05e7c35db remove app namespace 2024-12-28 21:28:51 -05:00