Skip to content

Instantly share code, notes, and snippets.

Avatar

Ancurio

  • Zauberzeug GmbH
  • Havixbeck, Germany
  • Twitter @Ancurio
View GitHub Profile
@Ancurio
Ancurio / drohbrief.MD
Last active October 29, 2021 11:07
Offener Drohbrief an die Stadt Köln
View drohbrief.MD

Liebe Verwaltung der Stadt Köln!

Mein Name ist Amaryllis, ich bin 30 und gemeldet in Rondorf, aber passe seit etwa zwei Jahren auf eine Wohnung in Zollstock auf. Ich möchte Ihnen gerne folgendes Plätzchen in Raderthal vorstellen:

Kartenansicht
Foto 1
Foto 2
Foto 3
Foto 4
Foto 5

View disable_nano.patch
diff --git a/src/graphics.cpp b/src/graphics.cpp
index 7d3a4da..8782c56 100644
--- a/src/graphics.cpp
+++ b/src/graphics.cpp
@@ -340,7 +340,7 @@ struct FPSLimiter
private:
void delayTicks(uint64_t ticks)
{
-#ifdef HAVE_NANOSLEEP
+#if defined(HAVE_NANOSLEEP) && !defined(_WIN32)
View nanosleep.patch
diff --git a/src/graphics.cpp b/src/graphics.cpp
index 01e80c7..300bebb 100644
--- a/src/graphics.cpp
+++ b/src/graphics.cpp
@@ -34,6 +34,7 @@
#include "etc-internal.h"
#include "binding.h"
#include "perftimer.h"
+#include "debugwriter.h"
View non_mainthread_gl.c
#include <SDL.h>
#include <SDL_opengl.h>
typedef void (APIENTRYP PFNGLCLEARCOLORPROC) (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
typedef void (APIENTRYP PFNGLCLEARPROC) (GLbitfield mask);
struct
{
PFNGLCLEARCOLORPROC ClearColor;
View apientry.patch
diff --git a/src/debuglogger.cpp b/src/debuglogger.cpp
index 4301bdd..768f05e 100644
--- a/src/debuglogger.cpp
+++ b/src/debuglogger.cpp
@@ -25,6 +25,10 @@
#include <glew.h>
#include <iostream>
+#ifndef APIENTRY
+#define APIENTRY
@Ancurio
Ancurio / print_dec.patch
Created May 19, 2014 20:14
Print available asset decoders in mkxp
View print_dec.patch
diff --git a/src/debugwriter.h b/src/debugwriter.h
index 27244d1..c7b10ed 100644
--- a/src/debugwriter.h
+++ b/src/debugwriter.h
@@ -24,6 +24,7 @@
#include <iostream>
#include <sstream>
+#include <vector>
@Ancurio
Ancurio / gist:7401946
Created November 10, 2013 18:32
mkxp issue #4
View gist:7401946
[tikilou@utopia ToTheMoon.amd64]$ ./ToTheMoon.amd64
GL Vendor : ATI Technologies Inc.
GL Renderer : AMD Radeon HD 7800 Series
GL Version : 4.3.12614 Compatibility Profile/Debug Context 12.104
GLSL Version : 4.30
--- Compiling SimpleShader
From: simple.vert simple.frag
--- Compiling SimpleColorShader
From: simpleColor.vert simpleColor.frag
--- Compiling SimpleAlphaShader
@Ancurio
Ancurio / gist:5980534
Last active December 19, 2015 15:59
Steam hardware profile
View gist:5980534
Processor Information:
Vendor: GenuineIntel
Speed: 2534 Mhz
2 logical processors
2 physical processors
HyperThreading: Unsupported
FCMOV: Supported
SSE2: Supported
SSE3: Supported
SSSE3: Supported