Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added force touch support in order to access 4 recently played roms #25

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ghost
Copy link

@ghost ghost commented Apr 26, 2016

I modified LMAppDelegate.m and LMROMBrowserController.m.

In LMROMBrowserController.m - every time the delegate method "didSelectRomAtIndexPath" is called I just pushed the Rom name into NSUserdefaults in order to save that it was last played. Also, If the rom gets deleted, NSUserdefaults gets updated accordingly. The string array in NSUserdefaults never grows beyond 4 strings (rom names) because of the implementation in order to comply with the fact that force touch shortcuts are limited to 4 options only.

In LMAppDelegate I added supported for force touch on devices that have it available. If the devices do not have force touch, it is handled gracefully by launching the app normally.

Future Update: Will be working on adding downloading roms from safari.

Youtube:
https://youtu.be/hd8EUgp5Mok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants