and some more fixes

This commit is contained in:
Thomas Jentzsch 2022-08-13 15:12:41 +02:00
parent 50db2abc50
commit baba0360d3
3 changed files with 45 additions and 18 deletions

View File

@ -12,6 +12,26 @@
Release History
===========================================================================
6.7 to 7.0 (XXXX XX, 202X)
* Enhanced ROM launcher to allow multiple images per ROM
(TODO: controller support, doc)
* Added searching by filename for ROM launcher images
* Enhanced Game Properties dialog for multigame ROMs
* Added optional type format detection based on colors used
* Added Joy2B+ controller support
* Added BUS bankswitching support for some older demos
* Fixed broken 7800 pause key support
-Have fun!
6.6 to 6.7 (June 13, 2022)
* IMPORTANT NOTES:
@ -79,8 +99,6 @@
(thanks go to RomHunter for his tireless research in this area).
Related to this, updated the snapshot collection.
-Have fun!
6.5.3 to 6.6 (November 16, 2021)

View File

@ -896,25 +896,34 @@ Event::Type LauncherDialog::getJoyAxisEvent(int stick, JoyAxis axis, JoyDir adir
{
Event::Type e = instance().eventHandler().eventForJoyAxis(EventMode::kMenuMode, stick, axis, adir, button);
if(myUseMinimalUI)
// map axis events for launcher
switch(e)
{
// map axis events for launcher
switch(e)
{
case Event::UINavPrev:
case Event::UINavPrev:
if(myUseMinimalUI)
// convert unused previous item event into page-up event
e = Event::UIPgUp;
break;
break;
case Event::UINavNext:
case Event::UINavNext:
if(myUseMinimalUI)
// convert unused next item event into page-down event
e = Event::UIPgDown;
break;
break;
default:
break;
}
case Event::UITabPrev:
// TODO: check with controller, then update doc (R77 too)
myRomImageWidget->changeImage(-1);
break;
case Event::UITabNext:
myRomImageWidget->changeImage(1);
break;
default:
break;
}
return e;
}
@ -1086,7 +1095,6 @@ void LauncherDialog::loadRom()
void LauncherDialog::openContextMenu(int x, int y)
{
// Dynamically create context menu for ROM list options
// TODO: remove 'Incl. subdirs' and 'Show all' from GUI? Replace with icons.
if(x < 0 || y < 0)
{

View File

@ -124,12 +124,13 @@ void RomImageWidget::parseProperties(const FSNode& node)
myImageList.clear();
myImageIdx = 0;
// 1. Try to load snapshots by property name
if(getImageList(path + myProperties.get(PropType::Cart_Name)))
mySurfaceIsValid = loadPng(myImageList[0].getPath());
getImageList(path + myProperties.get(PropType::Cart_Name));
// 2. Also try to load snapshot images by filename
if(getImageList(path + node.getNameWithExt("")))
getImageList(path + node.getNameWithExt());
if(myImageList.size())
mySurfaceIsValid = loadPng(myImageList[0].getPath());
if(!mySurfaceIsValid)