millorat el log del principi antes de que jaildoc remugue
This commit is contained in:
@@ -177,6 +177,7 @@ void Audio::initSDLAudio() {
|
|||||||
JA_Init(FREQUENCY, SDL_AUDIO_S16LE, 2);
|
JA_Init(FREQUENCY, SDL_AUDIO_S16LE, 2);
|
||||||
enable(Options::audio.enabled);
|
enable(Options::audio.enabled);
|
||||||
|
|
||||||
|
std::cout << "\n** AUDIO SYSTEM **\n";
|
||||||
std::cout << "Audio system initialized successfully\n";
|
std::cout << "Audio system initialized successfully\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -353,6 +353,7 @@ void Input::initSDLGamePad() {
|
|||||||
} else {
|
} else {
|
||||||
addGamepadMappingsFromFile();
|
addGamepadMappingsFromFile();
|
||||||
discoverGamepads();
|
discoverGamepads();
|
||||||
|
std::cout << "\n** INPUT SYSTEM **\n";
|
||||||
std::cout << "Input System initialized successfully\n";
|
std::cout << "Input System initialized successfully\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -458,6 +458,8 @@ void Screen::initShaders() {
|
|||||||
|
|
||||||
// Obtiene información sobre la pantalla
|
// Obtiene información sobre la pantalla
|
||||||
void Screen::getDisplayInfo() {
|
void Screen::getDisplayInfo() {
|
||||||
|
std::cout << "\n** VIDEO SYSTEM **\n";
|
||||||
|
|
||||||
int num_displays = 0;
|
int num_displays = 0;
|
||||||
SDL_DisplayID* displays = SDL_GetDisplays(&num_displays);
|
SDL_DisplayID* displays = SDL_GetDisplays(&num_displays);
|
||||||
if (displays != nullptr) {
|
if (displays != nullptr) {
|
||||||
@@ -575,7 +577,7 @@ auto Screen::initSDLVideo() -> bool {
|
|||||||
SDL_SetRenderDrawBlendMode(renderer_, SDL_BLENDMODE_BLEND);
|
SDL_SetRenderDrawBlendMode(renderer_, SDL_BLENDMODE_BLEND);
|
||||||
SDL_SetRenderVSync(renderer_, Options::video.vertical_sync ? 1 : SDL_RENDERER_VSYNC_DISABLED);
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ void Cache::clear() {
|
|||||||
void Cache::load() {
|
void Cache::load() {
|
||||||
calculateTotal();
|
calculateTotal();
|
||||||
Screen::get()->setBorderColor(static_cast<Uint8>(PaletteColor::BLACK));
|
Screen::get()->setBorderColor(static_cast<Uint8>(PaletteColor::BLACK));
|
||||||
std::cout << "** LOADING RESOURCES" << '\n';
|
std::cout << "\n** LOADING RESOURCES" << '\n';
|
||||||
loadSounds();
|
loadSounds();
|
||||||
loadMusics();
|
loadMusics();
|
||||||
loadSurfaces();
|
loadSurfaces();
|
||||||
|
|||||||
Reference in New Issue
Block a user