From 039eb20c06644cb82441ad6bf1a825f0396cf7ef Mon Sep 17 00:00:00 2001 From: Sergio Valor Date: Fri, 21 Nov 2025 14:03:11 +0100 Subject: [PATCH] millorat el log del principi antes de que jaildoc remugue --- source/core/audio/audio.cpp | 1 + source/core/input/input.cpp | 1 + source/core/rendering/screen.cpp | 4 +++- source/core/resources/resource_cache.cpp | 2 +- 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/source/core/audio/audio.cpp b/source/core/audio/audio.cpp index 7312fab..56d363c 100644 --- a/source/core/audio/audio.cpp +++ b/source/core/audio/audio.cpp @@ -177,6 +177,7 @@ void Audio::initSDLAudio() { JA_Init(FREQUENCY, SDL_AUDIO_S16LE, 2); enable(Options::audio.enabled); + std::cout << "\n** AUDIO SYSTEM **\n"; std::cout << "Audio system initialized successfully\n"; } } \ No newline at end of file diff --git a/source/core/input/input.cpp b/source/core/input/input.cpp index 0cff5b7..2d05162 100644 --- a/source/core/input/input.cpp +++ b/source/core/input/input.cpp @@ -353,6 +353,7 @@ void Input::initSDLGamePad() { } else { addGamepadMappingsFromFile(); discoverGamepads(); + std::cout << "\n** INPUT SYSTEM **\n"; std::cout << "Input System initialized successfully\n"; } } diff --git a/source/core/rendering/screen.cpp b/source/core/rendering/screen.cpp index 9749a7a..5e63c6e 100644 --- a/source/core/rendering/screen.cpp +++ b/source/core/rendering/screen.cpp @@ -458,6 +458,8 @@ void Screen::initShaders() { // Obtiene información sobre la pantalla void Screen::getDisplayInfo() { + std::cout << "\n** VIDEO SYSTEM **\n"; + int num_displays = 0; SDL_DisplayID* displays = SDL_GetDisplays(&num_displays); if (displays != nullptr) { @@ -575,7 +577,7 @@ auto Screen::initSDLVideo() -> bool { SDL_SetRenderDrawBlendMode(renderer_, SDL_BLENDMODE_BLEND); SDL_SetRenderVSync(renderer_, Options::video.vertical_sync ? 1 : SDL_RENDERER_VSYNC_DISABLED); - std::cout << "** Video system initialized successfully\n"; + std::cout << "Video system initialized successfully\n"; return true; } diff --git a/source/core/resources/resource_cache.cpp b/source/core/resources/resource_cache.cpp index 6ed0faa..dcb1ca2 100644 --- a/source/core/resources/resource_cache.cpp +++ b/source/core/resources/resource_cache.cpp @@ -57,7 +57,7 @@ void Cache::clear() { void Cache::load() { calculateTotal(); Screen::get()->setBorderColor(static_cast(PaletteColor::BLACK)); - std::cout << "** LOADING RESOURCES" << '\n'; + std::cout << "\n** LOADING RESOURCES" << '\n'; loadSounds(); loadMusics(); loadSurfaces();