Use the citra user path for the sdmc directory

This commit is contained in:
archshift 2014-09-20 15:11:38 -07:00
parent a9630a9d2b
commit 1966f7b0ad
4 changed files with 5 additions and 2 deletions

View file

@ -394,8 +394,7 @@ void ArchiveInit() {
// http://3dbrew.org/wiki/FS:OpenArchive#Archive_idcodes). Currently the only half-finished
// archive type is SDMC, so it is the only one getting exposed.
// TODO(Link Mauve): don't assume the path separator is '/'.
std::string sdmc_directory = FileUtil::GetCurrentDir() + "/userdata/sdmc";
std::string sdmc_directory = FileUtil::GetUserPath(D_SDMC_IDX);
auto archive = new FileSys::Archive_SDMC(sdmc_directory);
if (archive->Initialize())
CreateArchive(archive, "SDMC");