Forum

Trying to organize SDL Quake's mess

Discuss programming topics for the various GPL'd game engine sources.

Moderator: InsideQC Admins

Trying to organize SDL Quake's mess

Postby JasonX » Thu Oct 25, 2012 3:02 pm

So, i'm trying to get SDL Quake organized, by removing unused and obsolete code. Based on the popular SDL Quake codebase, which of those files are safe to remove? vid_win.c, snd_dma.c, etc. They all seem useless since SDL was implemented. Or am i wrong?
JasonX
 
Posts: 411
Joined: Tue Apr 21, 2009 2:08 pm

Re: Trying to organize SDL Quake's mess

Postby szo » Thu Oct 25, 2012 4:26 pm

JasonX wrote:So, i'm trying to get SDL Quake organized, by removing unused and obsolete code. Based on the popular SDL Quake codebase, which of those files are safe to remove? vid_win.c, snd_dma.c, etc. They all seem useless since SDL was implemented. Or am i wrong?

Labeling something as a 'mess' requires you to have at least a basic understanding of what it is and that you are asking whether snd_dma.c can be removed from it proves that you actually don't. Did you even try to compile it by removing it? snd_dma.c is the main snd module so no, you aren't supposed to remove it. (Speaking of sound code in it, SDLQuake has a seriously buggy snd_sdl module which will make the engine to occasionally Sys_Error().)
szo
 
Posts: 132
Joined: Mon Dec 06, 2010 4:42 pm


Return to Engine Programming

Who is online

Users browsing this forum: No registered users and 1 guest