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

availableModes #13

Open
alby696 opened this issue Dec 11, 2015 · 3 comments
Open

availableModes #13

alby696 opened this issue Dec 11, 2015 · 3 comments

Comments

@alby696
Copy link

alby696 commented Dec 11, 2015

Hi,

i have this problem when i build the mame in the Apple TV.
schermata 2015-12-11 alle 12 59 48

Thaks a lot for answer for this problem.

Alberto

@fpassa
Copy link

fpassa commented Dec 15, 2015

Same problem here. Any update?

@fpassa
Copy link

fpassa commented Dec 15, 2015

I've fixed the problem. Just comment the line as follow:

        // Internal display is 0, external is 1.
        externalScreen = [[[UIScreen screens] objectAtIndex:1] retain];         
        //screenModes =  [[externalScreen availableModes] retain];

        // Allow user to choose from available screen-modes (pixel-sizes).

It will build the App without issues. Reason being of this fix, is the fact that the If condition will never be satisfied in AppleTV as there is only one screen available, which is not the case when compiling this code for iPad, iPhone or iPod devices, where you can connect an external display. Therefore that portion of the code never is executed on Apple TV OS and therefore it can be omitted.

Good gaming!
Flavio

@bobuk1973
Copy link

I just had that error used this fix and now I have Mame on the Apple TV :)

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

No branches or pull requests

3 participants