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

Method Add

NetStream/source/yt_utils.cpp:76–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76void ytutils::Log::Add(const char *data)
77{
78 int32_t sync = 0;
79 char *sptr;
80 char dataCopy[SCE_INI_FILE_PROCESSOR_KEY_BUFFER_SIZE];
81 sce_paf_strncpy(dataCopy, data, SCE_INI_FILE_PROCESSOR_KEY_BUFFER_SIZE);
82
83 // Replace '=' in playlists with '}' to not confuse INI processor
84 sptr = sce_paf_strchr(dataCopy, '=');
85
86 while (sptr)
87 {
88 *sptr = '}';
89 sptr = sce_paf_strchr(sptr, '=');
90 }
91
92 m_ini->add(dataCopy, "");
93 m_ini->flush();
94
95 sce::AppSettings *settings = menu::Settings::GetAppSetInstance();
96 settings->GetInt("cloud_sync_auto", static_cast<int32_t *>(&sync), 0);
97 if (sync)
98 {
99 UploadToTUS();
100 }
101}
102
103int32_t ytutils::Log::AddAsyncJob::Run()
104{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected