void mtx_common_init(std::string const &program_name) { init_common_output(true); s_program_name = program_name; #if defined(SYS_WINDOWS) fix_windows_errormode(); #endif matroska_init(); atexit(mtx_common_cleanup); srand(time(nullptr)); init_debugging(); init_hacks(); init_locales(); mm_file_io_c::setup(); g_cc_local_utf8 = charset_converter_c::init(""); init_common_output(false); stereo_mode_c::init(); }
void mtx_common_init(std::string const &program_name, char const *argv0) { init_common_output(true); s_program_name = program_name; #if defined(SYS_WINDOWS) fix_windows_errormode(); #endif matroska_init(); atexit(mtx_common_cleanup); srand(time(nullptr)); debugging_c::init(); init_hacks(); init_locales(); mm_file_io_c::setup(); g_cc_local_utf8 = charset_converter_c::init(""); init_common_output(false); stereo_mode_c::init(); mtx::determine_path_to_current_executable(argv0 ? std::string{argv0} : std::string{}); }