string_util: Remove StringFromFormat() and related functions
Given we utilize fmt, we don't need to provide our own functions for formatting anymore
This commit is contained in:
@ -6,6 +6,7 @@
|
||||
#include <cstring>
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
#include <fmt/format.h>
|
||||
#include "common/common_types.h"
|
||||
#include "common/file_util.h"
|
||||
#include "common/string_util.h"
|
||||
@ -25,11 +26,11 @@ std::string GetSystemSaveDataPath(const std::string& mount_point, const Path& pa
|
||||
u32 save_high;
|
||||
std::memcpy(&save_low, &vec_data[4], sizeof(u32));
|
||||
std::memcpy(&save_high, &vec_data[0], sizeof(u32));
|
||||
return Common::StringFromFormat("%s%08X/%08X/", mount_point.c_str(), save_low, save_high);
|
||||
return fmt::format("{}{:08X}/{:08X}/", mount_point.c_str(), save_low, save_high);
|
||||
}
|
||||
|
||||
std::string GetSystemSaveDataContainerPath(const std::string& mount_point) {
|
||||
return Common::StringFromFormat("%sdata/%s/sysdata/", mount_point.c_str(), SYSTEM_ID);
|
||||
return fmt::format("{}data/{}/sysdata/", mount_point.c_str(), SYSTEM_ID);
|
||||
}
|
||||
|
||||
Path ConstructSystemSaveDataBinaryPath(u32 high, u32 low) {
|
||||
|
Reference in New Issue
Block a user