Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 1 | pmbaty | 1 | /* |
| 2 | * Portions of this file are copyright Rebirth contributors and licensed as |
||
| 3 | * described in COPYING.txt. |
||
| 4 | * Portions of this file are copyright Parallax Software and licensed |
||
| 5 | * according to the Parallax license below. |
||
| 6 | * See COPYING.txt for license details. |
||
| 7 | |||
| 8 | THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX |
||
| 9 | SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO |
||
| 10 | END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A |
||
| 11 | ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS |
||
| 12 | IN USING, DISPLAYING, AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS |
||
| 13 | SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE |
||
| 14 | FREE PURPOSES. IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE |
||
| 15 | CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES. THE END-USER UNDERSTANDS |
||
| 16 | AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE. |
||
| 17 | COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED. |
||
| 18 | */ |
||
| 19 | |||
| 20 | /* |
||
| 21 | * |
||
| 22 | * Header for gamepal.c |
||
| 23 | * |
||
| 24 | */ |
||
| 25 | |||
| 26 | #pragma once |
||
| 27 | |||
| 28 | #ifdef __cplusplus |
||
| 29 | #include <cstddef> |
||
| 30 | |||
| 31 | namespace dcx { |
||
| 32 | template <std::size_t> |
||
| 33 | struct PHYSFSX_gets_line_t; |
||
| 34 | } |
||
| 35 | |||
| 36 | #if defined(DXX_BUILD_DESCENT_I) |
||
| 37 | #define MENU_PALETTE "" // never used |
||
| 38 | static inline int load_palette(const char *name, int used_for_level, int no_change_screen) |
||
| 39 | { |
||
| 40 | (void)name; |
||
| 41 | (void)used_for_level; |
||
| 42 | (void)no_change_screen; |
||
| 43 | return 1; |
||
| 44 | } |
||
| 45 | #elif defined(DXX_BUILD_DESCENT_II) |
||
| 46 | #include "inferno.h" |
||
| 47 | |||
| 48 | namespace dsx { |
||
| 49 | #define D2_DEFAULT_PALETTE "default.256" |
||
| 50 | #define MENU_PALETTE "default.256" |
||
| 51 | |||
| 52 | extern char last_palette_loaded[FILENAME_LEN]; |
||
| 53 | extern PHYSFSX_gets_line_t<FILENAME_LEN> Current_level_palette; |
||
| 54 | extern char last_palette_loaded_pig[FILENAME_LEN]; |
||
| 55 | |||
| 56 | // load a palette by name. returns 1 if new palette loaded, else 0 |
||
| 57 | // if used_for_level is set, load pig, etc. |
||
| 58 | // if no_change_screen is set, the current screen does not get |
||
| 59 | // remapped, and the hardware palette does not get changed |
||
| 60 | int load_palette(const char *name, int used_for_level, int no_change_screen); |
||
| 61 | } |
||
| 62 | #endif |
||
| 63 | |||
| 64 | #endif |