mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-07-04 23:31:19 +01:00
CFG_U: Use Common::make_unique instead of the std version
This commit is contained in:
parent
9029efd873
commit
a7cc7972de
1 changed files with 2 additions and 1 deletions
|
@ -4,6 +4,7 @@
|
||||||
|
|
||||||
#include "common/file_util.h"
|
#include "common/file_util.h"
|
||||||
#include "common/log.h"
|
#include "common/log.h"
|
||||||
|
#include "common/make_unique.h"
|
||||||
#include "common/string_util.h"
|
#include "common/string_util.h"
|
||||||
#include "core/file_sys/archive_systemsavedata.h"
|
#include "core/file_sys/archive_systemsavedata.h"
|
||||||
#include "core/hle/hle.h"
|
#include "core/hle/hle.h"
|
||||||
|
@ -399,7 +400,7 @@ Interface::Interface() {
|
||||||
// TODO(Subv): In the future we should use the FS service to query this archive,
|
// TODO(Subv): In the future we should use the FS service to query this archive,
|
||||||
// currently it is not possible because you can only have one open archive of the same type at any time
|
// currently it is not possible because you can only have one open archive of the same type at any time
|
||||||
std::string syssavedata_directory = FileUtil::GetUserPath(D_SYSSAVEDATA_IDX);
|
std::string syssavedata_directory = FileUtil::GetUserPath(D_SYSSAVEDATA_IDX);
|
||||||
cfg_system_save_data = std::make_unique<FileSys::Archive_SystemSaveData>(syssavedata_directory,
|
cfg_system_save_data = Common::make_unique<FileSys::Archive_SystemSaveData>(syssavedata_directory,
|
||||||
CFG_SAVE_ID);
|
CFG_SAVE_ID);
|
||||||
if (!cfg_system_save_data->Initialize()) {
|
if (!cfg_system_save_data->Initialize()) {
|
||||||
LOG_CRITICAL(Service_CFG, "Could not initialize SystemSaveData archive for the CFG:U service");
|
LOG_CRITICAL(Service_CFG, "Could not initialize SystemSaveData archive for the CFG:U service");
|
||||||
|
|
Loading…
Reference in a new issue