Codechange: [OSX] GameLoop is really more like MainLoop

MainLoop() is used to bootstrap OSX, where later a callback is
done to GameLoop() to execute OpenTTD. All other video drivers
don't need that, so what is in GameLoop is in MainLoop for all
other drivers. This is rather confusing. So, instead, name
GameLoop MainLoopReal to be more in sync with the other drivers.
This commit is contained in:
Patric Stout 2021-02-24 14:52:04 +01:00 committed by Patric Stout
parent 67d3c6aa71
commit 6a8c461e38
3 changed files with 3 additions and 3 deletions

View File

@ -49,7 +49,7 @@ public:
/* --- The following methods should be private, but can't be due to Obj-C limitations. --- */
void GameLoop();
void MainLoopReal();
virtual void AllocateBackingStore(bool force = false) = 0;

View File

@ -433,7 +433,7 @@ void VideoDriver_Cocoa::InputLoop()
}
/** Main game loop. */
void VideoDriver_Cocoa::GameLoop()
void VideoDriver_Cocoa::MainLoopReal()
{
for (;;) {
@autoreleasepool {

View File

@ -152,7 +152,7 @@ static std::vector<WChar> NSStringToUTF32(NSString *s)
[ e release ];
/* Hand off to main application code. */
drv->GameLoop();
drv->MainLoopReal();
/* We are done, thank you for playing. */
[ self performSelectorOnMainThread:@selector(stopEngine) withObject:nil waitUntilDone:FALSE ];