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
GOG music/Track02.ogg to Track11.ogg => baseq2/music/02.ogg .. 11.ogg | |
Track12.ogg .. Track21.ogg => rogue/music/02.ogg .. 11.ogg | |
For xatrix it's like to following | |
(xatrix track number => Q2/Ground Zero(GZ) Track number => GOG Track number) | |
02 => Q2:09 => Track09 | |
03 => GZ:03 => Track13 | |
04 => GZ:04 => Track14 | |
05 => Q2:07 => Track07 |
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
#!/bin/sh | |
INSTALLER_PATH="$1" | |
print_usage () { | |
echo "Usage: " | |
echo " $0 /path/to/setup_daikatana_2.0.0.3.exe" | |
} | |
print_bug_info () { |
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
// This is mostly generated by Visual Studio 2013, I marked all places I changed/added with // DG: ... | |
// this probably doesn't build as is; I didn't know how to create a portable Visual Studio "solution" | |
// or which parts of the project folder are relevant.. | |
// when running this, you can quit with Alt+F4 | |
// TestMouseWarp.cpp : Defines the entry point for the application. | |
// | |
#include <windowsx.h> |
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
// in src/events/SDL_mouse.c added some SDL_Log() calls to SDL_PrivateSendMouseMotion(): | |
#include "SDL_log.h" | |
static int | |
SDL_PrivateSendMouseMotion(SDL_Window * window, SDL_MouseID mouseID, int relative, int x, int y) | |
{ | |
SDL_Mouse *mouse = SDL_GetMouse(); | |
int posted; | |
int xrel; | |
int yrel; |
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
/* | |
* Try to find out the libstdc++.so.6 version on the (x86 or x86_64) Linux | |
* system this is executed on. | |
* (you could then use that information to decide whether to use LD_PRELOAD | |
* or LD_LIBRARY_PATH to make a C++ program launched from here use a newer | |
* version of libstdc++.so.6 that you provide) | |
* | |
* (C) 2017 Daniel Gibson | |
* | |
* LICENSE |
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
// this is hacky and assumes messages.json is <64k bytes. that's the case for | |
// https://github.com/kamalmarhubi/one-second/blob/master/setup/protobuf/message.json | |
#include "rapidjson/document.h" | |
#include <stdio.h> | |
#include <stdlib.h> | |
int main(int argc, char** argv) | |
{ | |
size_t numIterations = 1; |
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
* On a Mac/other OSX VM, get El Capitan in AppStore | |
* Similar for High Sierra, see https://gist.github.com/agentsim/00cc38c693e7d0e1b36a2080870d955b#gistcomment-2214881 | |
for the changed script. | |
You might have to reboot your Mac after Downloading High Sierra in the AppStore, | |
in case the first hdiutil attach ... step fails. | |
* (Create install ISO with following script:) | |
#!/bin/bash | |
# Mount the Installer image |
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
[ | |
[ | |
[ | |
"classname", | |
"worldspawn" | |
], | |
[ | |
"color", | |
"0 0 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
/* | |
* Kinda messy code to parse and display 8bit BMPs and Daikatana wals | |
* Can also be compiled to check whether the colormaps of textures in a | |
* directory match that of the corresponding colormap.bmp | |
* | |
* Note that it currently only displays the first mipmap level of a .wal texture | |
* and ignores the animname, flags, contents and value fields of the header. | |
* | |
* (C) 2016 Daniel Gibson | |
* |
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
// Daikatana .pak format. It's similar to Quake/Quake2 format, but supports compressed files as well. | |
// I think that only the following file types are compressed: .tga .bmp .wal .pcx .bsp | |
// I wouldn't rely on this list when unpacking, but when packing, only compress those. | |
// the structs are based on pakextract.c from https://github.com/yquake2/pakextract | |
// all ints are 32bit Little Endian. | |
struct pak_header | |
{ | |
char signature[4]; // {'P','A','C','K'}, like in Quake/Quake2 |