Add rayman2 source files

This commit is contained in:
2024-09-18 02:33:44 +08:00
parent bcc093f8ed
commit fb036c54fd
14339 changed files with 2596224 additions and 0 deletions

View File

@@ -0,0 +1,99 @@
/*///////////////////////////////////////////////////////////////////////////*/
/* ERROR_Dialog_ErrorInformations dialog*/
/*///////////////////////////////////////////////////////////////////////////*/
#ifndef _ERROR_DIALOG_
#define _ERROR_DIALOG_
#if _MSC_VER >= 1000
#pragma once
#endif /* _MSC_VER >= 1000*/
/****************************************/
#ifndef CPA_EXPORT
#if defined(CPA_WANTS_IMPORT)
#define CPA_EXPORT __declspec(dllimport)
#elif defined(CPA_WANTS_EXPORT)
#define CPA_EXPORT __declspec(dllexport)
#else
#define CPA_EXPORT
#endif
#endif
/****************************************/
#define ERO_C_NUMBER_OF_BITMAPS 8
#include "ErO\Ero_Stat.hpp"
/*############################################################################*/
class CPA_EXPORT ERROR_Dialog_ErrorInformations : public CDialog
{
/* Construction*/
public:
ERROR_Dialog_ErrorInformations();
~ERROR_Dialog_ErrorInformations();
public:
/* Dialog Data*/
/*{{AFX_DATA(ERROR_Dialog_ErrorInformations)*/
/* enum { IDD = IDD_DIALOG_ERROR };*/
ErO_StaticForMoreInfos m_clMIS_Script;
ErO_StaticForMoreInfos m_clMIS_Module;
ErO_StaticForMoreInfos m_clMIS_Debug;
ErO_StaticForMoreInfos m_clMIS_Additionnal;
ErO_StaticForMoreInfos m_clMIS_Action;
/*}}AFX_DATA*/
private:
HINSTANCE m_hOldInstance;
CString m_csCurrentAction;
CString m_csErrorMoreInfo;
CString m_csCurrentFileName;
CString m_csFunction;
CString m_csCurrentScriptFileName;
CString m_csErrorGravity;
CBitmap m_cbBitmap;
CBitmap m_a_cbArrayOfBitmaps[ERO_C_NUMBER_OF_BITMAPS];
/* Overrides*/
/* ClassWizard generated virtual function overrides*/
/*{{AFX_VIRTUAL(ERROR_Dialog_ErrorInformations)*/
protected:
virtual void DoDataExchange(CDataExchange* pDX); /* DDX/DDV support*/
/*}}AFX_VIRTUAL*/
/* Implementation*/
protected:
private:
void m_fn_vSetModuleText(CString csTextToDisplay = "");
void m_fn_vSetCurrentActionText(CString csTextToDisplay = "");
void m_fn_vSetCurrentFileNameText(CString csTextToDisplay = "");
void m_fn_vSetFunctionText(CString csTextToDisplay = "");
void m_fn_vSetCurrentScriptFileNameText(CString csTextToDisplay = "");
void m_fn_vSetErrorGravityText(CString csTextToDisplay = "");
void m_fn_vSetErrorMoreInfoText(CString csTextToDisplay = "");
CString m_pri_fn_csExtractFileNameFromCompletePath(CString _csCompletePath);
void m_pri_fn_vSetTextToFitWindow(CWnd *_pclWnd, CString _csTextToDisplay);
/* Generated message map functions*/
/*{{AFX_MSG(ERROR_Dialog_ErrorInformations)*/
virtual BOOL OnInitDialog();
afx_msg void OnButtonOpenScript();
afx_msg void OnButtonOpenSource();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnClose();
/*}}AFX_MSG*/
DECLARE_MESSAGE_MAP()
};
/*{{AFX_INSERT_LOCATION}}*/
/* Microsoft Developer Studio will insert additional declarations immediately before the previous line.*/
#endif /*_ERROR_DIALOG_*/

View File

