parent
65682dd913
commit
9498fe13be
15 changed files with 117 additions and 16 deletions
|
@ -2,7 +2,15 @@
|
||||||
|
|
||||||
#include "WindowsWrapper.h"
|
#include "WindowsWrapper.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
void InitBossLife(void);
|
void InitBossLife(void);
|
||||||
BOOL StartBossLife(int code_event);
|
BOOL StartBossLife(int code_event);
|
||||||
BOOL StartBossLife2(void);
|
BOOL StartBossLife2(void);
|
||||||
void PutBossLife(void);
|
void PutBossLife(void);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
|
@ -4,6 +4,10 @@
|
||||||
|
|
||||||
#include "CommonDefines.h"
|
#include "CommonDefines.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
struct CREDIT
|
struct CREDIT
|
||||||
{
|
{
|
||||||
long size;
|
long size;
|
||||||
|
@ -53,3 +57,7 @@ int GetScriptNumber(const char *text);
|
||||||
void SetCreditIllust(int a);
|
void SetCreditIllust(int a);
|
||||||
void CutCreditIllust(void);
|
void CutCreditIllust(void);
|
||||||
int Scene_DownIsland(HWND hWnd, int mode);
|
int Scene_DownIsland(HWND hWnd, int mode);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
|
@ -2,6 +2,10 @@
|
||||||
|
|
||||||
#include "WindowsWrapper.h"
|
#include "WindowsWrapper.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
void InitFade(void);
|
void InitFade(void);
|
||||||
void SetFadeMask(void);
|
void SetFadeMask(void);
|
||||||
void ClearFade(void);
|
void ClearFade(void);
|
||||||
|
@ -10,3 +14,7 @@ void StartFadeIn(signed char dir);
|
||||||
void ProcFade(void);
|
void ProcFade(void);
|
||||||
void PutFade(void);
|
void PutFade(void);
|
||||||
BOOL GetFadeActive(void);
|
BOOL GetFadeActive(void);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
|
@ -2,6 +2,10 @@
|
||||||
|
|
||||||
#include "WindowsWrapper.h"
|
#include "WindowsWrapper.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
extern unsigned char gFlagNPC[1000];
|
extern unsigned char gFlagNPC[1000];
|
||||||
extern unsigned char gSkipFlag[8];
|
extern unsigned char gSkipFlag[8];
|
||||||
|
|
||||||
|
@ -13,3 +17,7 @@ BOOL GetNPCFlag(long a);
|
||||||
void SetSkipFlag(long a);
|
void SetSkipFlag(long a);
|
||||||
void CutSkipFlag(long a);
|
void CutSkipFlag(long a);
|
||||||
BOOL GetSkipFlag(long a);
|
BOOL GetSkipFlag(long a);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
|
@ -1,5 +1,9 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
enum KeyBind
|
enum KeyBind
|
||||||
{
|
{
|
||||||
//The movement keys go in the order of left, right, up and down
|
//The movement keys go in the order of left, right, up and down
|
||||||
|
@ -53,3 +57,7 @@ extern long gKeyRight;
|
||||||
extern long gKeyDown;
|
extern long gKeyDown;
|
||||||
|
|
||||||
void GetTrg(void);
|
void GetTrg(void);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
|
@ -20,6 +20,7 @@
|
||||||
#include "Organya.h"
|
#include "Organya.h"
|
||||||
#include "Profile.h"
|
#include "Profile.h"
|
||||||
#include "Sound.h"
|
#include "Sound.h"
|
||||||
|
#include "Tags.h"
|
||||||
#include "Triangle.h"
|
#include "Triangle.h"
|
||||||
|
|
||||||
LRESULT __stdcall WindowProcedure(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam);
|
LRESULT __stdcall WindowProcedure(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam);
|
||||||
|
|
|
@ -2,6 +2,10 @@
|
||||||
|
|
||||||
#include "WindowsWrapper.h"
|
#include "WindowsWrapper.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
extern HWND ghWnd;
|
extern HWND ghWnd;
|
||||||
extern BOOL bFullscreen;
|
extern BOOL bFullscreen;
|
||||||
|
|
||||||
|
@ -9,3 +13,7 @@ void PutFramePerSecound(void);
|
||||||
unsigned long GetFramePerSecound(void);
|
unsigned long GetFramePerSecound(void);
|
||||||
|
|
||||||
BOOL SystemTask(void);
|
BOOL SystemTask(void);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
|
@ -2,9 +2,17 @@
|
||||||
|
|
||||||
#include "WindowsWrapper.h"
|
#include "WindowsWrapper.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
extern char gMapping[0x80];
|
extern char gMapping[0x80];
|
||||||
|
|
||||||
int MiniMapLoop(void);
|
int MiniMapLoop(void);
|
||||||
BOOL IsMapping(void);
|
BOOL IsMapping(void);
|
||||||
void StartMapping(void);
|
void StartMapping(void);
|
||||||
void SetMapping(int a);
|
void SetMapping(int a);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
|
@ -2,16 +2,20 @@
|
||||||
|
|
||||||
#include "WindowsWrapper.h"
|
#include "WindowsWrapper.h"
|
||||||
|
|
||||||
struct ARMS_LEVEL
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
typedef struct ARMS_LEVEL
|
||||||
{
|
{
|
||||||
int exp[3];
|
int exp[3];
|
||||||
};
|
} ARMS_LEVEL;
|
||||||
|
|
||||||
struct REC
|
typedef struct REC
|
||||||
{
|
{
|
||||||
long counter[4];
|
long counter[4];
|
||||||
unsigned char random[4];
|
unsigned char random[4];
|
||||||
};
|
} REC;
|
||||||
|
|
||||||
extern ARMS_LEVEL gArmsLevelTable[14];
|
extern ARMS_LEVEL gArmsLevelTable[14];
|
||||||
|
|
||||||
|
@ -30,3 +34,7 @@ void PutMyAir(int x, int y);
|
||||||
void PutTimeCounter(int x, int y);
|
void PutTimeCounter(int x, int y);
|
||||||
BOOL SaveTimeCounter(void);
|
BOOL SaveTimeCounter(void);
|
||||||
int LoadTimeCounter(void);
|
int LoadTimeCounter(void);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
|
@ -2,15 +2,19 @@
|
||||||
|
|
||||||
#include "WindowsWrapper.h"
|
#include "WindowsWrapper.h"
|
||||||
|
|
||||||
struct PIXTONEPARAMETER2
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
typedef struct PIXTONEPARAMETER2
|
||||||
{
|
{
|
||||||
int model;
|
int model;
|
||||||
double num;
|
double num;
|
||||||
int top;
|
int top;
|
||||||
int offset;
|
int offset;
|
||||||
};
|
} PIXTONEPARAMETER2;
|
||||||
|
|
||||||
struct PIXTONEPARAMETER
|
typedef struct PIXTONEPARAMETER
|
||||||
{
|
{
|
||||||
int use;
|
int use;
|
||||||
int size;
|
int size;
|
||||||
|
@ -24,7 +28,11 @@ struct PIXTONEPARAMETER
|
||||||
int pointBy;
|
int pointBy;
|
||||||
int pointCx;
|
int pointCx;
|
||||||
int pointCy;
|
int pointCy;
|
||||||
};
|
} PIXTONEPARAMETER;
|
||||||
|
|
||||||
void MakeWaveTables(void);
|
void MakeWaveTables(void);
|
||||||
BOOL MakePixelWaveData(const PIXTONEPARAMETER *ptp, unsigned char *pData);
|
BOOL MakePixelWaveData(const PIXTONEPARAMETER *ptp, unsigned char *pData);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
|
@ -11,6 +11,10 @@
|
||||||
|
|
||||||
#include "PixTone.h"
|
#include "PixTone.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
#define SE_MAX 160 // According to the Organya source code release, this is the real name for this constant
|
#define SE_MAX 160 // According to the Organya source code release, this is the real name for this constant
|
||||||
|
|
||||||
enum SoundEffectNames
|
enum SoundEffectNames
|
||||||
|
@ -42,3 +46,7 @@ void ChangeSoundFrequency(int no, DWORD rate);
|
||||||
void ChangeSoundVolume(int no, long volume);
|
void ChangeSoundVolume(int no, long volume);
|
||||||
void ChangeSoundPan(int no, long pan);
|
void ChangeSoundPan(int no, long pan);
|
||||||
int MakePixToneObject(const PIXTONEPARAMETER *ptp, int ptp_num, int no);
|
int MakePixToneObject(const PIXTONEPARAMETER *ptp, int ptp_num, int no);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
|
@ -2,5 +2,13 @@
|
||||||
|
|
||||||
#include "WindowsWrapper.h"
|
#include "WindowsWrapper.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
extern char gModulePath[MAX_PATH];
|
extern char gModulePath[MAX_PATH];
|
||||||
extern char gDataPath[MAX_PATH];
|
extern char gDataPath[MAX_PATH];
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
|
@ -120,8 +120,10 @@ void EncryptionBinaryData2(unsigned char *pData, long size)
|
||||||
// Load generic .tsc
|
// Load generic .tsc
|
||||||
BOOL LoadTextScript2(const char *name)
|
BOOL LoadTextScript2(const char *name)
|
||||||
{
|
{
|
||||||
// Get path
|
|
||||||
char path[MAX_PATH];
|
char path[MAX_PATH];
|
||||||
|
FILE *fp;
|
||||||
|
|
||||||
|
// Get path
|
||||||
sprintf(path, "%s\\%s", gDataPath, name);
|
sprintf(path, "%s\\%s", gDataPath, name);
|
||||||
|
|
||||||
gTS.size = GetFileSizeLong(path);
|
gTS.size = GetFileSizeLong(path);
|
||||||
|
@ -129,7 +131,7 @@ BOOL LoadTextScript2(const char *name)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
// Open file
|
// Open file
|
||||||
FILE *fp = fopen(path, "rb");
|
fp = fopen(path, "rb");
|
||||||
if (fp == NULL)
|
if (fp == NULL)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
@ -150,15 +152,19 @@ BOOL LoadTextScript2(const char *name)
|
||||||
// Load stage .tsc
|
// Load stage .tsc
|
||||||
BOOL LoadTextScript_Stage(const char *name)
|
BOOL LoadTextScript_Stage(const char *name)
|
||||||
{
|
{
|
||||||
// Open Head.tsc
|
|
||||||
char path[MAX_PATH];
|
char path[MAX_PATH];
|
||||||
|
FILE *fp;
|
||||||
|
long head_size;
|
||||||
|
long body_size;
|
||||||
|
|
||||||
|
// Open Head.tsc
|
||||||
sprintf(path, "%s\\%s", gDataPath, "Head.tsc");
|
sprintf(path, "%s\\%s", gDataPath, "Head.tsc");
|
||||||
|
|
||||||
long head_size = GetFileSizeLong(path);
|
head_size = GetFileSizeLong(path);
|
||||||
if (head_size == INVALID_FILE_SIZE)
|
if (head_size == INVALID_FILE_SIZE)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
FILE *fp = fopen(path, "rb");
|
fp = fopen(path, "rb");
|
||||||
if (fp == NULL)
|
if (fp == NULL)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
@ -171,7 +177,7 @@ BOOL LoadTextScript_Stage(const char *name)
|
||||||
// Open stage's .tsc
|
// Open stage's .tsc
|
||||||
sprintf(path, "%s\\%s", gDataPath, name);
|
sprintf(path, "%s\\%s", gDataPath, name);
|
||||||
|
|
||||||
long body_size = GetFileSizeLong(path);
|
body_size = GetFileSizeLong(path);
|
||||||
if (body_size == INVALID_FILE_SIZE)
|
if (body_size == INVALID_FILE_SIZE)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
struct TEXT_SCRIPT
|
typedef struct TEXT_SCRIPT
|
||||||
{
|
{
|
||||||
// Path (reload when exit teleporter menu/inventory)
|
// Path (reload when exit teleporter menu/inventory)
|
||||||
char path[MAX_PATH];
|
char path[MAX_PATH];
|
||||||
|
@ -55,7 +55,7 @@ struct TEXT_SCRIPT
|
||||||
|
|
||||||
// NOD cursor blink
|
// NOD cursor blink
|
||||||
unsigned char wait_beam;
|
unsigned char wait_beam;
|
||||||
};
|
} TEXT_SCRIPT;
|
||||||
|
|
||||||
BOOL InitTextScript2(void);
|
BOOL InitTextScript2(void);
|
||||||
void EndTextScript(void);
|
void EndTextScript(void);
|
||||||
|
|
|
@ -345,6 +345,12 @@
|
||||||
</File>
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath="..\src\TextScr.cpp">
|
RelativePath="..\src\TextScr.cpp">
|
||||||
|
<FileConfiguration
|
||||||
|
Name="Release|Win32">
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
CompileAs="1"/>
|
||||||
|
</FileConfiguration>
|
||||||
</File>
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath="..\src\Triangle.cpp">
|
RelativePath="..\src\Triangle.cpp">
|
||||||
|
|
Loading…
Add table
Reference in a new issue