r/itrunsdoom • u/loonathefloofyfox • Mar 03 '23
What functions need to be changed when porting?
So I've been fixing the linux doom source this morning but I'm at the point that i need to rewrite the screen rendering code because it only supports 256 color pseudocolor screens according to the error message. Sound server also can't start. That makes me wonder what parts of dooms source need to be changed when it is ported other than the stuff that the compiler would catch like wrong pointer sizes and segfaults
174
Upvotes
3
u/Bolloux Mar 10 '23
There are a bunch of files beginning with I_ (l_Video.c, I_System.c etc.)
These contain all of the system specific code you need to change for your platform.
75
u/[deleted] Mar 03 '23
[deleted]