3 ms·
Carmack's piracy protection was bleeding-edge stuff, back then! https://github.com/keendreams/keen/blob/master/kd_main.c#L397-L413 https://github.com/keendream
by mr_sturd 12y ago
Carmack's piracy protection was bleeding-edge stuff, back then!
https://github.com/keendreams/keen/blob/master/kd_main.c#L397-L413 https://github.com/keendreams/keen/blob/master/kd_main.c#L39...
- cpayne 12y agoI'm not sure what that means. Is that a good thing?
- readerrrr 12y agoI wonder what that actually did. For the confused. The piracy.h and those two lines were removed.
- _wmd 12y agoLooks like piracy.h just contained a reference to a static blob (PIRACY) describing an 80x25x16 text mode screen. movedata copies it directly to the VGA screen base address (0xb800). Since VGA text mode used one byte to select the character (from a font of 256 entries), and one byte to describe the character's attributes (16 colors aka 4 bits, bold, strikeout, reverse), the resulting buffer for an 80x25 display was 80x25x2 bytes, aka. 4000 When that's done, it waits for the user to acknowledge the anti-piracy message by pressing enter. This is basically the early 90s equivalent of the "you wouldn't download a car" advert
- jason_slack 12y agoI thought that #if 0 doesn't get compiled and therefore definitely not executed. Can you explain more about your comment? I'm confused. Edit: Corrected "not"
- deleted 12y ago[deleted]
- jason_slack 12y agoright, so what was "bleeding-edge" as the poster stated above?
- deleted 12y ago[deleted]
- escaped_hn 12y agoI think the OP forgot the /s at the end of his comment.
- jason_slack 12y agoAh, sarcasm, because the piracy stuff is wrapped in an #if 0