mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-21 18:22:33 +01:00
save-overlays: change list entry contents.
There's no need to tell the user that the entry is for game xy, they are already playing that game. On a real PS3 only the subtitle and the date are displayed.
This commit is contained in:
parent
11f57f259c
commit
5720a32bc5
@ -17,6 +17,20 @@ namespace date_time
|
|||||||
return buf;
|
return buf;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static inline std::string fmt_time(const char* fmt, const s64 time)
|
||||||
|
{
|
||||||
|
tm buf;
|
||||||
|
time_t t = time;
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
localtime_s(&buf, &t);
|
||||||
|
#else
|
||||||
|
buf = *localtime(&t);
|
||||||
|
#endif
|
||||||
|
char str[80];
|
||||||
|
strftime(str, sizeof(str), fmt, &buf);
|
||||||
|
return str;
|
||||||
|
}
|
||||||
|
|
||||||
static inline std::string current_time()
|
static inline std::string current_time()
|
||||||
{
|
{
|
||||||
char str[80];
|
char str[80];
|
||||||
|
@ -174,13 +174,13 @@ namespace rsx
|
|||||||
m_dim_background->back_color.a = 0.5f;
|
m_dim_background->back_color.a = 0.5f;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::vector<u8> icon;
|
|
||||||
std::vector<std::unique_ptr<overlay_element>> entries;
|
std::vector<std::unique_ptr<overlay_element>> entries;
|
||||||
|
|
||||||
for (auto& entry : save_entries)
|
for (auto& entry : save_entries)
|
||||||
{
|
{
|
||||||
|
const std::string modification_time = date_time::fmt_time("%c", entry.mtime);
|
||||||
std::unique_ptr<overlay_element> e;
|
std::unique_ptr<overlay_element> e;
|
||||||
e = std::make_unique<save_dialog_entry>(entry.title, entry.subtitle, entry.details, image_resource_id::raw_image, entry.iconBuf);
|
e = std::make_unique<save_dialog_entry>(entry.subtitle, modification_time, entry.details, image_resource_id::raw_image, entry.iconBuf);
|
||||||
entries.emplace_back(std::move(e));
|
entries.emplace_back(std::move(e));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -211,6 +211,7 @@ namespace rsx
|
|||||||
{
|
{
|
||||||
const char* title = "Create New";
|
const char* title = "Create New";
|
||||||
|
|
||||||
|
std::vector<u8> icon;
|
||||||
int id = resource_config::standard_image_resource::new_entry;
|
int id = resource_config::standard_image_resource::new_entry;
|
||||||
|
|
||||||
if (const auto picon = +listSet->newData->icon)
|
if (const auto picon = +listSet->newData->icon)
|
||||||
|
Loading…
Reference in New Issue
Block a user