mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-06-04 02:51:27 +00:00
port in some improvements from OT (namely fs_basepath, etc, though commandline parsing isn't finished yet)
split up the headerfiles and such. common.[ch] and qwsvdef.h no longer exist. More work still needs to be done (esp for windows) but this should be a major improvement.
This commit is contained in:
parent
e471c785d8
commit
af032b8d55
121 changed files with 1055 additions and 3086 deletions
|
@ -45,6 +45,7 @@
|
|||
#include <sys/mman.h>
|
||||
|
||||
#include "sys.h"
|
||||
#include "qargs.h"
|
||||
#include "quakedef.h"
|
||||
|
||||
int noconinput = 0;
|
||||
|
@ -233,7 +234,7 @@ int main (int c, char **v)
|
|||
|
||||
j = COM_CheckParm("-mem");
|
||||
if (j)
|
||||
parms.memsize = (int) (Q_atof(com_argv[j+1]) * 1024 * 1024);
|
||||
parms.memsize = (int) (atof(com_argv[j+1]) * 1024 * 1024);
|
||||
parms.membase = malloc (parms.memsize);
|
||||
if (!parms.membase) {
|
||||
printf("Can't allocate memroy for zone.\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue