xoreos  0.0.5
Namespaces | Macros | Variables
version.cpp File Reference

Neverwinter Nights installation version detection. More...

#include <algorithm>
#include "src/common/scopedptr.h"
#include "src/common/ustring.h"
#include "src/common/readfile.h"
#include "src/common/filelist.h"
#include "src/common/filepath.h"
#include "src/aurora/util.h"
#include "src/engines/nwn/version.h"
Include dependency graph for version.cpp:

Go to the source code of this file.

Namespaces

 Engines
 
 Engines::NWN
 

Macros

#define MAKE_NWN_VERSION(MAJOR, MINOR, BUILD)
 

Variables

static const byte kVersionWin [23]
 
static const byte kBuildWin [25]
 
static const byte kVersionUnix [20]
 

Detailed Description

Neverwinter Nights installation version detection.

Definition in file version.cpp.

Macro Definition Documentation

◆ MAKE_NWN_VERSION

#define MAKE_NWN_VERSION (   MAJOR,
  MINOR,
  BUILD 
)
Value:
((((uint64)(MAJOR)) << 32) + \
(((uint64)(MINOR)) << 16) + \
(((uint64)(BUILD))))
uint64_t uint64
Definition: types.h:206

Definition at line 38 of file version.cpp.

Referenced by Engines::NWN::Version::detect(), and Engines::NWN::Version::getOptimumVersion().

Variable Documentation

◆ kBuildWin

const byte kBuildWin[25]
static
Initial value:
= {
'\0','P','\0','r','\0','i','\0','v','\0','a','\0','t','\0','e','\0','B','\0','u','\0','i','\0','l','\0','d','\0'
}

Definition at line 46 of file version.cpp.

Referenced by Engines::KotOR::Version::detectWindows(), and Engines::NWN::Version::detectWindows().

◆ kVersionUnix

const byte kVersionUnix[20]
static
Initial value:
= {
'\0','N','e','v','e','r','w','i','n','t','e','r',' ','N','i','g','h','t','s','\0'
}

Definition at line 50 of file version.cpp.

Referenced by Engines::NWN::Version::detectLinux(), and Engines::NWN::Version::detectMacOSX().

◆ kVersionWin

const byte kVersionWin[23]
static
Initial value:
= {
'\0','F','\0','i','\0','l','\0','e','\0','V','\0','e','\0','r','\0','s','\0','i','\0','o','\0','n','\0'
}

Definition at line 42 of file version.cpp.

Referenced by Engines::KotOR::Version::detectWindows(), and Engines::NWN::Version::detectWindows().