2007-01-28 03:53:06 +01:00
|
|
|
// Emacs style mode select -*- C++ -*-
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
//
|
|
|
|
// $Id:$
|
|
|
|
//
|
|
|
|
// Copyright (C) 1993-1996 by id Software, Inc.
|
|
|
|
//
|
|
|
|
// This source is available for distribution and/or modification
|
|
|
|
// only under the terms of the DOOM Source Code License as
|
|
|
|
// published by id Software. All rights reserved.
|
|
|
|
//
|
|
|
|
// The source is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// FITNESS FOR A PARTICULAR PURPOSE. See the DOOM Source Code License
|
|
|
|
// for more details.
|
|
|
|
//
|
|
|
|
// $Log:$
|
|
|
|
//
|
|
|
|
// DESCRIPTION:
|
2007-02-08 23:53:29 +01:00
|
|
|
// Main program, simply calls D_DoomMain high level loop.
|
2007-01-28 03:53:06 +01:00
|
|
|
//
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
static const char
|
|
|
|
rcsid[] = "$Id: i_main.c,v 1.4 1997/02/03 22:45:10 b1 Exp $";
|
|
|
|
|
|
|
|
#include "doomdef.h"
|
|
|
|
|
|
|
|
#include "m_argv.h"
|
|
|
|
#include "d_main.h"
|
2007-02-08 23:53:29 +01:00
|
|
|
#include "kolibri.h"
|
2007-01-28 03:53:06 +01:00
|
|
|
|
2007-02-08 23:53:29 +01:00
|
|
|
int main(int argc, char **argv)
|
2007-01-28 03:53:06 +01:00
|
|
|
{
|
2007-02-08 23:53:29 +01:00
|
|
|
// static char * tmp[]=
|
|
|
|
// {"/hd/1/menuetos/doom/mdoom",
|
|
|
|
// NULL};
|
2007-01-28 03:53:06 +01:00
|
|
|
myargc = 1;
|
2007-02-08 23:53:29 +01:00
|
|
|
myargv = argv;
|
2007-01-28 03:53:06 +01:00
|
|
|
|
2007-02-08 23:53:29 +01:00
|
|
|
// InitHeap(32*1024*1024);
|
|
|
|
_asm
|
|
|
|
{
|
|
|
|
push ebx
|
|
|
|
push ecx
|
|
|
|
mov eax, 66
|
|
|
|
mov ebx, 1
|
|
|
|
mov ecx, 1
|
|
|
|
int 0x40
|
|
|
|
pop ecx
|
|
|
|
pop ebx
|
|
|
|
};
|
|
|
|
|
2007-01-28 03:53:06 +01:00
|
|
|
D_DoomMain ();
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|