Skip to content

Instantly share code, notes, and snippets.

View zid's full-sized avatar

Peter Johnson zid

View GitHub Profile
@zid
zid / .h
Created December 13, 2018 07:14
#ifndef M3D_H
#define M3D_H
typedef struct m3d m3d;
struct m3d *m3d_new(const char *path);
void m3d_free(struct m3d *m);
struct img *m3d_get_tex(struct m3d *m, int n);
float *m3d_get_verts(struct m3d *m, int n, uint32_t *out);
unsigned short *m3d_get_elems(struct m3d *m, int n, uint32_t *out);
@zid
zid / .c
Created November 11, 2018 21:59
signed int __cdecl sub_41CC00(struct player *a1)
{
__int16 v1; // ax@1
unsigned int v2; // edi@1
int v3; // ebp@1
unsigned int v4; // ebx@4
int v5; // eax@5
unsigned int v6; // ecx@13
__int16 v7; // ax@25
int v8; // edx@25
printf(
"arse",
"biscuits"
);