cellSaveData/overlays: initialize with focused entry

This commit is contained in:
Megamouse 2019-07-13 21:43:02 +02:00
parent b3c1759853
commit 2d29a33ea8
5 changed files with 18 additions and 14 deletions

View file

@ -1,4 +1,4 @@
#include "stdafx.h"
#include "stdafx.h"
#include "overlays.h"
namespace rsx
@ -154,7 +154,7 @@ namespace rsx
return result;
}
s32 save_dialog::show(std::vector<SaveDataEntry>& save_entries, u32 op, vm::ptr<CellSaveDataListSet> listSet)
s32 save_dialog::show(std::vector<SaveDataEntry>& save_entries, u32 focused, u32 op, vm::ptr<CellSaveDataListSet> listSet)
{
std::vector<u8> icon;
std::vector<std::unique_ptr<overlay_element>> entries;
@ -241,6 +241,8 @@ namespace rsx
m_list->set_cancel_only(true);
}
m_list->select_entry(focused);
static_cast<label*>(m_description.get())->auto_resize();
if (auto err = run_input_loop())