PookaMustard: Well I wish the only obstacle would be to convince the publishers to release said source code of abandoned IP, but in most cases the source code for these old games would be lost anyway. Fun, isn't it?
A suprising amount is still locked away on floppies in vaults and personal developer archives.
But I'm not asking for what is lost, I'm asking for what is still there.
dnovraD: Sure, it would be nice. But A: Many of the programmers involved are long gone.
B: Many of the companies don't even have the source code.
C: Companies can be weirdly protectionist of their code.
D: What exactly are you going to do with a bunch of Haskell 89'/Turbo Pascal/Visual Basic code anyway?
Decompilation are quite possible, but there's the big, "And then what" that comes to mind. Because with a lot of games, you'd not only be left with a lot of uninitalized code, but you'd also have to do a lot of conversion for fun things like floating point operations, or byte word sizes. Or running on hardware orders of magnitude faster.
A. And many are still arround, many still have personal backups. Like the programmer of raptor call of the shadows, who released his code.
Also the programmer of several commander keen and such found his source code. Is willing to share it, but still waiting for approval of his old boss (which does lean into your point C)
B The companies are long gone, but many developers remain that have their own copies.
C yes, but it would be usefull to gog to make fixes, so gog as a company is in the position to convince them otherwise. It's not like there is super advanced stuff in that code.
D Does it matter? I don't see it as any different then archiving books and paintings or stamps. It's a historical artifact full of weird stuff to work around the limitations of past hardware. A look into the programming culture and much more.
It would also enable source ports much more easily than any reverse engineering could.
Even now decompilation effort for popular games are underway. Commander keen has been done, diablo and quite a few others. Hiding source just makes things difficult not impossible.