Add support for PAL version (#464)
* Initial setup for PAL version * Add hashes to config.yml Set REL/empty.c to matching for every version Turn off quick-analysis for PAL * Set nisDll matching only for the US version * More config.yml fixes and reran auto-analysis * Split PAL to sprput * Add more symbols * Split a lot more code in PAL * Split more Also introduce version.h header * Split to board stuff * Port early board TUs to PAL * More board PAL ports * Split rest of board code * Board RELs porting to PAL * Match w06Dll/fire.c in PAL * Match w04 big boo for PAL --------- Co-authored-by: dbalatoni13 <stubiflex.junior@gmail.com>
This commit is contained in:
parent
80015a6e5e
commit
d0a5c85d3e
236 changed files with 40998 additions and 390 deletions
|
|
@ -31,5 +31,6 @@ s32 BoardWinPortraitGetStar(void);
|
|||
void BoardWinPlayerSet(s32 player);
|
||||
void BoardWinStartComKeySet(void);
|
||||
void BoardWinComKeyFuncSet(BoardWinComKeyFunc func);
|
||||
s16 BoardWinIDGet(void);
|
||||
|
||||
#endif
|
||||
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
#include "dolphin.h"
|
||||
#include "game/flag.h"
|
||||
#include "version.h"
|
||||
|
||||
//HACK: to prevent prototype errors
|
||||
extern void HuPadRumbleAllStop(void);
|
||||
|
|
@ -235,6 +236,7 @@ static inline s32 GWMessSpeedGet(void)
|
|||
|
||||
static inline void GWMessSpeedSet(s32 value)
|
||||
{
|
||||
#if VERSION_NTSC
|
||||
GWSystem.mess_speed = value;
|
||||
switch(value) {
|
||||
case 0:
|
||||
|
|
@ -249,6 +251,26 @@ static inline void GWMessSpeedSet(s32 value)
|
|||
GWSystem.mess_delay = 32;
|
||||
break;
|
||||
}
|
||||
#else
|
||||
GWSystem.mess_speed = value;
|
||||
switch(value) {
|
||||
case 0:
|
||||
GWSystem.mess_delay = 32;
|
||||
break;
|
||||
|
||||
case 2:
|
||||
GWSystem.mess_delay = 64;
|
||||
break;
|
||||
|
||||
case 1:
|
||||
GWSystem.mess_delay = 48;
|
||||
break;
|
||||
|
||||
default:
|
||||
GWSystem.mess_delay = 120;
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
static inline void GWSaveModeSet(s32 value)
|
||||
|
|
|
|||
18
include/version.h
Normal file
18
include/version.h
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#ifndef _VERSION_H
|
||||
#define _VERSION_H
|
||||
|
||||
#define VERSION_NO_ENG0 0
|
||||
#define VERSION_NO_ENG1 1
|
||||
#define VERSION_NO_PAL0 2
|
||||
#define VERSION_NO_PAL2 3
|
||||
#define VERSION_NO_JAP 4
|
||||
|
||||
#define VERSION_ENG (VERSION == VERSION_NO_ENG0 || VERSION == VERSION_NO_ENG1)
|
||||
#define VERSION_PAL (VERSION == VERSION_NO_PAL0 || VERSION == VERSION_NO_PAL2)
|
||||
#define VERSION_JAP (VERSION == VERSION_NO_JAP)
|
||||
#define VERSION_NTSC (!VERSION_PAL)
|
||||
|
||||
#define VERSION_REV0 (VERSION == VERSION_NO_ENG0 || VERSION == VERSION_NO_PAL0 || VERSION == VERSION_NO_JAP)
|
||||
#define VERSION_REV1 (!VERSION_REV0)
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue