2006-03-20 17:12:09 +00:00
|
|
|
/*
|
2014-06-01 17:55:23 +00:00
|
|
|
* Portions of this file are copyright Rebirth contributors and licensed as
|
|
|
|
* described in COPYING.txt.
|
|
|
|
* Portions of this file are copyright Parallax Software and licensed
|
|
|
|
* according to the Parallax license below.
|
|
|
|
* See COPYING.txt for license details.
|
|
|
|
|
2006-03-20 17:12:09 +00:00
|
|
|
THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
|
|
|
|
SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO
|
|
|
|
END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
|
|
|
|
ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
|
|
|
|
IN USING, DISPLAYING, AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS
|
|
|
|
SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE
|
|
|
|
FREE PURPOSES. IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE
|
|
|
|
CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES. THE END-USER UNDERSTANDS
|
|
|
|
AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE.
|
|
|
|
COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
*
|
|
|
|
* Header for gamepal.c
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2015-07-25 23:10:45 +00:00
|
|
|
#pragma once
|
2016-01-09 16:38:12 +00:00
|
|
|
#include <cstddef>
|
2012-11-11 22:12:51 +00:00
|
|
|
|
2015-12-13 18:00:49 +00:00
|
|
|
namespace dcx {
|
2015-12-13 18:00:48 +00:00
|
|
|
template <std::size_t>
|
|
|
|
struct PHYSFSX_gets_line_t;
|
|
|
|
}
|
|
|
|
|
2013-03-03 01:03:33 +00:00
|
|
|
#if defined(DXX_BUILD_DESCENT_I)
|
|
|
|
#elif defined(DXX_BUILD_DESCENT_II)
|
2022-09-24 17:47:52 +00:00
|
|
|
#include <span>
|
2015-07-25 23:10:45 +00:00
|
|
|
#include "inferno.h"
|
|
|
|
|
2015-12-13 18:00:49 +00:00
|
|
|
namespace dsx {
|
2007-06-11 15:54:09 +00:00
|
|
|
#define D2_DEFAULT_PALETTE "default.256"
|
2006-03-20 17:12:09 +00:00
|
|
|
#define MENU_PALETTE "default.256"
|
|
|
|
|
2013-03-24 17:14:06 +00:00
|
|
|
extern char last_palette_loaded[FILENAME_LEN];
|
2014-12-20 04:36:08 +00:00
|
|
|
extern PHYSFSX_gets_line_t<FILENAME_LEN> Current_level_palette;
|
2012-11-11 00:12:17 +00:00
|
|
|
extern char last_palette_loaded_pig[FILENAME_LEN];
|
2006-03-20 17:12:09 +00:00
|
|
|
|
|
|
|
// load a palette by name. returns 1 if new palette loaded, else 0
|
|
|
|
// if used_for_level is set, load pig, etc.
|
|
|
|
// if no_change_screen is set, the current screen does not get
|
|
|
|
// remapped, and the hardware palette does not get changed
|
2022-09-24 17:47:52 +00:00
|
|
|
int load_palette(std::span<const char> name, int used_for_level, int no_change_screen);
|
2015-12-13 18:00:48 +00:00
|
|
|
}
|
2013-03-03 01:03:33 +00:00
|
|
|
#endif
|