Skip to content

Commit f92c40b

Browse files
committed
gd::string moment
1 parent 64f2365 commit f92c40b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/LevelToolboxExt.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ LEVEL INTEGRITY VERIFY BYPASS
5959
class $modify(MLE_MusicDownloadManager, MusicDownloadManager) {
6060
gd::string pathForSFX(int id) {
6161
//log::debug("{}:{}({})", __func__, __LINE__, id);
62-
std::filesystem::path ref = MusicDownloadManager::pathForSFX(id);
62+
std::filesystem::path ref = MusicDownloadManager::pathForSFX(id).c_str();
6363
if (auto as = fmt::format("sfx/{}{}", id, ref.extension()); existsInPaths(as.c_str())) {
6464
return CCFileUtils::get()->fullPathForFilename(as.c_str(), 0);
6565
}
@@ -74,7 +74,7 @@ class $modify(MLE_MusicDownloadManager, MusicDownloadManager) {
7474
if (auto sc = CCScene::get())
7575
if (sc->getChildByType<LoadingLayer>(0))
7676
return MusicDownloadManager::pathForSong(id);
77-
std::filesystem::path ref = MusicDownloadManager::pathForSong(id);
77+
std::filesystem::path ref = MusicDownloadManager::pathForSong(id).c_str();
7878
if (auto as = fmt::format("songs/{}{}", id, ref.extension()); existsInPaths(as.c_str())) {
7979
return CCFileUtils::get()->fullPathForFilename(as.c_str(), 0);
8080
}

0 commit comments

Comments
 (0)