by Tdarcos » Wed Nov 23, 2016 2:41 am
In order to separate games that need this functionality from those that don't the game would have to indicate it knows what is going on by setting some value or calling a routine (I would normally have said "procedure" but this is Hugo.) Like the way you end a game by setting a specific variable whose name I can't remember and am too lazy to look up to a non-zero value to indicate they won or lost the game.
Otherwise it might produce undesirable results.
If you know much about "real" programming, where you actually use either MS-DOS system calls or the Windows API, you might know that when they implemented long file names, the old MS-DOS open call uses a standard 8+3 file name, and if it is a long file name, it is specified using the "mangled" name with a tilde character and a number added.
However, your DOS-based program can, if it is Long File Name-aware, issue a different open call indicating it is using a long file name argument. (But the mangled name also works here too.)
This addition means old programs still work as expected but new programs that know how to handle it can take advantage of the improved functionality.
In order to separate games that need this functionality from those that don't the game would have to indicate it knows what is going on by setting some value or calling a routine (I would normally have said "procedure" but this is Hugo.) Like the way you end a game by setting a specific variable whose name I can't remember and am too lazy to look up to a non-zero value to indicate they won or lost the game.
Otherwise it might produce undesirable results.
If you know much about "real" programming, where you actually use either MS-DOS system calls or the Windows API, you might know that when they implemented long file names, the old MS-DOS open call uses a standard 8+3 file name, and if it is a long file name, it is specified using the "mangled" name with a tilde character and a number added.
However, your DOS-based program can, if it is Long File Name-aware, issue a different open call indicating it is using a long file name argument. (But the mangled name also works here too.)
This addition means old programs still work as expected but new programs that know how to handle it can take advantage of the improved functionality.