Merge pull request #7313 from sum2012/network

Make "Network Initialized" translatable
This commit is contained in:
Henrik Rydgård 2015-01-12 13:07:05 +01:00
commit 7c3bc2b3d2

View File

@ -29,6 +29,7 @@
#include "Core/HLE/sceKernelMemory.h"
#include "UI/OnScreenDisplay.h"
#include "proAdhoc.h"
#include "i18n/i18n.h"
uint32_t fakePoolSize = 0;
SceNetAdhocMatchingContext * contexts = NULL;
@ -1397,6 +1398,7 @@ int getPTPSocketCount(void) {
}
int initNetwork(SceNetAdhocctlAdhocId *adhoc_id){
I18NCategory *n = GetI18NCategory("Networking");
int iResult = 0;
metasocket = (int)INVALID_SOCKET;
metasocket = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
@ -1455,7 +1457,7 @@ int initNetwork(SceNetAdhocctlAdhocId *adhoc_id){
int sent = send(metasocket, (char*)&packet, sizeof(packet), 0);
changeBlockingMode(metasocket, 1); // Change to non-blocking
if (sent > 0){
osm.Show("Network Initialized", 1.0);
osm.Show(n->T("Network Initialized"), 1.0);
return 0;
}
else{