Astrabit-ST / ModShot-Core

A fork of mkxp, forked for OneShot, forked for OneShot mods, (not to be confused with the ModShot server)
https://nowaffles.com
GNU General Public License v2.0
19 stars 9 forks source link

HTTPs support (and Ruby library support in general) #10

Closed rkevin-arch closed 3 years ago

rkevin-arch commented 3 years ago

At long last! This PR adds Ruby library support to ModShot. ModShot will now ship ruby standard libraries with it, and you should be able to use it in your code anywhere. This should allow the use of arbitrary ruby gems too, but I don't have a way to automatically build them yet (you can manually place them into lib/ruby after building I suppose)

This also ships the default Mozilla certificate store with ModShot, so OpenSSL can work. The net/http library should work without any issues in RGSS code, just require 'net/http'.

Detailed changes:

A test build is available here for windows, and you can test it by running $game_temp.message_text = Net::HTTP.get(URI('http://example.com'))[0..62] in an event somewhere (should output the first lines of HTML in a in-game textbox.