mirror of
https://github.com/ZDoom/Raze.git
synced 2025-06-03 02:30:58 +00:00
- made palette loader part of the game interface.
This gets rid of the Blood 'replace' hook for thus.
This commit is contained in:
parent
71e70f8d15
commit
5f54eac297
11 changed files with 77 additions and 161 deletions
|
@ -29,6 +29,7 @@
|
|||
#include "gamestate.h"
|
||||
#include "inputstate.h"
|
||||
#include "printf.h"
|
||||
#include "gamecontrol.h"
|
||||
|
||||
#ifdef USE_OPENGL
|
||||
# include "mdsprite.h"
|
||||
|
@ -878,8 +879,6 @@ int32_t enginePreInit(void)
|
|||
}
|
||||
|
||||
|
||||
void (*paletteLoadFromDisk_replace)(void) = NULL; // replacement hook for Blood.
|
||||
|
||||
//
|
||||
// initengine
|
||||
//
|
||||
|
@ -915,14 +914,7 @@ int32_t engineInit(void)
|
|||
maxspritesonscreen = MAXSPRITESONSCREEN;
|
||||
|
||||
GPalette.Init(MAXPALOOKUPS + 1); // one slot for each translation, plus a separate one for the base palettes.
|
||||
if (paletteLoadFromDisk_replace)
|
||||
{
|
||||
paletteLoadFromDisk_replace();
|
||||
}
|
||||
else
|
||||
{
|
||||
paletteLoadFromDisk();
|
||||
}
|
||||
gi->loadPalette();
|
||||
|
||||
#ifdef USE_OPENGL
|
||||
if (!mdinited) mdinit();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue