# How to change save game folder to game root?

**URL:** <https://forums.unrealengine.com/t/how-to-change-save-game-folder-to-game-root/342552>\
**Category:** Editor Scripting\
**Tags:** savegame, unreal-engine, question, Blueprint\
**Created:** [December 28, 2015, 8:27am UTC](https://forums.unrealengine.com/t/how-to-change-save-game-folder-to-game-root/342552 "2015-12-28T08:27:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hossein747](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Hossein747](https://forums.unrealengine.com/u/Hossein747)\
**Post date:** [December 28, 2015, 8:27am UTC](https://forums.unrealengine.com/t/how-to-change-save-game-folder-to-game-root/342552/1 "2015-12-28T08:27:13Z")

</div>

Hi  
When I develop my game, save game file saved in save folder in project directory. but when game packaged, and run the .exe file, save file will write in C:\Users[UserName]\AppData\Local[ProjectName]\Saved\SaveGames\

This kind of address is really hard to access, I want to know, is there any way to change default save game location from appdata folder to game root folder?

---

<div class="post-metadata">

**Author:** ![Jurif](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jurif](https://forums.unrealengine.com/u/Jurif)\
**Post date:** [October 26, 2016, 11:12pm UTC](https://forums.unrealengine.com/t/how-to-change-save-game-folder-to-game-root/342552/2 "2016-10-26T23:12:21Z")

</div>

Hi, this is already answered here :

> **[How to get paths to game root folder and user documents?](https://forums.unrealengine.com/questions/155910/how-to-get-paths-to-game-root-folder-and-user-docu.html)**
>
> I think question is self explanatory

Example I tested on windows and android:

```
    FString Path = FPaths::GameDir(); //gets root game folder
     Path.Append("\\SavedGames\\saveslot.save");
```

---

<div class="post-metadata">

**Author:** ![6r0m](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/6r0m/32/1194563_2.png) [@6r0m](https://forums.unrealengine.com/u/6r0m)\
**Post date:** [October 31, 2019, 7:16am UTC](https://forums.unrealengine.com/t/how-to-change-save-game-folder-to-game-root/342552/3 "2019-10-31T07:16:42Z")

</div>

did you find solution?

---

<div class="post-metadata">

**Author:** ![Brodyaga88](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Brodyaga88](https://forums.unrealengine.com/u/Brodyaga88)\
**Post date:** [November 30, 2021, 10:28am UTC](https://forums.unrealengine.com/t/how-to-change-save-game-folder-to-game-root/342552/4 "2021-11-30T10:28:09Z")

</div>

In Paths.cpp line 315

```
return FPaths::Combine(FPlatformProcess::UserSettingsDir(), FApp::GetProjectName()) + TEXT("/");

```

replace

```
return FPaths::ProjectDir();

```

What did you do? In any case, use the game catalog.

```
if (ShouldSaveToUserDir())
	{
		return FPaths::ProjectDir();
	}
	else
	{
		return FPaths::ProjectDir();
	}
```
