jhhoward / WolfensteinCGA

Wolfenstein 3D with a CGA renderer
325 stars 10 forks source link

Running the executable with no game files found softlocks the computer #9

Open FavoritoHJS opened 1 year ago

FavoritoHJS commented 1 year ago

It seems like quitting the program before it initializes causes some sort of memory corruption, leading to an endless loop of invalid opcode interrupts since it's trying to execute an MMX instruction that doesn't exist.

This shouldn't happen... except when it fails to initialize, for example because it didn't find any files, like running directly from the Borland C IDE.

PS: How do I build using a shareware executable?

EDIT: Go to Options->Compiler->Code Generation, and Define UPLOAD. Then it Just Works, almost like ID used that for the shareware... I wonder if the game can automatically detect the correct game type at runtime and use those variables.