Skip to content

Instantly share code, notes, and snippets.

@tame-64
tame-64 / airstrike3d_fix.cpp
Last active August 3, 2022 14:35
a fix for airstrike3D game crash for modern hardware. (a buffer overrun fix).
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#include <stdio.h>
// compile with msvc or with mingw with -m32 flag; with target name as3dres.dll;
// rename original as3dres.dll to as3dre2.dll
// drop in the compiled dll into game folder.
void init_patch();
#include <iostream>
#include <list>
#include <vector>
#include "range.h"
template <typename T>
struct printer;
template <> struct printer<bool> {
bool value;
// compile with c++20 enabled
#pragma once
#include <iterator>
#include <limits>
#include <type_traits>
namespace tame {
template <typename, typename = void>
class range_t;