MBU-Team / OpenMBU

A reverse engineered version of Marble Blast Ultra from Xbox 360
156 stars 20 forks source link

HTTPObject from PQ/T3D with libcurl #187

Closed HiGuyMB closed 11 months ago

HiGuyMB commented 1 year ago

Here's the curl-for-HTTPObject patch that T3D took from PQ. Someone who is familiar with how the OpenMBU CMake works should make sure these CMake patches are okay. The module didn't copy cleanly so I just threw its contents into the main cmake file and it worked on my box.

With this, the game can now make http requests to modern websites using things like HTTPS (TLS). You can add headers and set a couple common curl options. You can even specify a file path and the response will be saved there (binary files supported) after downloading is complete.

Note: uses mild amounts of C++11 STL. Feel free to replace if you dare :)