diff --git a/src/mapleall/mpl2mpl/src/gen_profile.cpp b/src/mapleall/mpl2mpl/src/gen_profile.cpp index 382c6881fb17414390ac182a1997c08774ea124d..f354ecf23b13d112bef6fbd37097f8b4f85ba5af 100644 --- a/src/mapleall/mpl2mpl/src/gen_profile.cpp +++ b/src/mapleall/mpl2mpl/src/gen_profile.cpp @@ -104,7 +104,7 @@ void ProfileGen::CreateModProfDesc() { modProfDescSymMirConst->AddItem(checksumMirConst, 5); // Make the profile file name as fileName.gcda - std::string profFileName = mod.GetProfileDataFileName() + namemangler::kProfFileNameExt; + std::string profFileName = mod.GetFileName().substr(0, mod.GetFileName().find_last_of(".")) + namemangler::kProfFileNameExt; auto *profileFNMirConst = modMP->New(profFileName, *GlobalTables::GetTypeTable().GetTypeFromTyIdx(TyIdx(PTY_a64))); modProfDescSymMirConst->AddItem(profileFNMirConst, 6);