Oolite 1.93.0.7767-260207-f2a8cb5
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"

◆ kSnapshotsDirRefKey

#define kSnapshotsDirRefKey   @"snapshots-directory-reference"

◆ 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()

void SetUpSparkle ( void )
static

Definition at line 1019 of file GameController.m.

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

Referenced by GameController::applicationDidFinishLaunching:.

Here is the caller graph for this function:

Variable Documentation

◆ sSharedController

GameController* sSharedController = nil
static

Definition at line 59 of file GameController.m.

Referenced by GameController::init, and GameController::sharedController.