Atrinik Client 2.5
Functions | Variables
client/upgrader.c File Reference
#include <global.h>

Go to the source code of this file.

Functions

static void upgrade_20_to_25 (const char *from, const char *to)
void upgrader_init ()

Variables

static const char *const client_versions []

Detailed Description

Migrates the settings from an older installation.

Definition in file upgrader.c.


Function Documentation

static void upgrade_20_to_25 ( const char *  from,
const char *  to 
) [static]

Upgrade 2.0 settings to 2.5.

This handles upgrading settings/keybindings from the old (2.0 and earlier) format to the new (2.5 and later) format.

Parameters:
fromThe old settings directory.
toThe new setting directory.

Definition at line 47 of file upgrader.c.

void upgrader_init ( )

Called before anything else on start, to check if we need to migrate settings.

Definition at line 338 of file upgrader.c.


Variable Documentation

const char* const client_versions[] [static]
Initial value:
{
    "2.0", "2.5"
}

Client versions we know about. The process how these are checked is explained in upgrader_init().

Definition at line 35 of file upgrader.c.