# 4.25 Replacement for GameDir

**URL:** <https://forums.unrealengine.com/t/4-25-replacement-for-gamedir/143527>\
**Category:** C++\
**Tags:** unreal-engine\
**Created:** [May 13, 2020, 11:54pm UTC](https://forums.unrealengine.com/t/4-25-replacement-for-gamedir/143527 "2020-05-13T23:54:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![itspeng1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@itspeng1](https://forums.unrealengine.com/u/itspeng1)\
**Post date:** [May 13, 2020, 11:54pm UTC](https://forums.unrealengine.com/t/4-25-replacement-for-gamedir/143527/1 "2020-05-13T23:54:21Z")

</div>

When upgrading my project to 4.25 (program works fine in 4.25), I found that it would not build, after some experimenting, I found that the problem was that the new version of the engine deprecated gamedir in Fpaths. What should I replace it with so it won’t break the rest of the program. I have included the line below just for refrence/

FString DirPath = FPaths::ConvertRelativePathToFull(FPaths::GameDir()) + “BuffetResults”;

---

<div class="post-metadata">

**Author:** ![amu\_mhr](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/amu_mhr/32/588530_2.png) [@amu\_mhr](https://forums.unrealengine.com/u/amu_mhr)\
**Post date:** [May 26, 2020, 11:30am UTC](https://forums.unrealengine.com/t/4-25-replacement-for-gamedir/143527/2 "2020-05-26T11:30:44Z")

</div>

Hi, you must’ve figured it out by now 😛  
Just in case anyone else gets here, I think you can use **FPaths::ProjectDir()** function in 4.25 🙂  
Regards!
