Skip to content

Instantly share code, notes, and snippets.

@JohnnyonFlame
Created November 8, 2021 06:40
Show Gist options
  • Save JohnnyonFlame/51bd7784c2d0ce45959cfdcaf37f40cd to your computer and use it in GitHub Desktop.
Save JohnnyonFlame/51bd7784c2d0ce45959cfdcaf37f40cd to your computer and use it in GitHub Desktop.
Empty libcurl-gnutls.so.4 stub
#!/bin/bash
gcc -c empty.c -o empty.o -m32
gcc -fPIC -shared -Wl,-soname,libcurl-gnutls.so.4 empty.o -o libcurl-gnutls.so.4 -m32
// for games where working libcurl isn't needed - just lib and basic funcs
// E.g.: Don't Starve
int curl_global_init(long flags) {return 0;}
void *curl_easy_init() { return 0; }
int curl_easy_setopt(void *handle, unsigned int option, ...) { return 0; }
void curl_easy_cleanup(void *handle) { }
void curl_global_cleanup(void) { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment