MCPcopy Create free account
hub / github.com/defold/defold / GetSystemURL

Function GetSystemURL

engine/script/src/script_sys.cpp:1212–1223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1210 #define SYSTEM_SOCKET_NAME "@system"
1211
1212 static void GetSystemURL(dmMessage::URL* out_url)
1213 {
1214 dmMessage::HSocket socket;
1215 dmMessage::Result result = dmMessage::GetSocket(SYSTEM_SOCKET_NAME, &socket);
1216 assert(result == dmMessage::RESULT_OK);
1217 assert(socket);
1218
1219 dmMessage::URL url;
1220 out_url->m_Socket = socket;
1221 out_url->m_Path = 0;
1222 out_url->m_Fragment = 0;
1223 }
1224
1225 /*# exits application
1226 * Terminates the game application and reports the specified <code>code</code> to the OS.

Callers 4

Sys_ExitFunction · 0.85
Sys_RebootFunction · 0.85
Sys_SetVsyncSwapIntervalFunction · 0.85
Sys_SetUpdateFrequencyFunction · 0.85

Calls 2

GetSocketFunction · 0.70
assertFunction · 0.50

Tested by

no test coverage detected