Merge pull request #19844 from hrydgard/assorted-fixes

Deduplicate a OSD message, change DEBUG log level exclusions
This commit is contained in:
Henrik Rydgård authored and GitHub committed 2025-01-10 09:19:34 +01:00
commit f2736af14c
2 files changed
+4 -3

No files matched your search

+3 -2
View File
@@ -17,6 +17,7 @@
#pragma once
#include "ppsspp_config.h"
#include "CommonFuncs.h"
#define NOTICE_LEVEL 1 // VERY important information that is NOT errors. Like startup and debugprintfs from the game itself.
@@ -84,8 +85,8 @@ void GenericLog(LogLevel level, Log type, const char *file, int line, const char
;
bool GenericLogEnabled(LogLevel level, Log type);
// Exception for Windows - enable more log levels in release mode than on other platforms.
#if defined(_DEBUG) || defined(_WIN32)
// We only disable DEBUG and VERBOSE on Android/iOS now.
#if defined(_DEBUG) || (!PPSSPP_PLATFORM(ANDROID) && !PPSSPP_PLATFORM(IOS))
// Needs to be an int (and not use the enum) because it's used by the preprocessor!
#define MAX_LOGLEVEL DEBUG_LEVEL
+1 -1
View File
@@ -1833,7 +1833,7 @@ int create_listen_socket(uint16_t port)
else {
ERROR_LOG(Log::sceNet, "AdhocServer: Bind returned %i (Socket error %d)", bindresult, socket_errno);
auto n = GetI18NCategory(I18NCat::NETWORKING);
g_OSD.Show(OSDType::MESSAGE_ERROR, std::string(n->T("AdhocServer Failed to Bind Port")) + " " + std::to_string(port));
g_OSD.Show(OSDType::MESSAGE_ERROR, std::string(n->T("AdhocServer Failed to Bind Port")) + " " + std::to_string(port), "portbindfail");
}
// Close Socket