News:

SimuTranslator
Make Simutrans speak your language.

Patch: Use logger to output messages during sound loading/initialisation

Started by ACarlotti, March 24, 2018, 03:56:07 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ACarlotti

At the moment, sdl_[mixer_]sound.cc use printfs, despite the logger being intended to replace this, resulting in the anomaly of messages about loading sounds forming the majority of stdout with default logging. The patch replaces these printfs with calls to the logger.

I have tested this on Extended but not on Standard; however, I believe this code in Extended was identical to Standard. This is commit b3acce73 in Extended (though not yet incorporated by James).

Dwachs

Parsley, sage, rosemary, and maggikraut.