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

Method Run

NetStream/source/yt_utils.cpp:103–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103int32_t ytutils::Log::AddAsyncJob::Run()
104{
105 int32_t sync = 0;
106 char *sptr;
107
108 // Replace '=' in playlists with '}' to not confuse INI processor
109 sptr = sce_paf_strchr(m_data.c_str(), '=');
110
111 while (sptr)
112 {
113 *sptr = '}';
114 sptr = sce_paf_strchr(sptr, '=');
115 }
116
117 m_parent->m_ini->add(m_data.c_str(), "");
118 m_parent->m_ini->flush();
119
120 sce::AppSettings *settings = menu::Settings::GetAppSetInstance();
121 settings->GetInt("cloud_sync_auto", static_cast<int32_t *>(&sync), 0);
122 if (sync)
123 {
124 m_parent->UploadToTUS();
125 }
126
127 return SCE_PAF_OK;
128}
129
130void ytutils::Log::AddAsync(const char *data)
131{

Callers

nothing calls this directly

Calls 1

UploadToTUSMethod · 0.80

Tested by

no test coverage detected