Phalcode / gamevault-backend

Backend for the self-hosted gaming platform for drm-free games
https://gamevau.lt
Other
154 stars 13 forks source link

Support for non-archived games. #280

Open TheDuckMan64 opened 2 months ago

TheDuckMan64 commented 2 months ago

I store my games in a non-archived format as this use case makes more sense for me individually than archiving them.

gamefolder/ data1.bin data2.bin setup.exe

I would love to see support for unarchived games!

Alfagun74 commented 2 months ago

The only easy way to integrate this into our infrastructure I can think of is to tar them on the fly when a client downloads the game. What do you think about that.

TheDuckMan64 commented 2 months ago

All things considered that sounds like a achievable approach. Would the server be able to tar a file in ram (potentially in segments) and stream it, or would you need to save the whole file to disk before sending to client? Either would work for me, I'm just curious :P

Alfagun74 commented 2 months ago

If I use the approach I use for exes right now, which I probably will, it will tar it and store it in /tmp and reuse that file for every future download until you restart your server. then stream it to you for download.

Alfagun74 commented 2 months ago

But this ticket here definitely relies on #148 and thus #149 to be implemented.