mirror of https://github.com/PCSX2/pcsx2.git
CMake: Purge USE_LEGACY_USER_DIRECTORY
Had plenty of time to move over.
This commit is contained in:
parent
bd54729257
commit
d15f2a0cbe
|
@ -22,7 +22,6 @@ option(USE_VULKAN "Enable Vulkan GS renderer" ON)
|
|||
#-------------------------------------------------------------------------------
|
||||
if(UNIX AND NOT APPLE)
|
||||
option(ENABLE_SETCAP "Enable networking capability for DEV9" OFF)
|
||||
option(USE_LEGACY_USER_DIRECTORY "Use legacy home/PCSX2 user directory instead of XDG standard" OFF)
|
||||
option(X11_API "Enable X11 support" ON)
|
||||
option(WAYLAND_API "Enable Wayland support" ON)
|
||||
endif()
|
||||
|
|
|
@ -47,10 +47,6 @@ elseif("${PGO}" STREQUAL "use")
|
|||
target_compile_options(PCSX2_FLAGS INTERFACE -fprofile-use)
|
||||
endif()
|
||||
|
||||
if(USE_LEGACY_USER_DIRECTORY)
|
||||
target_compile_definitions(PCSX2_FLAGS INTERFACE USE_LEGACY_USER_DIRECTORY)
|
||||
endif()
|
||||
|
||||
if(USE_LINKED_FFMPEG)
|
||||
target_compile_definitions(PCSX2_FLAGS INTERFACE USE_LINKED_FFMPEG)
|
||||
target_link_libraries(PCSX2_FLAGS INTERFACE FFMPEG::avcodec FFMPEG::avformat FFMPEG::avutil FFMPEG::swscale FFMPEG::swresample)
|
||||
|
|
|
@ -1737,16 +1737,12 @@ void EmuFolders::SetDataDirectory()
|
|||
const char* home_dir = getenv("HOME");
|
||||
if (home_dir)
|
||||
{
|
||||
#ifdef USE_LEGACY_USER_DIRECTORY
|
||||
DataRoot = Path::Combine(home_dir, "PCSX2");
|
||||
#else
|
||||
// ~/.config should exist, but just in case it doesn't and this is a fresh profile..
|
||||
const std::string config_dir(Path::Combine(home_dir, ".config"));
|
||||
if (!FileSystem::DirectoryExists(config_dir.c_str()))
|
||||
FileSystem::CreateDirectoryPath(config_dir.c_str(), false);
|
||||
|
||||
DataRoot = Path::Combine(config_dir, "PCSX2");
|
||||
#endif
|
||||
}
|
||||
}
|
||||
#elif defined(__APPLE__)
|
||||
|
|
Loading…
Reference in New Issue