@@ -0,0 +1,171 @@
/* Err.h : main header file for the ERR DLL*/
/*//////////////////////////////////////////////////*/
#ifndef _ERROR_OPERATOR_MAIN_INCLUDE_
#define _ERROR_OPERATOR_MAIN_INCLUDE_
/************************************************************************************************/
/************************************************************************************************/
/************************************************************************************************/
#if _MSC_VER >= 1000
#pragma once
#endif /* _MSC_VER >= 1000*/
/****************************************/
#ifndef CPA_EXPORT
#if defined(CPA_WANTS_IMPORT)
#define CPA_EXPORT __declspec(dllimport)
#elif defined(CPA_WANTS_EXPORT)
#define CPA_EXPORT __declspec(dllexport)
#else
#define CPA_EXPORT
#endif
#endif
/****************************************/
#include "ErO_DgEr.hpp"
#include "ErO_Op.hpp"
extern CPA_EXPORT void ERROR_g_fn_vSetGlobalInfo( CString,
CString,
enum ERROR_eErrorGravity,
CString,
CString _csModuleName = "");
extern CPA_EXPORT void ERROR_g_fn_vSetSourceInfo( CString,
short,
CString);
extern CPA_EXPORT void ERROR_g_fn_vResetGlobalInfo();
extern CPA_EXPORT void ERROR_g_fn_vResetSourceInfo();
extern CPA_EXPORT void ERROR_g_fn_vSetScriptInfo(CString, short);
extern CPA_EXPORT void ERROR_g_fn_vResetScriptInfo();
extern CPA_EXPORT void ERROR_g_fn_vAddAModuleDescriptor(CString _csModuleName,
CString _csModuleVersion,
CString _csMainProgrammerName,
CString _csMainProgrammerPhoneNumber,
CString _csMainProgrammerEMailAddress,
CString _csResponsibleName,
CString _csResponsiblePhoneNumber,
CString _csResponsibleEMailAddress,
CString _csSecondProgrammerName,
CString _csSecondProgrammerPhoneNumber,
CString _csSecondProgrammerEMailAddress
);
/*--------------------------------------------------------------------------------*/
/*------------------------------------ Debug version -----------------------------*/
/*--------------------------------------------------------------------------------*/
#ifdef _DEBUG
/*=========================================*/
/*================ ASSERT =================*/
/*=========================================*/
#define ERROR_ASSERT( BoolValueToEvaluate ) \
if ( !( BoolValueToEvaluate ) ) \
{ \
ERROR_g_fn_vSetSourceInfo(__FILE__, \
__LINE__, \
__TIMESTAMP__); \
ERROR_Dialog_ErrorInformations ErrInfoDial; \
\
if ( ErrInfoDial.DoModal() == IDOK ) \
{ \
AfxDebugBreak(); \
} \
\
ERROR_g_fn_vResetSourceInfo(); \
} \
\
ERROR_g_fn_vResetGlobalInfo();
/*=========================================*/
/*================ VERIFY =================*/
/*=========================================*/
#define ERROR_VERIFY( BoolValueToEvaluate ) ERROR_ASSERT( BoolValueToEvaluate )
/*--------------------------------------------------------------------------------*/
/*----------------------------------- Release version ----------------------------*/
/*--------------------------------------------------------------------------------*/
#else /*_DEBUG*/
/*///////////////////*/
/*Does nothing*/
/*=========================================*/
/*================ ASSERT =================*/
/*=========================================*/
#define ERROR_ASSERT( BoolValueToEvaluate )
/*=========================================*/
/*================ VERIFY =================*/
/*=========================================*/
/*///////////////////*/
/*Just realizes the Action*/
#define ERROR_VERIFY( BoolValueToEvaluate ) BoolValueToEvaluate;
#endif /*_DEBUG*/
/*--------------------------------------------------------------------------------*/
/*----------------------------------- Both versions ------------------------------*/
/*--------------------------------------------------------------------------------*/
/*///////////////////*/
/*Always tests the Action, and displays a message in case of FALSE value*/
/*=========================================*/
/*================= CHECK =================*/
/*=========================================*/
#define ERROR_CHECK( BoolValueToEvaluate ) \
if ( !( BoolValueToEvaluate ) ) \
{ \
ERROR_g_fn_vSetSourceInfo(__FILE__, \
__LINE__, \
__TIMESTAMP__); \
ERROR_Dialog_ErrorInformations ErrInfoDial; \
\
if ( ErrInfoDial.DoModal() == IDOK ) \
{ \
AfxDebugBreak(); \
} \
\
ERROR_g_fn_vResetSourceInfo(); \
} \
\
ERROR_g_fn_vResetGlobalInfo();
/*///////////////////*/
/* Global info*/
/*=========================================*/
#define ERROR_PREPARE(Action, \
Function, \
ErrorGravity, \
MoreInfo) \
ERROR_g_fn_vSetGlobalInfo(Action, Function, ErrorGravity, MoreInfo);
/*=========================================*/
#define ERROR_PREPARE_M(Module, \
Action, \
Function, \
ErrorGravity, \
MoreInfo) \
ERROR_g_fn_vSetGlobalInfo(Action, Function, ErrorGravity, MoreInfo, Module);
/*///////////////////*/
/* For scripts*/
/*=========================================*/
#define ERROR_SET_SCRIPT_INFO(File) \
ERROR_g_fn_vSetScriptInfo(File->a_szOpenFileName, \
fnp_st_Cxt_Compute(0)->stPosition.uiLineInFile);
#define ERROR_RESET_SCRIPT_INFO \
ERROR_g_fn_vResetScriptInfo();
/************************************************************************************************/
/************************************************************************************************/
/************************************************************************************************/
#endif /* _ERROR_OPERATOR_MAIN_INCLUDE_*/

