fabiangreffrath / taradino

SDL2 port of Rise of the Triad
GNU General Public License v2.0
29 stars 8 forks source link

Render 80x25 VGA text mode buffers at game exit #68

Closed erysdren closed 1 month ago

erysdren commented 1 month ago

the SHAREEND and REGEND WAD lumps are 80x25 VGA text buffers meant to display when the game exited back to DOS. Maybe we should find a way to display them? I think GZDoom does the same.

I started writing some code that renders those buffers to RGB images, but I haven't finished it. There may be an existing utility that does it, but I haven't found it yet.

fabiangreffrath commented 1 month ago

If this is the equivalent to ENDOOM in Doom, we can use libtextscreen for that, e.g.

https://github.com/fabiangreffrath/woof/blob/835603dbaa31d783988d9a8be71295e54cdb225e/src/i_endoom.c#L31-L76

erysdren commented 1 month ago

Yes, it's the same. I'll figure out a way to get it cleanly setup in the ROTT codebase.

fabiangreffrath commented 1 month ago

This is how it was introduced into Woof some years ago. Things have changed quite a bit since then. The most important fact is that you only need a fraction of libtextscren for this feature.

https://github.com/fabiangreffrath/woof/commit/19d3ab0ae8a8396f1784f9de448b5aa8922dd7d0