mkxp-z/subprojects/packagefiles/openal-soft-android-log.patch
刘皓 ecd8e50e9e
Upgrade OpenAL Soft from 1.23.1 to 1.24.2 again in libretro builds
I don't know why the Wii U build fails with older versions of OpenAL
Soft. There's nothing we can do here except use the newer OpenAL Soft
versions.
2025-04-09 17:22:13 -04:00

28 lines
1.1 KiB
Diff

# Removes the call to `__android_log_print()` when targeting Android because we get missing symbol errors on Android otherwise.
--- a/core/logging.cpp
+++ b/core/logging.cpp
@@ -103,23 +103,6 @@ void al_print_impl(LogLevel level, const fmt::string_view fmt, fmt::format_args
* non-Release builds.
*/
OutputDebugStringW(utf8_to_wstr(fmt::format("{}{}\n", prefix, msg)).c_str());
-#elif defined(__ANDROID__)
- auto android_severity = [](LogLevel l) noexcept
- {
- switch(l)
- {
- case LogLevel::Trace: return ANDROID_LOG_DEBUG;
- case LogLevel::Warning: return ANDROID_LOG_WARN;
- case LogLevel::Error: return ANDROID_LOG_ERROR;
- /* Should not happen. */
- case LogLevel::Disable:
- break;
- }
- return ANDROID_LOG_ERROR;
- };
- /* NOLINTNEXTLINE(cppcoreguidelines-pro-type-vararg) */
- __android_log_print(android_severity(level), "openal", "%.*s%s", al::sizei(prefix),
- prefix.data(), msg.c_str());
#endif
auto cblock = std::lock_guard{LogCallbackMutex};