@@ -157,8 +157,9 @@ MenuXbe::MenuXbe(MenuNode* parent, std::string const& label, std::string const&
157157 updateScanningLabel ();
158158 XBEScanner::scanPath (
159159 remainingScanPaths.front (),
160- [this ](bool succeeded, std::list<XBEScanner::XBEInfo> const & items,
161- long long duration) { this ->onScanCompleted (succeeded, items, duration); });
160+ [this ](bool succeeded, std::list<XBEInfo> const & items, long long duration) {
161+ this ->onScanCompleted (succeeded, items, duration);
162+ });
162163 }
163164}
164165
@@ -221,7 +222,7 @@ void MenuXbe::updateScanningLabel() {
221222}
222223
223224void MenuXbe::onScanCompleted (bool succeeded,
224- std::list<XBEScanner:: XBEInfo> const & items,
225+ std::list<XBEInfo> const & items,
225226 long long duration) {
226227 (void )duration;
227228 std::string path = remainingScanPaths.front ();
@@ -238,8 +239,9 @@ void MenuXbe::onScanCompleted(bool succeeded,
238239 updateScanningLabel ();
239240 XBEScanner::scanPath (
240241 remainingScanPaths.front (),
241- [this ](bool succeeded, std::list<XBEScanner::XBEInfo> const & items,
242- long long duration) { this ->onScanCompleted (succeeded, items, duration); });
242+ [this ](bool succeeded, std::list<XBEInfo> const & items, long long duration) {
243+ this ->onScanCompleted (succeeded, items, duration);
244+ });
243245 return ;
244246 }
245247
@@ -250,7 +252,9 @@ void MenuXbe::createChildren() {
250252 std::vector<std::shared_ptr<MenuItem>> newChildren;
251253
252254 for (auto & info: discoveredItems) {
253- newChildren.push_back (std::make_shared<MenuLaunch>(info.name , info.path ));
255+ XPR0Image saveIcon;
256+ info.loadCompressedSaveGameIcon (saveIcon);
257+ newChildren.push_back (std::make_shared<MenuLaunch>(info.title , info.path , saveIcon));
254258 }
255259
256260 std::sort (begin (newChildren), end (newChildren),
@@ -286,8 +290,12 @@ void MenuXbe::createChildren() {
286290/* *****************************************************************************************
287291 MenuLaunch
288292******************************************************************************************/
289- MenuLaunch::MenuLaunch (std::string const & label, std::string const & path) :
290- MenuItem(label), path(path) {
293+ MenuLaunch::MenuLaunch (std::string const & label, std::string path) :
294+ MenuItem(label), path(std::move(path)), image() {
295+ }
296+
297+ MenuLaunch::MenuLaunch (std::string const & label, std::string path, XPR0Image image) :
298+ MenuItem(label), path(std::move(path)), image(std::move(image)) {
291299}
292300
293301MenuLaunch::~MenuLaunch () {
0 commit comments