| 74 | } |
| 75 | |
| 76 | void 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 | |
| 103 | int32_t ytutils::Log::AddAsyncJob::Run() |
| 104 | { |
nothing calls this directly
no outgoing calls
no test coverage detected