This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
REM Usage: dll2lib [32|64] some-file.dll | |
REM | |
REM Generates some-file.lib from some-file.dll, making an intermediate | |
REM some-file.def from the results of dumpbin /exports some-file.dll. | |
REM | |
REM Requires 'dumpbin' and 'lib' in PATH - run from VS developer prompt. | |
REM | |
REM Script inspired by http://stackoverflow.com/questions/9946322/how-to-generate-an-import-library-lib-file-from-a-dll |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
std::map<int, const char*> blocks = std::map<int, const char*> | |
{ | |
{44, "checkpoint_01_001.png"}, // not setup in ObjectToolbox::init(), only initialised when placing a checkpoint | |
{1, "square_01_001"}, | |
{2, "square_02_001"}, | |
{3, "square_03_001"}, | |
{4, "square_04_001"}, | |
{5, "square_05_001"}, | |
{6, "square_06_001"}, | |
{7, "square_07_001"}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cstdlib> | |
#include <stddef.h> | |
#include <iostream> | |
#define CONCAT2(x, y) x##y | |
#define CONCAT(x, y) CONCAT2(x, y) | |
#if defined(_WIN64) || defined(__x86_64__) | |
#define NEST1(macro, begin) \ | |
macro(CONCAT(begin, 0)) \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "VersionDetect.h" | |
#include <Windows.h> | |
std::map<uint32_t, std::string> VersionDetect::s_buildMap = | |
{ | |
{ 1419173053, "1.900" }, | |
{ 1419880840, "1.910" }, | |
{ 1421745341, "1.920" }, | |
{ 1440638199, "2.000" }, | |
{ 1440643927, "2.001" }, |