FS2_Open
Open source remastering of the Freespace 2 engine
osregistry_unix.cpp File Reference
#include <string.h>
#include "globalincs/pstypes.h"
#include "osapi/osregistry.h"
#include "osapi/osapi.h"
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>

Go to the source code of this file.

Classes

struct  KeyValue
 
struct  Section
 
struct  Profile
 

Macros

#define PROFILE_NAME   "fs2_open.ini"
 
#define DEFAULT_SECTION   "Default"
 

Typedefs

typedef struct KeyValue KeyValue
 
typedef struct Section Section
 
typedef struct Profile Profile
 

Functions

void os_init_registry_stuff (const char *company, const char *app, const char *version)
 
const char * os_config_read_string (const char *section, const char *name, const char *default_value)
 
unsigned int os_config_read_uint (const char *section, const char *name, unsigned int default_value)
 
void os_config_write_string (const char *section, const char *name, const char *value)
 
void os_config_write_uint (const char *section, const char *name, unsigned int value)
 

Variables

const char * Osreg_company_name = "Volition"
 
const char * Osreg_class_name = "FreeSpace2Class"
 
const char * Osreg_app_name = "FreeSpace2"
 
const char * Osreg_title = "FreeSpace 2"
 
const char * Osreg_user_dir = ".fs2_open"
 
int Os_reg_inited = 0
 

Macro Definition Documentation

#define DEFAULT_SECTION   "Default"

Definition at line 38 of file osregistry_unix.cpp.

#define PROFILE_NAME   "fs2_open.ini"

Definition at line 36 of file osregistry_unix.cpp.

Typedef Documentation

typedef struct KeyValue KeyValue
typedef struct Profile Profile
typedef struct Section Section

Function Documentation

const char* os_config_read_string ( const char *  section,
const char *  name,
const char *  default_value 
)

Definition at line 432 of file osregistry_unix.cpp.

unsigned int os_config_read_uint ( const char *  section,
const char *  name,
unsigned int  default_value 
)

Definition at line 454 of file osregistry_unix.cpp.

void os_config_write_string ( const char *  section,
const char *  name,
const char *  value 
)

Definition at line 472 of file osregistry_unix.cpp.

void os_config_write_uint ( const char *  section,
const char *  name,
unsigned int  value 
)

Definition at line 484 of file osregistry_unix.cpp.

void os_init_registry_stuff ( const char *  company,
const char *  app,
const char *  version 
)

Definition at line 407 of file osregistry_unix.cpp.

Variable Documentation

int Os_reg_inited = 0

Definition at line 404 of file osregistry_unix.cpp.

const char* Osreg_app_name = "FreeSpace2"

Definition at line 29 of file osregistry_unix.cpp.

const char* Osreg_class_name = "FreeSpace2Class"

Definition at line 27 of file osregistry_unix.cpp.

const char* Osreg_company_name = "Volition"

Definition at line 26 of file osregistry_unix.cpp.

const char* Osreg_title = "FreeSpace 2"

Definition at line 30 of file osregistry_unix.cpp.

const char* Osreg_user_dir = ".fs2_open"

Definition at line 34 of file osregistry_unix.cpp.