-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Determine global paths (userdir, basedir etc) as early as possible du…
…ring startup, so that under Windows we can provide LoadLibrary() with absolute paths. Also added DENG_LIBRARY_DIR which if defined at compile time; changes the location of the library dir under Windows relative to the base directory (Added for dev purposes only. It should NOT be defined in release builds (a compile time warning will be generated if so)).
- Loading branch information
danij
committed
Mar 20, 2008
1 parent
6ca8083
commit 24b42cc
Showing
7 changed files
with
321 additions
and
262 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,48 @@ | ||
/**\file | ||
*\section License | ||
* License: GPL | ||
* Online License Link: http://www.gnu.org/licenses/gpl.html | ||
* | ||
*\author Copyright © 2006-2007 Jaakko Keränen <jaakko.keranen@iki.fi> | ||
*\author Copyright © 2005-2007 Daniel Swanson <danij@dengine.net> | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation; either version 2 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program; if not, write to the Free Software | ||
* Foundation, Inc., 51 Franklin St, Fifth Floor, | ||
* Boston, MA 02110-1301 USA | ||
*/ | ||
|
||
/* | ||
* dd_uinit.h: Unix Initialization | ||
*/ | ||
|
||
#ifndef __DOOMSDAY_UINIT_H__ | ||
#define __DOOMSDAY_UINIT_H__ | ||
|
||
#include "dd_pinit.h" | ||
#include "sys_dylib.h" | ||
|
||
typedef struct { | ||
lt_dlhandle hGame; // Instance handle to the game library. | ||
lt_dlhandle hPlugins[MAX_PLUGS]; // Instance handle to all other libs. | ||
GETGAMEAPI GetGameAPI; | ||
} application_t; | ||
|
||
extern uint windowIDX; // Main window. | ||
extern application_t app; | ||
|
||
void DD_Shutdown(void); | ||
|
||
#endif | ||
/**\file | ||
*\section License | ||
* License: GPL | ||
* Online License Link: http://www.gnu.org/licenses/gpl.html | ||
* | ||
*\author Copyright © 2006-2007 Jaakko Keränen <jaakko.keranen@iki.fi> | ||
*\author Copyright © 2005-2008 Daniel Swanson <danij@dengine.net> | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation; either version 2 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program; if not, write to the Free Software | ||
* Foundation, Inc., 51 Franklin St, Fifth Floor, | ||
* Boston, MA 02110-1301 USA | ||
*/ | ||
|
||
/** | ||
* dd_uinit.h: Unix Initialization. | ||
*/ | ||
|
||
#ifndef __DOOMSDAY_UINIT_H__ | ||
#define __DOOMSDAY_UINIT_H__ | ||
|
||
#include "dd_pinit.h" | ||
#include "sys_dylib.h" | ||
|
||
typedef struct { | ||
boolean userDirOk; | ||
|
||
lt_dlhandle hInstGame; // Instance handle to the game library. | ||
lt_dlhandle hInstPlug[MAX_PLUGS]; // Instance handle to all other libs. | ||
GETGAMEAPI GetGameAPI; | ||
} application_t; | ||
|
||
extern uint windowIDX; // Main window. | ||
extern application_t app; | ||
|
||
void DD_Shutdown(void); | ||
|
||
#endif |
Oops, something went wrong.