Skip to content

Instantly share code, notes, and snippets.

Build and configure X-Ray 1.6 on Linux

Make sure you are using STALKER Call Of Pripyat v1.6.02 and your system contains the following packages: git, cmake, GLEW, Freeimage, Lockfile, Openal, TBB, Crypto++, pugixml, Theora, Ogg, SDL2, Lzo, Jpeg.

To install software above in Debian and Ubuntu derivatives just run the command:

sudo apt install git cmake libglew-dev libfreeimage-dev liblockfile-dev libopenal-dev libtbb-dev libcrypto ++ - dev libpugixml-dev libogg-dev libtheora-dev libvorbis-dev libsdl2-dev liblzo-dev-libjdg2-dev
@drewpts
drewpts / view_controller.swift
Created October 29, 2015 13:29
Constraints configuration with VFL. Scroll view
import UIKit
class AboutViewController: UIViewController {
@IBOutlet weak var menuButton:UIBarButtonItem!
let regularMarginSize = CGFloat(8)
let defFont = UIFont.preferredFontForTextStyle(UIFontTextStyleBody)
override func viewDidLoad() {
super.viewDidLoad()
@drewpts
drewpts / gist:4947d6f2f93f62a72924
Created May 31, 2015 20:11
find subprojects by path
virtual FileSetLoader * findSubprojectByPath(const Path&) const = 0;
////////////////////////////////
/*!
* \brief This function performs searching existing subproject loader by path to
* subproject
* \param[in] std::string with path to subproject
* \return loader of subproject
#include "json11.hpp"
using json11::Json;
#include <string>
using std::string;
#include <map>
typedef std::map<string, Json> Map;
#include <utility>
typedef std::pair<string, Json> Pair;
#include <vector>
typedef std::vector<string> strVector;
class jsonToQVM {
typedef std::initializer_list<std::string> ils;
private:
json11::Json json;
std::vector<std::string> keywords;
QString write(QVariantMap& qvm, json11::Json j, QList<std::string> k)
{
for (const auto& keyword : k) {
if (j[keyword].is_object()) //for LPROJ-12
@drewpts
drewpts / gist:2e77d5fcc36b2d715c16
Last active August 29, 2015 14:15
Draft variant for save function. It's in gists because there is no task for it.
namespace {
template <typename T>
bool appendToJsonInTextRepresentation(const T& valToAppend, const char * whereToAppend, std::string& str)
{
int positionOfFilesKey = str.find(whereToAppend);
int positionOfClosingBracket = str.find (string("]"), positionOfFilesKey);
switch (str.at(positionOfClosingBracket - 1))
{