mirror of
https://github.com/rvtr/TwlIPL.git
synced 2025-10-31 06:01:12 -04:00
製品ビルドランチャー&デバッガ上での起動対応。
git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlIPL/trunk@2160 b08762b0-b915-fc4b-9d8c-17b2551a87ff
This commit is contained in:
parent
0d02bf8b67
commit
3d48028d31
@ -20,6 +20,7 @@
|
|||||||
#include <twl/fatfs.h>
|
#include <twl/fatfs.h>
|
||||||
#include <nitro/card.h>
|
#include <nitro/card.h>
|
||||||
#include <twl/nam.h>
|
#include <twl/nam.h>
|
||||||
|
#include <twl/os/common/format_rom.h>
|
||||||
#include <sysmenu/namut.h>
|
#include <sysmenu/namut.h>
|
||||||
#include "kami_font.h"
|
#include "kami_font.h"
|
||||||
#include "process_format.h"
|
#include "process_format.h"
|
||||||
@ -31,6 +32,8 @@
|
|||||||
#include "process_fade.h"
|
#include "process_fade.h"
|
||||||
#include "hwi.h"
|
#include "hwi.h"
|
||||||
|
|
||||||
|
#define SCRAMBLE_MASK 0x00406000
|
||||||
|
|
||||||
extern void HWInfoWriterInit( void );
|
extern void HWInfoWriterInit( void );
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*
|
/*---------------------------------------------------------------------------*
|
||||||
@ -58,6 +61,13 @@ static void InitAllocation(void);
|
|||||||
void
|
void
|
||||||
TwlMain()
|
TwlMain()
|
||||||
{
|
{
|
||||||
|
// 製品ビルドランチャー&デバッガ上での起動対応
|
||||||
|
if ( OS_GetRunningConsoleType() & OS_CONSOLE_TWLDEBUGGER )
|
||||||
|
{
|
||||||
|
ROM_Header *dh = (void *)HW_ROM_HEADER_BUF;
|
||||||
|
dh->s.game_cmd_param &= ~SCRAMBLE_MASK;
|
||||||
|
}
|
||||||
|
|
||||||
OS_Init();
|
OS_Init();
|
||||||
OS_InitTick();
|
OS_InitTick();
|
||||||
OS_InitArena();
|
OS_InitArena();
|
||||||
|
|||||||
@ -19,6 +19,7 @@
|
|||||||
#include <twl.h>
|
#include <twl.h>
|
||||||
#include <nitro/snd.h>
|
#include <nitro/snd.h>
|
||||||
#include <twl/fatfs.h>
|
#include <twl/fatfs.h>
|
||||||
|
#include <twl/os/common/format_rom.h>
|
||||||
#include <sysmenu/namut.h>
|
#include <sysmenu/namut.h>
|
||||||
#include <twl/nam.h>
|
#include <twl/nam.h>
|
||||||
#include "kami_pxi.h"
|
#include "kami_pxi.h"
|
||||||
@ -33,6 +34,8 @@
|
|||||||
#include "debugger_hw_reset_control.h"
|
#include "debugger_hw_reset_control.h"
|
||||||
#include "debugger_card_rom.h"
|
#include "debugger_card_rom.h"
|
||||||
|
|
||||||
|
#define SCRAMBLE_MASK 0x00406000
|
||||||
|
|
||||||
extern const char *g_strIPLSvnRevision;
|
extern const char *g_strIPLSvnRevision;
|
||||||
extern const char *g_strSDKSvnRevision;
|
extern const char *g_strSDKSvnRevision;
|
||||||
|
|
||||||
@ -121,6 +124,13 @@ TwlMain()
|
|||||||
int tadNum;
|
int tadNum;
|
||||||
int i,j;
|
int i,j;
|
||||||
|
|
||||||
|
// 製品ビルドランチャー&デバッガ上での起動対応
|
||||||
|
if ( OS_GetRunningConsoleType() & OS_CONSOLE_TWLDEBUGGER )
|
||||||
|
{
|
||||||
|
ROM_Header *dh = (void *)HW_ROM_HEADER_BUF;
|
||||||
|
dh->s.game_cmd_param &= ~SCRAMBLE_MASK;
|
||||||
|
}
|
||||||
|
|
||||||
OS_Init();
|
OS_Init();
|
||||||
OS_InitThread();
|
OS_InitThread();
|
||||||
OS_InitTick();
|
OS_InitTick();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user