| 203 | } |
| 204 | |
| 205 | void twutils::Init() |
| 206 | { |
| 207 | ltkInit(sce_paf_malloc, sce_paf_free, "https://github.com/GrapheneCt/NetStream/raw/main/loot.bin"); |
| 208 | |
| 209 | /* |
| 210 | LtkItem *ch = NULL; |
| 211 | LtkItemVideo *vid = NULL; |
| 212 | int32_t ret = 0; |
| 213 | char dummy[1024]; |
| 214 | |
| 215 | ret = ltkParseSearch("", NULL, LTK_SEARCH_TYPE_CHANNEL, LTK_SEARCH_DIR_AFTER, &ch); |
| 216 | sceClibPrintf("ltkParseSearch: 0x%08X\n", ret); |
| 217 | ltkParseVideo(ch[0].channelItem, LTK_VIDEO_TYPE_VOD, NULL, LTK_SEARCH_DIR_AFTER, &vid); |
| 218 | ltkGetVideoUrl(&vid[0], LTK_HLS_QUALITY_360P, dummy, sizeof(dummy)); |
| 219 | sceClibPrintf("video url: %s\n", dummy); |
| 220 | */ |
| 221 | |
| 222 | if (!s_histLog) |
| 223 | s_histLog = new twutils::HistLog(); |
| 224 | if (!s_favLog) |
| 225 | s_favLog = new twutils::FavLog(); |
| 226 | } |
| 227 | |
| 228 | void twutils::Flush() |
| 229 | { |
nothing calls this directly
no outgoing calls
no test coverage detected