Skip to content

Instantly share code, notes, and snippets.

View hhrhhr's full-sized avatar

Dmitry Zaitsev hhrhhr

  • Russia, Veliky Novgorod
View GitHub Profile
@hhrhhr
hhrhhr / 0001-L007.diff
Created May 26, 2014 23:39
0001-L007 diff 0.01
--- 0001-L007_orig.xml 2014-05-26 00:18:43 +0400
+++ 0001-L007_fixed.xml 2014-05-26 22:16:03 +0400
@@ -344 +344 @@
- <t id="2644">Автоматическое вращение</t>
+ <t id="2644">Автоматическое выравнивание</t>
@@ -346 +346 @@
- <t id="2646">Ускорить переключение</t>
+ <t id="2646">'Залипание' ускорителя</t>
@@ -381 +381 @@
- <t id="2681">Главное меню</t>
@hhrhhr
hhrhhr / freeglut.pro
Created June 15, 2014 08:41
FreeGLUT project for Qt qmake (shared library)
TEMPLATE = lib
TARGET = freeglut
CONFIG -= app_bundle qt
CONFIG += rtti_off exceptions_off
DEFINES = FREEGLUT_STATIC
INCLUDEPATH += include
# disable "-pipe -fno-keep-inline-dllexport"
QMAKE_CFLAGS =
@hhrhhr
hhrhhr / freeglut.qbs
Created June 17, 2014 11:24
FreeGlut qbs project
import qbs
DynamicLibrary {
Depends { name: "cpp" }
name: "freeglut"
cpp.defines: ["FREEGLUT_STATIC"]
cpp.includePaths: ["include"]
cpp.warningLevel: ["all"]
cpp.dynamicLibraries: ["opengl32", "gdi32", "winmm"]
@hhrhhr
hhrhhr / examples.qbs
Created June 19, 2014 15:28
qbs project for FMOD Studio C++ API examples (plus .def files for generate an import library for MinGW 4.9.0)
import qbs
import qbs.File
import qbs.Process
Project {
name: "FMOD Studio examples"
property bool isDebug : qbs.buildVariant == "debug" ? true : false
property string fmod : isDebug ? "fmodL4gcc" : "fmod4gcc"
property path sources : path
@hhrhhr
hhrhhr / 0001-L007.diff
Last active August 29, 2015 14:06
diff для перевода от Буки для версии 2.50 beta 9
--- 0001-L007_2.50_b9.xml 2014-09-20 01:39:46 +0400
+++ 0001-L007_merged.xml 2014-09-20 01:35:26 +0400
@@ -85 +85 @@
- <t id="81">(percentage stats)Разблокирована информация</t>
+ <t id="81">(percentage stats)Просканировано</t>
@@ -122 +122 @@
- <t id="1000">Собственность </t>
+ <t id="1000">Собственность</t>
@@ -169 +169 @@
- <t id="1400">Имеется в трюме</t>
public void Deserialize(Stream input)
{
this.Version = input.ReadValueU32();
this.EncryptionKey = 0;
if (this.Version >= 114)
{
this.EncryptionKey |= (uint)(input.ReadValueU16() << 16);
}
@hhrhhr
hhrhhr / SDL2-fix-gcc-compatibility.patch
Created September 6, 2015 18:57
SDL2: Don't try to re-implement D3D11 pieces which are already part of mingw-w64; Workaround a gcc compatibility issue
--- src/render/direct3d11/SDL_render_d3d11.c.orig 2015-03-21 20:17:57.816864185 +0100
+++ src/render/direct3d11/SDL_render_d3d11.c 2015-03-21 22:21:30.123045735 +0100
@@ -46,6 +46,9 @@
#endif /* __WINRT__ */
+#define SDL_DEBUG_STRINGIFY_ARG(str) #str
+#define SDL_DEBUG(str) SDL_DEBUG_STRINGIFY_ARG(__FUNCTION__) str
+
#define SAFE_RELEASE(X) if ((X)) { IUnknown_Release(SDL_static_cast(IUnknown*, X)); X = NULL; }
@hhrhhr
hhrhhr / dic_export.lua
Last active September 22, 2015 03:53
Act of Agression: lang export. usage: "lua dic_export.lua path_to_file"
assert("Lua 5.3" == _VERSION, "\n\nERROR: Lua 5.3 needed\n")
local input = assert(arg[1])
local output = arg[2] or input .. ".txt"
local r
local function read_uint32()
return string.unpack("I", r:read(4))
end
@hhrhhr
hhrhhr / aida64_shared_memory.lua
Created March 18, 2015 20:43
test access to shared memory of AIDA64 with luajit
local lpName = "AIDA64_SensorValues"
local FILE_MAP_ACCESS = 0x0004 --> FILE_MAP_READ
local ffi = require("ffi")
ffi.cdef[[
void* __stdcall OpenFileMappingA(
unsigned long dwDesiredAccess,
int bInheritHandle,
@hhrhhr
hhrhhr / w2em.bob.csv
Created February 10, 2017 14:25
parsed hub pins
entityType X Y Z entityName
AlchemyTable -404.70846557617 -798.3857421875 25.471561431885 mq7024_alchemy_table
ArmorRepairTable -1132.4968261719 72.598106384277 51.316051483154 repair_table_bob_3
ArmorRepairTable -20.374904632568 285.32702636719 10.792315483093 repair_table_bob_7
ArmorRepairTable -271.07943725586 643.38385009766 2.8930871486664 repair_table_bob_1
ArmorRepairTable -365.51690673828 -813.21014404297 31.254356384277 mq7024_armor_table
ArmorRepairTable -460.71783447266 -951.64904785156 63.124675750732 repair_table_bob_2
ArmorRepairTable -487.9248046875 -1417.9982910156 91.023025512695 Repair Table
ArmorRepairTable -508.65612792969 -305.91540527344 3.5980970859528 repair_table_bob_6
ArmorRepairTable 35.185459136963 -1748.0291748047 36.432548522949 repair_table_bob_4