Oolite 1.91.0.7645-241119-222d325
Loading...
Searching...
No Matches
GameController.m File Reference
import "GameController.h"
import "Universe.h"
import "ResourceManager.h"
import "MyOpenGLView.h"
import "OOSound.h"
import "OOOpenGL.h"
import "PlayerEntityLoadSave.h"
#include <stdlib.h>
import "OOCollectionExtractors.h"
import "OOOXPVerifier.h"
import "OOLoggingExtended.h"
import "NSFileManagerOOExtensions.h"
import "OOLogOutputHandler.h"
import "OODebugFlags.h"
import "OOJSFrameCallbacks.h"
import "OOOpenGLExtensionManager.h"
import "OOOpenALController.h"
import "OODebugSupport.h"
import "legacy_random.h"
import "OOOXZManager.h"
import "OOOpenGLMatrixManager.h"
import "JAPersistentFileReference.h"
import <Sparkle/Sparkle.h>
import "OoliteApp.h"
import "OOMacJoystickManager.h"
+ Include dependency graph for GameController.m:

Go to the source code of this file.

Classes

category  GameController(OOPrivate)
 

Macros

#define kSnapshotsDirRefKey   @"snapshots-directory-reference"
 
#define kSnapshotsDirNameKey   @"snapshots-directory-name"
 
#define FEED_URL_BASE   "http://www.oolite.org/updates/"
 
#define TEST_RELEASE_FEED_NAME   "oolite-mac-test-release-appcast.xml"
 
#define DEPLOYMENT_FEED_NAME   "oolite-mac-appcast.xml"
 
#define TEST_RELEASE_FEED_URL   (@ FEED_URL_BASE TEST_RELEASE_FEED_NAME)
 
#define DEPLOYMENT_FEED_URL   (@ FEED_URL_BASE DEPLOYMENT_FEED_NAME)
 
#define DEFAULT_TEST_RELEASE   1
 

Functions

static void SetUpSparkle (void)
 

Variables

static GameControllersSharedController = nil
 

Macro Definition Documentation

◆ DEFAULT_TEST_RELEASE

#define DEFAULT_TEST_RELEASE   1

◆ DEPLOYMENT_FEED_NAME

#define DEPLOYMENT_FEED_NAME   "oolite-mac-appcast.xml"

◆ DEPLOYMENT_FEED_URL

#define DEPLOYMENT_FEED_URL   (@ FEED_URL_BASE DEPLOYMENT_FEED_NAME)

◆ FEED_URL_BASE

#define FEED_URL_BASE   "http://www.oolite.org/updates/"

◆ kSnapshotsDirNameKey

#define kSnapshotsDirNameKey   @"snapshots-directory-name"

Definition at line 448 of file GameController.m.

◆ kSnapshotsDirRefKey

#define kSnapshotsDirRefKey   @"snapshots-directory-reference"

Definition at line 447 of file GameController.m.

◆ TEST_RELEASE_FEED_NAME

#define TEST_RELEASE_FEED_NAME   "oolite-mac-test-release-appcast.xml"

◆ TEST_RELEASE_FEED_URL

#define TEST_RELEASE_FEED_URL   (@ FEED_URL_BASE TEST_RELEASE_FEED_NAME)

Function Documentation

◆ SetUpSparkle()

static void SetUpSparkle ( void )
static

Definition at line 1010 of file GameController.m.

1011{
1012#define FEED_URL_BASE "http://www.oolite.org/updates/"
1013#define TEST_RELEASE_FEED_NAME "oolite-mac-test-release-appcast.xml"
1014#define DEPLOYMENT_FEED_NAME "oolite-mac-appcast.xml"
1015
1016#define TEST_RELEASE_FEED_URL (@ FEED_URL_BASE TEST_RELEASE_FEED_NAME)
1017#define DEPLOYMENT_FEED_URL (@ FEED_URL_BASE DEPLOYMENT_FEED_NAME)
1018
1019// Default to test releases in test release or debug builds, and stable releases for deployment builds.
1020#ifdef NDEBUG
1021#define DEFAULT_TEST_RELEASE 0
1022#else
1023#define DEFAULT_TEST_RELEASE 1
1024#endif
1025
1026 BOOL useTestReleases = [[NSUserDefaults standardUserDefaults] oo_boolForKey:@"use-test-release-updates"
1027 defaultValue:DEFAULT_TEST_RELEASE];
1028
1029 SUUpdater *updater = [SUUpdater sharedUpdater];
1030 [updater setFeedURL:[NSURL URLWithString:useTestReleases ? TEST_RELEASE_FEED_URL : DEPLOYMENT_FEED_URL]];
1031}

Variable Documentation

◆ sSharedController

GameController* sSharedController = nil
static

Definition at line 59 of file GameController.m.