View File

@@ -0,0 +1,49 @@
/* Error Operator*/
/**/
/* Defined by YB*/
/*////////////////////////*/
#ifndef _ERROR_OPERATOR_MAIN_CLASS_
#define _ERROR_OPERATOR_MAIN_CLASS_
/*############################################################################*/
typedef enum ERROR_eErrorGravity
{
E_ERROR_GRAVITY_WARNING,
E_ERROR_GRAVITY_INSTABLE,
E_ERROR_GRAVITY_FATAL,
E_ERROR_GRAVITY_UNKNOWN,
} ERROR_tdeErrorGravity;
/*############################################################################*/
/*Module Info*/
extern CString g_csModuleName;
/*Source Info*/
extern CString g_csCurrentFileName;
extern short g_wCurrentFileLine;
extern CString g_csLastModif;
/*Global Info*/
extern CString g_csCurrentAction;
extern CString g_csCurrentFunction;
extern CString g_csAddedInfo;
extern enum ERROR_eErrorGravity g_eErrorGravity;
/*Script Info*/
extern CString g_csCurrentScriptFileName;
extern short g_wCurrentScriptLine;
/*Programmers Info*/
extern class ErrorOperator_TeamList g_clListOfTeams;
extern CStringList g_cslGravityMessages;
extern CStringList g_cslGravityExplanations;
#define ERO_C_szUnknown " < Unknown > "
#endif /*_ERROR_OPERATOR_MAIN_CLASS_*/

View File

@@ -0,0 +1,65 @@
#if !defined(AFX_ERO_STAT_HPP__DF0D3851_6662_11D1_B657_006097828C2B__INCLUDED_)
#define AFX_ERO_STAT_HPP__DF0D3851_6662_11D1_B657_006097828C2B__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif /* _MSC_VER >= 1000*/
/* ErO_Stat.hpp : header file*/
/**/
/*///////////////////////////////////////////////////////////////////////////*/
typedef enum ErO_eStaticType
{
ERO_STATIC_TYPE__UNKNOWN = 0,
ERO_STATIC_TYPE__MODULE,
ERO_STATIC_TYPE__ACTION,
ERO_STATIC_TYPE__DEBUG,
ERO_STATIC_TYPE__SCRIPT,
ERO_STATIC_TYPE__ADDITIONNAL,
/*Always at last position !!*/
ERO_STATIC_TYPE__NUMBER_OF_TYPES
} ErO_tdeStaticType;
/*///////////////////////////////////////////////////////////////////////////*/
/* ErO_StaticForMoreInfos window*/
class ErO_StaticForMoreInfos : public CStatic
{
/* Construction*/
public:
ErO_StaticForMoreInfos();
/* Attributes*/
public:
private:
ErO_tdeStaticType m_pri_tdeType;
/* Operations*/
public:
void m_pub_fn_vSetType(ErO_tdeStaticType _tdeType);
/* Overrides*/
/* ClassWizard generated virtual function overrides*/
/*{{AFX_VIRTUAL(ErO_StaticForMoreInfos)*/
/*}}AFX_VIRTUAL*/
/* Implementation*/
public:
virtual ~ErO_StaticForMoreInfos();
/* Generated message map functions*/
protected:
/*{{AFX_MSG(ErO_StaticForMoreInfos)*/
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
/*}}AFX_MSG*/
DECLARE_MESSAGE_MAP()
};
/*///////////////////////////////////////////////////////////////////////////*/
/*{{AFX_INSERT_LOCATION}}*/
/* Microsoft Developer Studio will insert additional declarations immediately before the previous line.*/
#endif /* !defined(AFX_ERO_STAT_HPP__DF0D3851_6662_11D1_B657_006097828C2B__INCLUDED_)*/