| 101 | } |
| 102 | |
| 103 | int32_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 | |
| 130 | void ytutils::Log::AddAsync(const char *data) |
| 131 | { |
nothing calls this directly
no test coverage detected