MCPcopy Create free account
hub / github.com/GrapheneCt/NetStream / Init

Method Init

NetStream/source/np_utils.cpp:77–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77int32_t nputils::TUS::Init()
78{
79 int32_t ret = sceNpTusInit(SCE_KERNEL_DEFAULT_PRIORITY_USER, SCE_KERNEL_THREAD_CPU_AFFINITY_MASK_DEFAULT, NULL);
80 if (ret < 0)
81 {
82 return ret;
83 }
84
85 ret = sceNpManagerGetNpId(&m_npid);
86 if (ret < 0)
87 {
88 sceNpTusTerm();
89 return ret;
90 }
91
92 ret = sceNpTusCreateTitleCtx(NULL, NULL, NULL);
93 if (ret < 0)
94 {
95 sceNpTusTerm();
96 return ret;
97 }
98
99 m_ctx = ret;
100
101 return SCE_OK;
102}
103
104int32_t nputils::TUS::Term()
105{

Callers

nothing calls this directly

Calls 2

GetDataStatusMethod · 0.80
DeleteDataMethod · 0.80

Tested by

no test coverage detected