Refactor logging system to use LOG_* macros

- Updated logging calls in main.cc, rom.cc, and test_manager.cc to utilize the new LOG_* macros for consistency and improved readability.
- Removed deprecated util::logf function and replaced its usage with appropriate logging macros.
- Enhanced logging in TestManager to provide more detailed information about ROM state and testing processes.
- Cleaned up commented-out logf calls in room.cc to streamline the code.
- Adjusted LogManager to support general logging through a new logf function for non-category specific messages.
This commit is contained in:
scawful
2025-10-04 15:47:52 -04:00
parent d699d1133d
commit 1c4a82ab7e
9 changed files with 261 additions and 265 deletions

View File

@@ -213,10 +213,10 @@ class TestManager {
// ROM-dependent testing
void SetCurrentRom(Rom* rom) {
util::logf("TestManager::SetCurrentRom called with ROM: %p", (void*)rom);
LOG_INFO("TestManager", "SetCurrentRom called with ROM: %p", (void*)rom);
if (rom) {
util::logf("ROM title: '%s', loaded: %s", rom->title().c_str(),
rom->is_loaded() ? "true" : "false");
LOG_INFO("TestManager", "ROM title: '%s', loaded: %s",
rom->title().c_str(), rom->is_loaded() ? "true" : "false");
}
current_rom_ = rom;
}