How to change save game folder to game root?

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?

Hi, this is already answered here :

Example I tested on windows and android:

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

did you find solution?

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();
	}