mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 09:13:39 +01:00
I18N: Switch to getting categories by index instead of by string lookup
Also gets rid of the shared_ptr usage, and generally makes things nicer. Needed for later config refactorings, good to get in early.
This commit is contained in:
1 parent
07b8b6f35a
commit
ee6234ecb6
65 files changed
+535
-516
No files matched your search
@@ -189,7 +189,7 @@ bool PortManager::Initialize(const unsigned int timeout) {
|
||||
|
||||
ERROR_LOG(SCENET, "PortManager - upnpDiscover failed (error: %i) or No UPnP device detected", error);
|
||||
if (g_Config.bEnableUPnP) {
|
||||
auto n = GetI18NCategory("Networking");
|
||||
auto n = GetI18NCategory(I18NCat::NETWORKING);
|
||||
System_NotifyUserMessage(n->T("Unable to find UPnP device"), 2.0f, 0x0000ff);
|
||||
}
|
||||
m_InitState = UPNP_INITSTATE_NONE;
|
||||
@@ -206,7 +206,7 @@ bool PortManager::Add(const char* protocol, unsigned short port, unsigned short
|
||||
char port_str[16];
|
||||
char intport_str[16];
|
||||
int r;
|
||||
auto n = GetI18NCategory("Networking");
|
||||
auto n = GetI18NCategory(I18NCat::NETWORKING);
|
||||
|
||||
if (intport == 0)
|
||||
intport = port;
|
||||
@@ -263,7 +263,7 @@ bool PortManager::Add(const char* protocol, unsigned short port, unsigned short
|
||||
bool PortManager::Remove(const char* protocol, unsigned short port) {
|
||||
#ifdef WITH_UPNP
|
||||
char port_str[16];
|
||||
auto n = GetI18NCategory("Networking");
|
||||
auto n = GetI18NCategory(I18NCat::NETWORKING);
|
||||
|
||||
INFO_LOG(SCENET, "PortManager::Remove(%s, %d)", protocol, port);
|
||||
if (urls == NULL || urls->controlURL == NULL || urls->controlURL[0] == '\0')
|
||||
|
||||
Reference in new issue
Block a user