mach: Initial commit for gamemode
This commit is contained in:
parent
25b6288efe
commit
509ebd13ab
9 changed files with 2617 additions and 0 deletions
13
gamemode-zig/fetch_upstream.sh
Executable file
13
gamemode-zig/fetch_upstream.sh
Executable file
|
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
rm ./c/*
|
||||
cd ./c
|
||||
wget "https://github.com/FeralInteractive/gamemode/raw/master/lib/gamemode_client.h"
|
||||
wget "https://github.com/FeralInteractive/gamemode/raw/master/lib/client_impl.c"
|
||||
wget "https://github.com/FeralInteractive/gamemode/raw/master/lib/client_loader.c"
|
||||
cd ..
|
||||
|
||||
# The output from translate-c isn't perfect, so we need this fix
|
||||
zig translate-c ./c/gamemode_client.h -lc | sed "s#functor\(.*\)@alignCast\(.*\),\(.*\))#functor\1\3#" > ./src/gamemode_client.zig
|
||||
|
||||
rm -r ./zig-cache
|
||||
Loading…
Add table
Add a link
Reference in a new issue