hints: Renamed SDL_HINT_LOG_BACKENDS to SDL_DEBUG_LOGGING.
This still logs backend choices, but we might use it for other things. For example, what Android device is being used, or all the devices we enumerated, etc. Ideally this eventually logs all the stuff we often have to ask followup questions about.
This commit is contained in:
@@ -512,12 +512,12 @@ static void MaybeInitializeLibUring(void)
|
||||
{
|
||||
if (SDL_ShouldInit(&liburing_init)) {
|
||||
if (LoadLibUring()) {
|
||||
SDL_LogBackend("asyncio", "liburing");
|
||||
SDL_DebugLogBackend("asyncio", "liburing");
|
||||
CreateAsyncIOQueue = SDL_SYS_CreateAsyncIOQueue_liburing;
|
||||
QuitAsyncIO = SDL_SYS_QuitAsyncIO_liburing;
|
||||
AsyncIOFromFile = SDL_SYS_AsyncIOFromFile_liburing;
|
||||
} else { // can't use liburing? Use the "generic" threadpool implementation instead.
|
||||
SDL_LogBackend("asyncio", "generic");
|
||||
SDL_DebugLogBackend("asyncio", "generic");
|
||||
CreateAsyncIOQueue = SDL_SYS_CreateAsyncIOQueue_Generic;
|
||||
QuitAsyncIO = SDL_SYS_QuitAsyncIO_Generic;
|
||||
AsyncIOFromFile = SDL_SYS_AsyncIOFromFile_Generic;
|
||||
|
||||
@@ -511,12 +511,12 @@ static void MaybeInitializeWinIoRing(void)
|
||||
{
|
||||
if (SDL_ShouldInit(&ioring_init)) {
|
||||
if (LoadWinIoRing()) {
|
||||
SDL_LogBackend("asyncio", "ioring");
|
||||
SDL_DebugLogBackend("asyncio", "ioring");
|
||||
CreateAsyncIOQueue = SDL_SYS_CreateAsyncIOQueue_ioring;
|
||||
QuitAsyncIO = SDL_SYS_QuitAsyncIO_ioring;
|
||||
AsyncIOFromFile = SDL_SYS_AsyncIOFromFile_ioring;
|
||||
} else { // can't use ioring? Use the "generic" threadpool implementation instead.
|
||||
SDL_LogBackend("asyncio", "generic");
|
||||
SDL_DebugLogBackend("asyncio", "generic");
|
||||
CreateAsyncIOQueue = SDL_SYS_CreateAsyncIOQueue_Generic;
|
||||
QuitAsyncIO = SDL_SYS_QuitAsyncIO_Generic;
|
||||
AsyncIOFromFile = SDL_SYS_AsyncIOFromFile_Generic;
|
||||
|
||||
Reference in New Issue
Block a user