I love when games use __FILE__ in their assertions. please tell me all your filenames please
Top-level
I love when games use __FILE__ in their assertions. please tell me all your filenames please 6 comments
oh sweet laser jesus I found the upload palette function and THEY UNROLLED IT why do: for(int i=0;i<256;i++){ when you can do upload_color(0,palette[0]); and just repeat 251 more times the worst part is that this was done with a compiler from 1991 so there's no way it unrolled the loop itself. they did this manually oh that's cute. their set_palette function takes two arguments: a pointer to the palette, and a number of extra palettes to apply. so they could set up an array of palettes in decreasing brightness, and just do set_palette(&fade_pallets[0], 64) to go through them. but the same function is a regular one-time set_palette if you just pass 1 for the second argument. "hey ghidra what calls set_palette?" "I don't know! you're in 16bit segmented mode! pointers are MEANINGLESS |
can I not set an I/O breakpoint in dosbox-x's debugger? I forget.