Oolite
Loading...
Searching...
No Matches
GameController.m File Reference
import "GameController.h"
import "MyOpenGLView.h"
import "NSFileManagerOOExtensions.h"
import "OOCollectionExtractors.h"
import "OODebugFlags.h"
import "OODebugSupport.h"
import "OOJSFrameCallbacks.h"
import "OOLogOutputHandler.h"
import "OOLoggingExtended.h"
import "OOOXPVerifier.h"
import "OOOXZManager.h"
import "OOOpenALController.h"
import "OOOpenGL.h"
import "OOOpenGLExtensionManager.h"
import "OOOpenGLMatrixManager.h"
import "OOSound.h"
import "PlayerEntityLoadSave.h"
import "ResourceManager.h"
import "Universe.h"
import "legacy_random.h"
#include <stdlib.h>
import "JAPersistentFileReference.h"
import "OOMacJoystickManager.h"
import "OoliteApp.h"
import <Sparkle/Sparkle.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 GameController * sSharedController = 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 436 of file GameController.m.

Referenced by GameController::snapshotsURLCreatingIfNeeded:.

◆ kSnapshotsDirRefKey

#define kSnapshotsDirRefKey   @"snapshots-directory-reference"

Definition at line 435 of file GameController.m.

Referenced by GameController::snapshotsURLCreatingIfNeeded:.

◆ 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 886 of file GameController.m.

887{
888#define FEED_URL_BASE "http://www.oolite.org/updates/"
889#define TEST_RELEASE_FEED_NAME "oolite-mac-test-release-appcast.xml"
890#define DEPLOYMENT_FEED_NAME "oolite-mac-appcast.xml"
891
892#define TEST_RELEASE_FEED_URL (@FEED_URL_BASE TEST_RELEASE_FEED_NAME)
893#define DEPLOYMENT_FEED_URL (@FEED_URL_BASE DEPLOYMENT_FEED_NAME)
894
895// Default to test releases in test release or debug builds, and stable releases for deployment builds.
896#ifdef NDEBUG
897#define DEFAULT_TEST_RELEASE 0
898#else
899#define DEFAULT_TEST_RELEASE 1
900#endif
901
902 BOOL useTestReleases = [[NSUserDefaults standardUserDefaults] oo_boolForKey:@"use-test-release-updates"
903 defaultValue:DEFAULT_TEST_RELEASE];
904
905 SUUpdater* updater = [SUUpdater sharedUpdater];
906 [updater setFeedURL:[NSURL URLWithString:useTestReleases ? TEST_RELEASE_FEED_URL : DEPLOYMENT_FEED_URL]];
907}

Referenced by GameController::applicationDidFinishLaunching:.

Here is the caller graph for this function:

Variable Documentation

◆ sSharedController

GameController* sSharedController = nil
static

Definition at line 61 of file GameController.m.

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