availableModes
Opened this issue · 3 comments
alby696 commented
fpassa commented
Same problem here. Any update?
fpassa commented
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 commented
I just had that error used this fix and now I have Mame on the Apple TV :)