//
// MusicDownloadManager::pathForNewsFolder from 0x100663510 to 0x1006635a0 (144 bytes)
//
// 4 xrefs:
// > MusicDownloadManager::onDownloadNewsFeedCompleted @ 0x1006619c6
// > sub_100663640 @ 0x10066368d
// > MusicDownloadManager::onDownloadNewsImageCompleted @ 0x100663d27
// > NewsPopup::rebuildPage @ 0x100959f7a
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:34:57 +0000
//
std::string *__fastcall MusicDownloadManager::pathForNewsFolder(std::string *this, __int64 a2, unsigned __int8 *a3)
{
__int64 v5; // rax
const char *data; // rdi
unsigned int v7; // edx
std::string::size_type v8; // rdx
const std::string::value_type *v9; // r14
v5 = cocos2d::CCFileUtils::sharedFileUtils(this, a2);
(*(void (__fastcall **)(std::string *, __int64))(*(_QWORD *)v5 + 144LL))(this, v5);
std::string::append(this, "news");
if ( (*(_BYTE *)&this->__r_.__value_.__s.0 & 1) != 0 )
data = this->__r_.__value_.__l.__data_;
else
data = this->__r_.__value_.__s.__data_;
mkdir(data, 0x1EDu);
std::string::append(this, "/");
v7 = *a3;
if ( (v7 & 1) != 0 )
{
v8 = *((_QWORD *)a3 + 1);
v9 = *((const std::string::value_type **)a3 + 2);
}
else
{
v9 = (const std::string::value_type *)(a3 + 1);
v8 = v7 >> 1;
}
std::string::append(this, v9, v8);
return this;
}