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,46 @@
// DlgOpt.h: interface for the CDlgUpdateOptions class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_DLGOPT_H__50A6C4E1_FEA2_11D1_A246_006097671DC9__INCLUDED_)
#define AFX_DLGOPT_H__50A6C4E1_FEA2_11D1_A246_006097671DC9__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
#include "_Project.h"
/*
=======================================================================================
CDlgUpdateOptions dialog
=======================================================================================
*/
class CDlgUpdateOptions : public CDialog
{
// Construction
public:
CDlgUpdateOptions(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CUpdateOptionsDlg)
enum { IDD = IDD_DIALOG_UPDATEOPTIONS };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CDlgUpdateOptions)
virtual BOOL OnInitDialog();
virtual void OnOK();
afx_msg void OnCheckUseBinaryData();
afx_msg void OnCheckAskAtEachTime();
//afx_msg BOOL OnCheckSavePrgPreferences();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#endif // !defined(AFX_DLGOPT_H__50A6C4E1_FEA2_11D1_A246_006097671DC9__INCLUDED_)

View File

@@ -0,0 +1,83 @@
#if !defined (__GameITF_H__)
#define __GameITF_H__
/******************************************/
#if _MSC_VER >= 1000
#pragma once
#endif /* _MSC_VER >= 1000 */
/******************************************/
#if defined(__cplusplus)
extern "C"
{
#endif /* __cplusplus */
void fn_vChangeWindowTitle(char *szWindowName);
void fn_vSetEngineWorldForITF(HIE_tdxHandleToSuperObject _hActualWorld);
GLD_tdhDevice fn_hGetGLDDevice(unsigned long _ulValue);
GLD_tdhViewport fn_hGetGLDViewport(unsigned long _ulValue);
void GAMITF_fn_vResizeGameViewport(void);
void *fn_hGetDrawSemaphore(void);
void fn_vForceToCloseApplication();
void fn_vEditorDrawObjectExpect0(void);
void fn_vEditorDataHasChange(void);
unsigned char fn_ucIsEditorsActive(void);
void fn_vEnableEditorsMainWnd(unsigned char _ulValue);
void fn_vEditorSetCurrentMap(char *_szCurrentMap);
HWND fn_hGetBaseFrameWnd(void);
void fn_vInitSoundStruct(void *SndInit);
void fn_vSwapDeviceToFullScreen(void);
char *fn_szGetExeCommandLine(void);
void MAIN_fn_vSetDeviceWidth(unsigned long ulWidth,unsigned long ulHeigh);
unsigned long MAIN_fn_ulGetDeviceWidth(void);
unsigned long MAIN_fn_ulGetDeviceHeight(void);
//VL0
void MAIN_fn_vSetDeviceMode(unsigned long ulIsFullScreen );
unsigned long MAIN_fn_ulDeviceIsFullScreen(void);
//EVL
BOOL fn_bInFullScreen(void);
BOOL fn_bBadRes(void);
void fn_vChangeDeviceResolution( void );
//ANNECY VL SPOFLAG 03/12/97{
BOOL fn_bIsEditorsActive(void);
//ENDANNECY VL SPOFLAG}
HINSTANCE fn_hGetApplicationInstance(void);
HWND fn_hGetApplicationWindow(void);
HWND fn_hGetApplicationWindowWithChoise(BOOL _isFullScreen);//chbani
//************************************************************************************
//************************************************************************************
//************************** nouvelle synchro ****************************************
//************************************************************************************
//************************************************************************************
//************************************************************************************
//************************************************************************************
void fn_vCheckPause();
void fn_vCheckEditor();
void fn_vForceEditor();
void fn_vCheckEnd();
void fn_vEngineHasFinished();
ACP_tdxBool fn_bTestIfEndOfAppliAsked();
ACP_tdxBool fn_bTestIfEditorRunning();
void fn_vChoicePreferences(void);
#if defined(__cplusplus)
}
#endif /* __cplusplus */
#endif /* __GameITF_H__ */

View File

@@ -0,0 +1,43 @@
#if !defined(__InfoWin_h__)
#define __InfoWin_h__
#undef EXTERN
#undef extern
#if !defined(D_InfoWin_VariableDefine)
#define EXTERN extern
#else
#define EXTERN
#endif /* D_InfoWin_VariableDefine */
#if defined(__cplusplus)
extern "C"
{
#endif /* __cplusplus */
struct tdstInfoWindow_
{
char *szAppName;
WNDCLASS wndclass;
HINSTANCE hInstance;
HWND hWnd;
HDC hDC;
RECT rClientRect;
char zsString[1000];
};
EXTERN struct tdstInfoWindow_ g_stInfoWindow;
void fn_vCreateInfoWindow(void);
void fn_vDestroyInfoWindow(void);
void fn_vShowInfoWindow(void);
LONG WINAPI fn_lInfoWindowProc(HWND hWnd,UINT uMsg,WPARAM wParam,LPARAM lParam);
#if defined(__cplusplus)
}
#endif /* __cplusplus */
#endif /* __InfoWin_h__ */

View File

@@ -0,0 +1,82 @@
/*=========================================================================
* ToolsCPA.h : CPA tools include
*
*
* Version 1.0
* Creation date 10/01/97
* Revision date
*
* That file needs to be compatible for all platforms.
*
* (c) Ubi Studios 1997
*=======================================================================*/
#if !defined(__MAINCPA_H__)
#define __MAINCPA_H__
/******************************************/
#if _MSC_VER >= 1000
#pragma once
#endif /* _MSC_VER >= 1000 */
/******************************************/
/****************************************
* Here is the list of disabled WARNING *
****************************************/
#if defined(VISUAL)
#pragma warning(disable:4010) //* single-line comment contains line-continuation character *
#pragma warning(disable:4032) //* formal parameter 1 has different type when promoted *
#pragma warning(disable:4100) //* unreferenced formal parameter *
#pragma warning(disable:4115) //* named type definition in parentheses *
#pragma warning(disable:4127) //* conditional expression is constant *
#pragma warning(disable:4201) //* nonstandard extension used : nameless struct/union *
#pragma warning(disable:4214) //* nonstandard extension used : bit field types other than int *
#pragma warning(disable:4310) //* cast truncates constant value *
#pragma warning(disable:4514) //* unreferenced inline function has been removed *
#pragma warning(disable:4702) //* unreachable code *
#pragma warning(disable:4711) //* selected for automatic inline expansion *
#endif /* VISUAL */
#include "ACP_Base.h"
#if defined(WIN32)&&defined(__cplusplus)
#include "stdafx.h"
#endif /* WIN32&&__cplusplus */
#define HieFriend
#include "CPA_Expt.h"
#include "CPA_Std.h"
#include "GEO.h"
#include "SAI.h"
#include "GLI.h"
#include "COL.h"
#include "MEC.h"
// Shaitan Clean Env {
//#include "ENV.h"
//End Shaitan Clean Env }
#include "SND.h"
// Shaitan Clean Env {
//#include "SRF.h"
//End Shaitan Clean Env }
#include "SCT.h"
#include "SPO.h"
#include "LST.h"
#include "AI.h"
#include "ERM.h"
#include "GMT.h"
#include "INO.h"
#include "IPT.h"
#include "MMG.h"
#include "SCR.h"
#include "TMR.h"
#include "RND.h"
#include "PCS.h"
#include "PO.h"
//#include "FON.h"
#include "FIL.h"
#include "PRT.h"
#include "VIG.h"
#include "GAM.h"
#endif /* __MAINCPA_H__ */

View File

@@ -0,0 +1,361 @@
/*===================================================================
* Editors ID
*=================================================================*/
#ifndef __EDITID_H__
#define __EDITID_H__
#include "itf/stddllid.h"
// ============================================================================
// ============================================================================
// Name of the DLLs
// ============================================================================
// ============================================================================
// Object DLLs
#define C_szDLLZDxName "Zdd"
#define C_szDLLWayPointName "WayPoint"
#define C_szDLLActorName "Actor"
#define C_szDLLLightName "Light"
// Tool DLL
#define C_szDLLActionName "Action"
#define C_szDLLFamilyName "Family"
#define C_szDLLAnimationName "Animation"
#define C_szDLLTool3DName "Tool3D"
#define C_szDLLViewerName "Viewer"
#define C_szDLLMaterialName "Material"
#define C_szDLLMecaName "Mechanics"
#define C_szDLLObjectTableName "ObjectTable"
#define C_szDLLSoundName "Sound"
#define C_szDLLPartGenName "ParticlesGenerator"
#define C_szDLLTutorialName "Tutorial"
#define C_szDLLAIEditorName "ArtificialIntelligence"
// Shaitan => streaming (banks editor)
#define C_szDLLBanksEditorName "BanksEditor"
// End Shaitan => streaming (banks editor)
// ============================================================================
// ============================================================================
// Object Type Name
// ============================================================================
// ============================================================================
// Sector.dll
#define C_szSurfaceTypeName "Surface"
#define C_szEnvironmentTypeName "Environment"
#define C_szMecEnvironmentTypeName "MecEnvironment"
#define C_szVisEnvironmentTypeName "VisEnvironment"
// Material.dll
#define C_szGameMaterialTypeName "GameMaterial"
#define C_szVisualMaterialTypeName "VisualMaterial"
#define C_szMechanicsMaterialTypeName "MechanicsMaterial"
#define C_szCollideMaterialTypeName "CollideMaterial"
#define C_szTextureTypeName "Texture"
#define C_szMaterialColName "MaterialCol"
// _TAction.dll
#define C_szActionTypeName "Action"
#define C_szStateTypeName "State"
#define C_szZATypeName "ZA"
#define C_szZAListTypeName "ZAList"
// _TFamily.dll
#define C_szFamilyTypeName "Family"
#define C_szTestPointsListTypeName "TestPointsList"
#define C_szChannelTypeName "Channel"
// _TAnim.dll
#define C_szAnimationTypeName "Animation"
// _ObjTable.dll
#define C_szObjectTableTypeName "ObjectTable"
// Zdd.dll
#define C_szZddName "ZDD"
#define C_szZdeName "ZDE"
#define C_szZdmName "ZDM"
#define C_szZdrName "ZDR"
#define C_szBoundingVolumeName "BV"
#define C_szWayName "Way"
// Actor.dll
#define C_szActorInstanceTypeName "Actor"
#define C_szActorModelTypeName "Actor_Model"
#define C_szGenericNameListType "NameList"
#define C_szZDeNameListType C_szGenericNameListType C_szZdeName
#define C_szZDmNameListType C_szGenericNameListType C_szZdmName
#define C_szZDdNameListType C_szGenericNameListType C_szZddName
#define C_szZDrNameListType C_szGenericNameListType C_szZdrName
#define C_szWayNameListType C_szGenericNameListType C_szWayName
#define C_szEdtListTypeName "EdtList"
#define C_szObjectNameType "ObjectName"
//Meca.dll
#define C_szMecaCardTypeName "MecaCard"
// Object table DLL
#define C_szObjectTableTypeNAme "ObjectTable"
// Waypoint.dll
#define C_szWayPointTypeName "Waypoint"
#define C_szWayTypeName "Way"
//ROMTEAM Networks (Gabriela Dumitrascu 25/02/98)
#define C_szGraphTypeName "Graph"
//ENDROMTEAM Networks (Gabriela Dumitrascu)
// Light.dll
#define C_szLightTypeName "Light"
// Sound DLL
#define C_szSoundEventTypeName "SoundEvent"
#define C_szSoundInfoMaterialTypeName "SIF_Material"
#define C_szSoundInfoEnvironmentTypeName "SIF_Environment"
#define C_szLipSynchroTypeName "LipsSynchro"
// Particles Generator DLL
#define C_szPartGenGeneratorName "ParticlesGenerator"
#define C_szPartGenSourceName "GeneratorSource"
#define C_szPartGenSystemName "GeneratorSystem"
#define C_szPartGenEnvName "GeneratorEnv"
//Artificial Intelligence DLL
#define C_szIABehaviourTypeName "IA_Behaviour"
// Shaitan => streaming (banks editor)
#define C_szBankTypeName "Bank"
// End Shaitan => streaming (banks editor)
// ============================================================================
// ============================================================================
// Query
// ============================================================================
// ============================================================================
// Tool3D
// ======
// Open
#define C_wTool3D_None 0
#define C_wTool3D_Char 1
#define C_wTool3D_Mod_Object 2
#define C_wTool3D_Mod_List 3
#define C_wTool3D_Table 4
#define C_wTool3D_Geom_Object 5
#define C_wTool3D_Viewer 6
#define C_wTool3D_Object 7
// Close
// ...
// Action
#define C_wTool3D_QA_ShowGrid 11
#define C_wTool3D_QA_HideGrid 12
#define C_wTool3D_QA_ShowSelect 13
#define C_wTool3D_QA_HideSelect 14
#define C_wTool3D_QA_NewChar 20
#define C_wTool3D_QA_NewSuperObject 21
#define C_wTool3D_QA_NewTable 22
#define C_wTool3D_QA_NewObject 23
// Info
#define C_wTool3D_QI_CanOpenChar 1
#define C_wTool3D_QI_CanOpenMod 2
#define C_wTool3D_QI_CanOpenGeom 3
#define C_wTool3D_QI_CanOpenTable 4
#define C_wTool3D_QI_CanOpenViewer 5
#define C_wTool3D_QI_CanOpenObject 6
#define C_wTool3D_QI_GetState 10
#define C_wTool3D_QI_GetWorld 11
#define C_wTool3D_QI_GetDevice 12
#define C_wTool3D_QI_GetContact 13
#define C_wTool3D_QI_GetSOOnGrid 14
//Actor
//=====
#define C_uiActor_GetANameList 1
#define C_uiActor_CreateANewObjectList 2
#define C_uiActor_DeleteAnObjectList 3
#define C_uiActor_GetAnObjectList 4
#define C_uiActor_SetAnObjectList 5
#define C_uiActor_SetAnObjectInObjectList 6
#define C_uiActor_GetFirstActorUsingThisList 7
#define C_uiActor_LoadNamesList 8
#define C_uiActor_DisplayActor 10
#define C_uiActor_GetDesignerVariablesView 11
#define C_uiActor_GetIndexOfName 12
#define C_uiActor_GetSelectedActor 13
#define C_uiActor_GetDocument 14
#define C_uiActor_ActionModif 16
#define C_uiActor_ActionDeleted 17
#define C_uiActor_ActionRestored 18
#define C_uiActor_ObjectsTableLoaded 19
#define C_uiActor_IsAnInstance 20
#define C_uiActor_AddDataInWatch 21
#define C_uiActor_RemoveDataFromWatch 22
#define C_uiActor_UpdateTreeView 23
#define C_uiActor_LoadFamilyModels 24
#define C_uiActor_GetAnActorInstance 25
#define C_uiActor_DeleteTempActorInstance 26
// AI
// ===
#define C_uiAI_GetNewDesignerVariableList 01
#define C_uiAI_DeleteDesignerVariableList 02
#define C_uiAI_DesignerVariableView_UpdateDisplayWithValues 10
#define C_uiAI_DesignerVariableView_UpdateDisplay 11
#define C_uiAI_DesignerVariableView_UpdateControls 12
#define C_uiAI_DesignerVariableView_GetOldHeight 13
#define C_uiAI_DesignerVariableView_SetOldHeight 14
#define C_uiAI_DesignerVariableView_GetRuntimeClass 15
#define C_uiAI_GetNewIA 20
#define C_uiAI_GetNewCopyOfIA 21
#define C_uiAI_DeleteIA 22
#define C_uiAI_ShowIA 23
#define C_uiAI_LoadIA 24
#define C_uiAI_ProcessIA 25
#define C_uiAI_SaveIA 26
#define C_uiAI_UpdateIA 27
#define C_uiAI_SaveInitValuesInBrainMS 28
#define C_uiAI_MustSaveAIEntryInModel 29
#define C_uiAI_GetDsgVarName 30
#define C_uiAI_ShowBehaviour 31
#define C_uiAI_ShowEditor 40
#define C_uiAI_HideEditor 41
#define C_uiAI_HasLostFocus 42
#define C_uiAI_MustBuildDebugInfo 50
#define C_uiAI_GetBehaviourName 51
#define C_uiAI_ClearExecutedNodes 52
#define C_uiAI_SetOneExecutedNode 53
#define C_uiAI_ShowBehaviourByEngineNode 54
#define C_uiAI_ShowBehaviourByName 55
#define C_uiAI_ShowFlags 60
#define C_uiAI_ViewVariable 61
#define C_uiAI_DesignerVariableView_HideVariables 62
#define C_uiAI_DesignerVariableView_ShowVariables 63
// BEGIN ROMTEAM Cristi Petrescu 98-08-
#define C_uiAI_GetVariableValue 64
#define C_uiAI_GetVariableIndex 65
// END ROMTEAM Cristi Petrescu 98-08-
#define C_uiAI_AddVariableInWatch 70
// Shaitan => state list in the level
#define C_uiAI_ProcessModifiedIA 71
// End Shaitan => state list in the level
// Shaitan => optimisation lists in the level
#define C_uiAI_UpdateAndProcessIA 72
// End Shaitan => optimisation lists in the level
// Zone
// ====
// OnQueryAction
#define C_uiQueryEditAnObject 1
#define C_uiQueryEditAnObjectList 2
#define C_uiQueryAnObjectHasBeenChanged 3
#define C_uiQueryCreateZDxObject 4
#define C_uiQueryCreateZDxTestPoints 5
// OnQueryInfos
#define C_uiQueryInfoT3DStateChange 1
#define C_uiQueryGetZDxType 2
// Answer to the OnQueryInfos
#define C_lNotAZone 0
#define C_lZddOfActor 1
#define C_lZdeOfActor 2
#define C_lZdmOfActor 3
#define C_lZdrOfActor 4
#define C_lZddOfModule 5
#define C_lZdeOfModule 6
#define C_lZdmOfModule 7
#define C_lZdrOfModule 8
//ROMTEAM WorldEditor (Cristi Petrescu 15/12/97)
#define C_uiQueryTypeOfZoneByGeometricObject 6
//ENDROMTEAM WorldEditor (Cristi Petrescu)
// Way
// ===
// C_uiQueryEditAnObject 1
// C_uiQueryEditAnObjectList 2
// C_uiQueryAnObjectHasBeenChanged 3 -> shared with Zdx
#define C_uiQueryCreateWayObject 4
#define C_uiQueryInsertWayObject 5
#define C_uiQueryDeleteWayObject 6
// Family
// ======
#define C_uiSaveFamilies 1
#define C_uiLoadAFamily 2
#define C_uiGetUnLoadedFamiliesList 3
#define C_uiGetChannel 4
#define C_uiCreateTPList 5
#define C_uiGetTestPoint 6
#define C_uiUpdateFamilies 7
#define C_uiSetCompleteLoadModeTFA 8
#define C_uiGetCompleteLoadModeTFA 10
// Action
// ======
#define C_uiLoadAllActions 1
#define C_uiSaveAction 2
#define C_uiSaveStates 3
#define C_uiRemoveZone 4
#define C_uiLoadZA 5
#define C_uiLoadZAList 6
#define C_uiInsertZone 7
#define C_uiUpdateFamiliesList 8
#define C_uiOpenWithNone 10
#define C_uiOpenWithFamily 11
#define C_uiOpenWithAction 12
#define C_uiOpenWithState 13
#define C_uiOpenWithNameList 14
#define C_uiOpenWithZAList 15
#define C_uiOpenWithZA 16
#define C_uiUpdateZAList 17
#define C_uiUpdateAnimList 18
// Material
// ========
#define C_cCreateNewGameMaterial 1
#define C_cGetDefaultGameMaterial 2
// 3DGeom
// ======
#define C_uiCreateGeometricObject 1
#define C_uiDeleteGeometricObject 2
#define C_uiComputeOGDType 3
#define C_uiGetOGDTypePath 4
#define C_uiGetOwnerByFileName 5
// Object Table
// ============
#define C_uiCreateObjectTable 1
#define C_uiDeleteObjectTable 2
#define C_uiLoadFamilyObjectTables 3
// Light
// =====
#define C_uiCreateDynamicLight 1
#define C_uiDeleteDynamicLight 2
// Sound
// =====
#define C_uiEngineLoadEvent 1
// TME
//=====
#define Cw_TME_Query_updateAfterLoading 0
// Light
//=======
#define C_uiQueryComputeRli 1
// ============================================================================
#endif // __EDITID_H__

View File

@@ -0,0 +1,5 @@
/******************************************/
#if _MSC_VER >= 1000
#pragma once
#endif /* _MSC_VER >= 1000 */
/******************************************/

Binary file not shown.

View File

@@ -0,0 +1,101 @@
#ifndef __PROJAPP_HPP__
#define __PROJAPP_HPP__
/******************************************/
#if _MSC_VER >= 1000
#pragma once
#endif /* _MSC_VER >= 1000 */
/******************************************/
/* here are the directive you must respect when changing this file :
* === don't use malloc, but use memory module functions
* === absolutely no file handling in this file
* === always specify 'void' keyword for functions parameters and return value
* === take care of upper / lower case for #include and other filenames
* === NO C++ style comentary
* === NO ASSERT, use error module equivalent function
*/
/***************************************************************
/ WIN32 PLATFORM
***************************************************************/
#ifdef WIN32 /* WIN32 platform*/
#include "ITF.h"
//
// Definition of project application
//
class _ProjectApp : public CPA_ProjectApp
{
public:
void fn_vUpdateFrameTitle(void);
void fn_vCreateEngineThread(void);
void fn_vWhenAppGainFocus(void);
void fn_vWhenAppLooseFocus(void);
void fn_vBeforeEngineStarts(void);
void fn_vAfterEngineStops(void);
void fn_vDynaFatalError(char *);
BOOL InitApplication(void);
void ExitApplication(void);
BOOL InitInstance(void);
void fn_vReinitCurrentMap(void);
#ifdef ACTIVE_EDITOR
void fn_vUpdateDynamicLights (void);
void fn_vFindDynamicLights (HIE_tdxHandleToSuperObject hCharacter, long *lNbLights, GLI_tdxHandleToLight a_hLights[]);
BOOL fn_bActivateDLL(char *szDLLName);
BOOL fn_bTreatAppKeyboard(UINT);
#endif
};
extern _ProjectApp theApp; // One instance of application
//***************************************************************
// OTHER PLATFORM
//***************************************************************
#else /*WIN32 other platform than WIN32*/
/*
* Constants for device (screen) parameters
*/
#define C_dwScreenWidth 640
#define C_dwScreenHeight 480
#define C_dwScreenDepth 8
/*
* globals for device and viewport
*/
extern GLD_tdhDevice g_hDeviceHandle;
extern GLD_tdhViewport g_hViewport;
/*
* Macros
*/
#define M_GetMainGLDDevice( num ) (&g_hDeviceHandle)
#define M_GetMainGLDViewport( num ) (&g_hViewport )
/*
* Functions
*/
/* project entrance : main function*/
int main( int argc, char *argv[] );
/* creation of main screen display*/
BOOL fn_bCreateMainDisplayScreen( void );
#endif /* WIN32*/
/***************************************************************
ALL PLATFORM
***************************************************************/
/* initialization/destruction of project*/
BOOL fn_bInitApplication( void );
void fn_vExitApplication( void );
#endif /* __PROJAPP_HPP__*/

View File

@@ -0,0 +1,26 @@
/*===================================================================
* Identification of the current project.
* Identify project name, current version and current date.
* Set define to correct strings.
*=================================================================*/
/*
* !!
* !! DO NOT PUT CPP COMMENTS IN THAT FILE
* !!
*/
/******************************************/
#if _MSC_VER >= 1000
#pragma once
#endif /* _MSC_VER >= 1000 */
/******************************************/
#ifndef __PROJID_H__
#define __PROJID_H__
#define C_szMainVersion "Mai V5.0.0" /* The format is XXX Va.b.c with Xxx is the Tag of the module */
#define C_szMainFullName "Main module" /* the complete and clear name of the module */
#define C_szMainDate "Apr 28 1997" /* The format is "Mmm dd yyyy".You can use __DATE__ but be careful that you have the control of the compilation*/
#endif /* __PROJID_H__ */

Binary file not shown.

View File

@@ -0,0 +1,32 @@
//{{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file.
// Used by _Project.rc
//
#define IDR_TOOLBAR1 303
#define IDR_MENU1 305
#define IDD_DIALOG_UPDATEOPTIONS 314
#define IDC_EDIT_DIRECTORY 2003
#define IDC_CHECK_BINARYDATA 2005
#define IDC_CHECK_ASK 2006
#define IDC_CHECK_SAVE 2007
#define IDC_CHECK_BINARYDSC 2008
#define C_uiFirstEntryMenu 4000
#define C_uiFirstPopupEntry 4000
#define DOP 4001
#define C_uiFirstCustomEntry 4500
#define ID1 4501
#define ID2 4502
#define IDF 4503
#define C_uiLastEntryMenu 5000
#define frffr 33004
// Next default values for new objects
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 307
#define _APS_NEXT_COMMAND_VALUE 33005
#define _APS_NEXT_CONTROL_VALUE 2004
#define _APS_NEXT_SYMED_VALUE 300
#endif
#endif

View File

@@ -0,0 +1,110 @@
//Microsoft Developer Studio generated resource script.
//
#include "_Project.h"
#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#include "afxres.h"
/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
// French (France) resources
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_FRA)
#ifdef _WIN32
LANGUAGE LANG_FRENCH, SUBLANG_FRENCH
#pragma code_page(1252)
#endif //_WIN32
#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//
1 TEXTINCLUDE DISCARDABLE
BEGIN
"_Project.h\0"
END
2 TEXTINCLUDE DISCARDABLE
BEGIN
"#include ""afxres.h""\r\n"
"\0"
END
3 TEXTINCLUDE DISCARDABLE
BEGIN
"// This is CPA project resource\r\n"
"#include ""x:\\CPA\\Public\\ITF\\CPARes.rc""\r\n"
"\0"
END
#endif // APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// DESIGNINFO
//
#ifdef APSTUDIO_INVOKED
GUIDELINES DESIGNINFO DISCARDABLE
BEGIN
IDD_DIALOG_UPDATEOPTIONS, DIALOG
BEGIN
LEFTMARGIN, 7
RIGHTMARGIN, 268
TOPMARGIN, 7
BOTTOMMARGIN, 80
END
END
#endif // APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//
IDD_DIALOG_UPDATEOPTIONS DIALOGEX 0, 0, 275, 87
STYLE DS_SYSMODAL | DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION
EXSTYLE WS_EX_NOPARENTNOTIFY
CAPTION "Select your Data Directory"
FONT 8, "MS Sans Serif"
BEGIN
DEFPUSHBUTTON "OK",IDOK,211,15,50,14
PUSHBUTTON "Cancel",IDCANCEL,213,45,50,14
CONTROL "Use Binary Data",IDC_CHECK_BINARYDATA,"Button",
BS_AUTOCHECKBOX | WS_TABSTOP,7,16,66,10
CONTROL "Ask at each time",IDC_CHECK_ASK,"Button",
BS_AUTOCHECKBOX | WS_TABSTOP,7,46,69,10
CONTROL "Save your choice",IDC_CHECK_SAVE,"Button",
BS_AUTOCHECKBOX | WS_TABSTOP,7,62,105,10
EDITTEXT IDC_EDIT_DIRECTORY,90,31,101,14,ES_AUTOHSCROLL
LTEXT "Name of the data directory",IDC_STATIC,91,18,100,8
CONTROL "Use Binary Desc",IDC_CHECK_BINARYDSC,"Button",
BS_AUTOCHECKBOX | WS_TABSTOP,7,31,66,10
END
#endif // French (France) resources
/////////////////////////////////////////////////////////////////////////////
#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//
// This is CPA project resource
#include "x:\CPA\Public\ITF\CPARes.rc"
/////////////////////////////////////////////////////////////////////////////
#endif // not APSTUDIO_INVOKED

View File

@@ -0,0 +1,16 @@
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//
#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
#include <afxwin.h> // MFC core and standard components
#include <afxext.h> // MFC extensions
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h> // MFC support for Windows 95 Common Controls
#endif // _AFX_NO_AFXCMN_SUPPORT

6
Rayman_X/cpa/main/Main.h Normal file
View File

@@ -0,0 +1,6 @@
#if !defined (__Main_h__)
#define __Main_h__
#include "Inc/GameITF.h"
#endif /* __Main_h__ */

View File

@@ -0,0 +1,51 @@
Just for information
\-> The module : [ERM V5.1.0 : 'Error Manager' of SEP 06 1997] is initialized with the id #0
Just for information
\-> The module : [MMG V6.0.1 : 'Memory Manager' of Mar 12 1998] is initialized with the id #1
Just for information
\-> The module : [Int V5.0.0 : 'Interface' of May 8 2006] is initialized with the id #2
Just for information
\-> The module : [GMT V5.0.0 : 'Game material module' of May 8 2006] is initialized with the id #3
Just for information
\-> The module : [SCR V5.5.2 : 'Scripts Module' of May 8 2006] is initialized with the id #4
Just for information
\-> The module : [GAM V5.7.0 : 'Game library' of Sept 01 1997] is initialized with the id #5
Just for information
\-> The module : [GEO V0.5.1 : 'Geometry Common' of May 8 2006] is initialized with the id #6
Just for information
\-> The module : [IPT V5.0.1 : 'Input devices manager' of Mai 5 1997] is initialized with the id #7
Just for information
\-> The module : [RND V5.0.1 : 'Random' of Mai 5 1997] is initialized with the id #8
Just for information
\-> The module : [CMP V5.0.0 : 'Compress and expand' of Aug 06 1997] is initialized with the id #9
Just for information
\-> The module : [SAI V5.0.0 : 'Save and initialisation' of Aug 04 1997] is initialized with the id #10
Just for information
\-> The module : [TMP V5.0.0 : 'Temporary memory' of Sep 27 1997] is initialized with the id #11
Just for information
\-> The module : [FIL V5.1.0 : 'Files and paths management' of Nov 18 1997] is initialized with the id #12
Just for information
\-> The module : [VIG V5.0.1 : 'Vignette' of Jun 7 1997] is initialized with the id #13
Just for information
\-> The module : [PO V5.1.0 : 'Physical objects' of Dec 04 1997] is initialized with the id #14
Just for information
\-> The module : [AI V5.0.0 : 'Artificial Intelligence' of Dec 5 1997] is initialized with the id #15
Just for information
\-> The module : [POS V5.0.2 : 'Position module' of 24 Apr 1997] is initialized with the id #16

View File

@@ -0,0 +1,391 @@
# Microsoft Developer Studio Project File - Name="Main" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 5.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Application" 0x0101
CFG=Main - Win32 GLIDE Debug with Editors
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
!MESSAGE NMAKE /f "Main.mak".
!MESSAGE
!MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
!MESSAGE NMAKE /f "Main.mak" CFG="Main - Win32 GLIDE Debug with Editors"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
!MESSAGE "Main - Win32 GLIDE Debug with Editors" (based on\
"Win32 (x86) Application")
!MESSAGE
# Begin Project
# PROP Scc_ProjName ""$/CPA/Main/make", PYEAAAAA"
# PROP Scc_LocalPath "."
CPP=cl.exe
MTL=midl.exe
RSC=rc.exe
# PROP BASE Use_MFC 2
# PROP BASE Use_Debug_Libraries 1
# PROP BASE Output_Dir "Main___2"
# PROP BASE Intermediate_Dir "Main___2"
# PROP BASE Ignore_Export_Lib 0
# PROP BASE Target_Dir ""
# PROP Use_MFC 2
# PROP Use_Debug_Libraries 1
# PROP Output_Dir "x:\cpa\exe\main"
# PROP Intermediate_Dir "Tmp\MaiDFEvd"
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /G5 /MD /W3 /GX /Z7 /Od /I "x:\Cpa\Public\GAM" /I "x:\Cpa\Public" /I "t:\dxsdk\sdk\inc" /I "x:\Cpa\Main\Inc" /D "VISUAL" /D "_DEBUG" /D "ACTIVE_EDITOR" /D "SECT_EDITOR" /D "CPA_WANTS_EXPORT" /D "WIN32" /D "_WINDOWS" /D "_AFXDLL" /D "_MBCS" /D "Main_APP" /D "CPA_DEBUG" /D "RASTERS" /D "USE_PROFILER" /D "ACTIVE_AIDEBUG" /Fr /FD /c /Tp
# SUBTRACT BASE CPP /WX /X /YX
# ADD CPP /nologo /G5 /MD /W3 /GX /Z7 /Od /I "x:\Cpa\Public\GAM" /I "x:\Cpa\Public" /I "t:\dxsdk\sdk\inc" /I "x:\Cpa\Main\Inc" /D "_DEBUG" /D "VISUAL" /D "WIN32" /D "USE_PROFILER" /D "MTH_CHECK" /D "ACTIVE_EDITOR" /D "CPA_WANTS_EXPORT" /D "_AFXDLL" /FD /c /Tp
# SUBTRACT CPP /WX /X /Fr /YX
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
# ADD BASE RSC /l 0x40c /i "x:\CPA\Public\ITF" /d "ACTIVE_EDITOR" /d "_DEBUG" /d "_AFXDLL"
# ADD RSC /l 0x40c /i "x:\CPA\Public\ITF" /d "ACTIVE_EDITOR" /d "_DEBUG" /d "_AFXDLL"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 t:\DxSdk\Sdk\Lib\dinput.lib t:\DxSdk\Sdk\Lib\ddraw.lib winmm.lib vfw32.lib msacm32.lib /nologo /stack:0xf4240 /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"msvcrt.lib" /nodefaultlib:"libc.lib" /out:"X:\Cpa\Exe\Main\MaiDFEvd.exe" /libpath:"x:\Cpa\Lib"
# SUBTRACT BASE LINK32 /profile
# ADD LINK32 t:\DxSdk\Sdk\Lib\dinput.lib t:\DxSdk\Sdk\Lib\ddraw.lib winmm.lib vfw32.lib msacm32.lib /nologo /stack:0xf4240 /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"msvcrt.lib" /nodefaultlib:"libc.lib" /out:"X:\Cpa\Exe\Main\MaiDFEvd.exe" /libpath:"x:\Cpa\Lib"
# SUBTRACT LINK32 /profile
# Begin Target
# Name "Main - Win32 GLIDE Debug with Editors"
# Begin Group "Sources"
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;hpj;bat;for;f90"
# Begin Source File
SOURCE=..\Src\P5\_ProjApp.cpp
# End Source File
# Begin Source File
SOURCE=..\Inc\_Project.rc
# End Source File
# Begin Source File
SOURCE=..\Src\P5\DlgOpt.cpp
# End Source File
# Begin Source File
SOURCE=..\Src\P5\GameITF.cpp
# End Source File
# Begin Source File
SOURCE=..\Src\P5\StdAfx.cpp
# End Source File
# End Group
# Begin Group "Includes"
# PROP Default_Filter "h;hpp;hxx;hm;inl;fi;fd"
# Begin Source File
SOURCE=..\Inc\_EditID.h
# End Source File
# Begin Source File
SOURCE=..\Inc\_Flags.h
# End Source File
# Begin Source File
SOURCE=..\Inc\_ProjApp.hpp
# End Source File
# Begin Source File
SOURCE=..\Inc\_Project.h
# End Source File
# Begin Source File
SOURCE=..\Inc\_ProjID.h
# End Source File
# Begin Source File
SOURCE=..\Inc\DlgOpt.h
# End Source File
# Begin Source File
SOURCE=..\Inc\GameITF.h
# End Source File
# Begin Source File
SOURCE=..\Main.h
# End Source File
# Begin Source File
SOURCE=..\Inc\MainCPA.h
# End Source File
# End Group
# Begin Group "Resources"
# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;cnt;rtf;gif;jpg;jpeg;jpe"
# End Group
# Begin Group "Libraries Debug"
# PROP Default_Filter "lib"
# Begin Source File
SOURCE=..\..\Lib\AGOP5_vd.lib
# End Source File
# Begin Source File
SOURCE=..\..\Lib\Ai_P5Evd.lib
# End Source File
# Begin Source File
SOURCE=..\..\lib\CMPP5_vd.lib
# End Source File
# Begin Source File
SOURCE=..\..\Lib\COLP5evd.lib
# End Source File
# Begin Source File
SOURCE=..\..\Lib\DPTP5_vd.lib
# End Source File
# Begin Source File
SOURCE=..\..\Lib\ERMP5_vd.lib
# End Source File
# Begin Source File
SOURCE=..\..\lib\FILP5_vd.lib
# End Source File
# Begin Source File
SOURCE=..\..\Lib\GamP5Evd.lib
# End Source File
# Begin Source File
SOURCE=..\..\lib\GEOP5evd.lib
# End Source File
# Begin Source File
SOURCE=T:\3Dfx\Glide\Lib\Win32\glide2x.lib
# End Source File
# Begin Source File
SOURCE=..\..\lib\GLIGLOUD.lib
# End Source File
# Begin Source File
SOURCE=..\..\Lib\GMTP5_vd.lib
# End Source File
# Begin Source File
SOURCE=..\..\lib\INOED_vd.lib
# End Source File
# Begin Source File
SOURCE=..\..\Lib\IPOP5_vd.lib
# End Source File
# Begin Source File
SOURCE=..\..\Lib\IPTP5_vd.lib
# End Source File
# Begin Source File
SOURCE=..\..\Lib\ISIP5_vd.lib
# End Source File
# Begin Source File
SOURCE=..\..\Lib\ITFP5evd.lib
# End Source File
# Begin Source File
SOURCE=..\..\lib\MECP5Evd.lib
# End Source File
# Begin Source File
SOURCE=..\..\lib\MgtP5_vd.lib
# End Source File
# Begin Source File
SOURCE=..\..\Lib\MMGP5_vd.lib
# PROP BASE Exclude_From_Build 1
# End Source File
# Begin Source File
SOURCE=..\..\lib\MMGP5_vp.lib
# PROP BASE Exclude_From_Build 1
# PROP Exclude_From_Build 1
# End Source File
# Begin Source File
SOURCE=..\..\Lib\morp5_vd.lib
# End Source File
# Begin Source File
SOURCE=..\..\Lib\MTHP5_vd.lib
# End Source File
# Begin Source File
SOURCE=..\..\Lib\PCSP5_vd.lib
# End Source File
# Begin Source File
SOURCE=..\..\lib\PICP5EVD.lib
# End Source File
# Begin Source File
SOURCE=..\..\Lib\PO_P5_vd.lib
# End Source File
# Begin Source File
SOURCE=..\..\lib\POSP5Evd.lib
# End Source File
# Begin Source File
SOURCE=..\..\lib\PRF_vd.lib
# End Source File
# Begin Source File
SOURCE=..\..\Lib\PRTP5_vd.lib
# End Source File
# Begin Source File
SOURCE=..\..\Lib\RAYP5_vd.lib
# End Source File
# Begin Source File
SOURCE=..\..\Lib\RNDP5_vd.lib
# End Source File
# Begin Source File
SOURCE=..\..\lib\SaiP5_vd.lib
# End Source File
# Begin Source File
SOURCE=..\..\Lib\SCRP5_vd.lib
# End Source File
# Begin Source File
SOURCE=..\..\lib\SCTP5Evd.lib
# End Source File
# Begin Source File
SOURCE=..\..\Lib\SHWP5_vd.lib
# End Source File
# Begin Source File
SOURCE=..\..\Lib\SIFP5_vd.lib
# End Source File
# Begin Source File
SOURCE=..\..\lib\SNAP5_vd.lib
# End Source File
# Begin Source File
SOURCE=..\..\lib\SNDacpVd.lib
# End Source File
# Begin Source File
SOURCE=..\..\lib\SNDdlHVD.lib
# End Source File
# Begin Source File
SOURCE=..\..\Lib\SPOP5Evd.lib
# End Source File
# Begin Source File
SOURCE=..\..\lib\TMPP5_vd.lib
# End Source File
# Begin Source File
SOURCE=..\..\Lib\TMRP5_vd.lib
# End Source File
# Begin Source File
SOURCE=..\..\Lib\VIGP5_vd.lib
# End Source File
# End Group
# Begin Group "D3D Files"
# PROP Default_Filter ""
# Begin Group "inc"
# PROP Default_Filter ""
# Begin Source File
SOURCE=..\..\Main2_0\Inc\DosWinCm.h
# End Source File
# Begin Source File
SOURCE=..\..\Main2_0\Inc\EngMain.h
# End Source File
# Begin Source File
SOURCE=..\..\Main2_0\Inc\EngWin.h
# End Source File
# Begin Source File
SOURCE=..\..\Main2_0\Inc\GameITF.h
# End Source File
# Begin Source File
SOURCE=..\..\Main2_0\Inc\MFCWinCm.h
# End Source File
# Begin Source File
SOURCE=..\..\Main2_0\Inc\StdAfx.h
# End Source File
# End Group
# Begin Group "src"
# PROP Default_Filter ""
# Begin Source File
SOURCE=..\..\Main2_0\Src\DOSWinCm.c
# PROP BASE Exclude_From_Build 1
# PROP Exclude_From_Build 1
# End Source File
# Begin Source File
SOURCE=..\..\Main2_0\Src\EngMain.c
# PROP BASE Exclude_From_Build 1
# PROP Exclude_From_Build 1
# End Source File
# Begin Source File
SOURCE=..\..\Main2_0\Src\EngWin.c
# PROP BASE Exclude_From_Build 1
# PROP Exclude_From_Build 1
# End Source File
# Begin Source File
SOURCE=..\..\Main2_0\Src\GameITF.c
# PROP BASE Exclude_From_Build 1
# PROP Exclude_From_Build 1
# End Source File
# Begin Source File
SOURCE=..\..\Main2_0\Src\GITF_WIN.c
# PROP BASE Exclude_From_Build 1
# PROP Exclude_From_Build 1
# End Source File
# Begin Source File
SOURCE=..\..\Main2_0\Src\MFCWinCm.c
# PROP BASE Exclude_From_Build 1
# PROP Exclude_From_Build 1
# End Source File
# Begin Source File
SOURCE=..\..\Main2_0\Src\WinMain.c
# PROP BASE Exclude_From_Build 1
# PROP Exclude_From_Build 1
# End Source File
# End Group
# End Group
# Begin Source File
SOURCE=.\Main.mak
# End Source File
# End Target
# End Project

View File

@@ -0,0 +1,316 @@
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="7.10"
Name="Main"
ProjectGUID="{B77BB03C-9B5C-49AD-BCE9-818EC7957E3A}"
SccProjectName="&quot;$/CPA/Main/make&quot;, PYEAAAAA"
SccAuxPath=""
SccLocalPath="."
SccProvider="MSSCCI:Perforce SCM"
Keyword="MFCProj">
<Platforms>
<Platform
Name="Win32"/>
</Platforms>
<Configurations>
<Configuration
Name="GLIDE Debug with Editors|Win32"
OutputDirectory="x:\cpa\exe\main"
IntermediateDirectory=".\Tmp\MaiDFEvd"
ConfigurationType="1"
UseOfMFC="2"
ATLMinimizesCRunTimeLibraryUsage="FALSE">
<Tool
Name="VCCLCompilerTool"
Optimization="0"
OptimizeForProcessor="1"
AdditionalIncludeDirectories="x:\Cpa\Public\GAM,x:\Cpa\Public,t:\dxsdk\sdk\inc,x:\Cpa\Main\Inc"
PreprocessorDefinitions="_DEBUG;VISUAL;WIN32;USE_PROFILER;MTH_CHECK;ACTIVE_EDITOR;CPA_WANTS_EXPORT"
RuntimeLibrary="3"
PrecompiledHeaderFile=".\Tmp\MaiDFEvd/Main.pch"
AssemblerListingLocation=".\Tmp\MaiDFEvd/"
ObjectFile=".\Tmp\MaiDFEvd/"
ProgramDataBaseFileName=".\Tmp\MaiDFEvd/"
WarningLevel="3"
SuppressStartupBanner="TRUE"
DebugInformationFormat="1"
CompileAs="2"/>
<Tool
Name="VCCustomBuildTool"/>
<Tool
Name="VCLinkerTool"
AdditionalDependencies="Dxerr8.lib dinput8.lib ddraw.lib winmm.lib vfw32.lib msacm32.lib agop5_vd.lib ai_p5evd.lib cmpp5_vd.lib colp5evd.lib dptp5_vd.lib ermp5_vd.lib filp5_vd.lib gamp5evd.lib geop5evd.lib gligloud.lib gmtp5_vd.lib inoed_vd.lib ipop5_vd.lib iptp5_vd.lib isip5_vd.lib itfp5evd.lib mecp5evd.lib mgtp5_vd.lib mmgp5_vd.lib morp5_vd.lib mthp5_vd.lib pcsp5_vd.lib picp5evd.lib po_p5_vd.lib posp5evd.lib prf_vd.lib prtp5_vd.lib rayp5_vd.lib rndp5_vd.lib saip5_vd.lib scrp5_vd.lib sctp5evd.lib shwp5_vd.lib sifp5_vd.lib snap5_vd.lib sndacpvd.lib snddlhvd.lib spop5evd.lib tmpp5_vd.lib tmrp5_vd.lib vigp5_vd.lib"
OutputFile="X:\Cpa\Exe\Main\MaiDFEvd.exe"
LinkIncremental="1"
SuppressStartupBanner="TRUE"
AdditionalLibraryDirectories="C:\3Dfx\Glide\Lib\Win32;x:\Cpa\Libd"
IgnoreDefaultLibraryNames="libcd.lib,msvcrt.lib,libc.lib,libcmtd.lib"
GenerateDebugInformation="TRUE"
ProgramDatabaseFile="x:\cpa\exe\main/MaiDFEvd.pdb"
SubSystem="2"
StackReserveSize="1000000"
TargetMachine="1"/>
<Tool
Name="VCMIDLTool"
PreprocessorDefinitions="_DEBUG"
MkTypLibCompatible="TRUE"
SuppressStartupBanner="TRUE"
TargetEnvironment="1"
TypeLibraryName="x:\cpa\exe\main/Main.tlb"
HeaderFileName=""/>
<Tool
Name="VCPostBuildEventTool"/>
<Tool
Name="VCPreBuildEventTool"/>
<Tool
Name="VCPreLinkEventTool"/>
<Tool
Name="VCResourceCompilerTool"
PreprocessorDefinitions="ACTIVE_EDITOR;_DEBUG"
Culture="1036"
AdditionalIncludeDirectories="x:\CPA\Public\ITF"/>
<Tool
Name="VCWebServiceProxyGeneratorTool"/>
<Tool
Name="VCXMLDataGeneratorTool"/>
<Tool
Name="VCWebDeploymentTool"/>
<Tool
Name="VCManagedWrapperGeneratorTool"/>
<Tool
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
</Configuration>
</Configurations>
<References>
</References>
<Files>
<Filter
Name="Sources"
Filter="cpp;c;cxx;rc;def;r;odl;hpj;bat;for;f90">
<File
RelativePath="..\Src\P5\_ProjApp.cpp">
<FileConfiguration
Name="GLIDE Debug with Editors|Win32">
<Tool
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories=""
PreprocessorDefinitions=""
CompileAs="2"/>
</FileConfiguration>
</File>
<File
RelativePath="..\Inc\_Project.rc">
<FileConfiguration
Name="GLIDE Debug with Editors|Win32">
<Tool
Name="VCResourceCompilerTool"
PreprocessorDefinitions=""
AdditionalIncludeDirectories="\Rayman2\N64\CD5\VA\cpa\main\Inc"/>
</FileConfiguration>
</File>
<File
RelativePath="..\Src\P5\DlgOpt.cpp">
<FileConfiguration
Name="GLIDE Debug with Editors|Win32">
<Tool
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories=""
PreprocessorDefinitions=""
CompileAs="2"/>
</FileConfiguration>
</File>
<File
RelativePath="..\Src\P5\GameITF.cpp">
<FileConfiguration
Name="GLIDE Debug with Editors|Win32">
<Tool
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories=""
PreprocessorDefinitions=""
CompileAs="2"/>
</FileConfiguration>
</File>
<File
RelativePath="..\Src\P5\StdAfx.cpp">
<FileConfiguration
Name="GLIDE Debug with Editors|Win32">
<Tool
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories=""
PreprocessorDefinitions=""
CompileAs="2"/>
</FileConfiguration>
</File>
</Filter>
<Filter
Name="Includes"
Filter="h;hpp;hxx;hm;inl;fi;fd">
<File
RelativePath="..\Inc\_EditID.h">
</File>
<File
RelativePath="..\Inc\_Flags.h">
</File>
<File
RelativePath="..\Inc\_ProjApp.hpp">
</File>
<File
RelativePath="..\Inc\_Project.h">
</File>
<File
RelativePath="..\Inc\_ProjID.h">
</File>
<File
RelativePath="..\Inc\DlgOpt.h">
</File>
<File
RelativePath="..\Inc\GameITF.h">
</File>
<File
RelativePath="..\Main.h">
</File>
<File
RelativePath="..\Inc\MainCPA.h">
</File>
</Filter>
<Filter
Name="Libraries Debug"
Filter="lib">
</Filter>
<Filter
Name="D3D Files"
Filter="">
<Filter
Name="inc"
Filter="">
<File
RelativePath="..\..\Main2_0\Inc\DosWinCm.h">
</File>
<File
RelativePath="..\..\Main2_0\Inc\EngMain.h">
</File>
<File
RelativePath="..\..\Main2_0\Inc\EngWin.h">
</File>
<File
RelativePath="..\..\Main2_0\Inc\GameITF.h">
</File>
<File
RelativePath="..\..\Main2_0\Inc\MFCWinCm.h">
</File>
<File
RelativePath="..\..\Main2_0\Inc\StdAfx.h">
</File>
</Filter>
<Filter
Name="src"
Filter="">
<File
RelativePath="..\..\Main2_0\Src\DOSWinCm.c">
<FileConfiguration
Name="GLIDE Debug with Editors|Win32"
ExcludedFromBuild="TRUE">
<Tool
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories=""
PreprocessorDefinitions=""
CompileAs="2"/>
</FileConfiguration>
</File>
<File
RelativePath="..\..\Main2_0\Src\EngMain.c">
<FileConfiguration
Name="GLIDE Debug with Editors|Win32"
ExcludedFromBuild="TRUE">
<Tool
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories=""
PreprocessorDefinitions=""
CompileAs="2"/>
</FileConfiguration>
</File>
<File
RelativePath="..\..\Main2_0\Src\EngWin.c">
<FileConfiguration
Name="GLIDE Debug with Editors|Win32"
ExcludedFromBuild="TRUE">
<Tool
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories=""
PreprocessorDefinitions=""
CompileAs="2"/>
</FileConfiguration>
</File>
<File
RelativePath="..\..\Main2_0\Src\GameITF.c">
<FileConfiguration
Name="GLIDE Debug with Editors|Win32"
ExcludedFromBuild="TRUE">
<Tool
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories=""
PreprocessorDefinitions=""
CompileAs="2"/>
</FileConfiguration>
</File>
<File
RelativePath="..\..\Main2_0\Src\GITF_WIN.c">
<FileConfiguration
Name="GLIDE Debug with Editors|Win32"
ExcludedFromBuild="TRUE">
<Tool
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories=""
PreprocessorDefinitions=""
CompileAs="2"/>
</FileConfiguration>
</File>
<File
RelativePath="..\..\Main2_0\Src\MFCWinCm.c">
<FileConfiguration
Name="GLIDE Debug with Editors|Win32"
ExcludedFromBuild="TRUE">
<Tool
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories=""
PreprocessorDefinitions=""
CompileAs="2"/>
</FileConfiguration>
</File>
<File
RelativePath="..\..\Main2_0\Src\WinMain.c">
<FileConfiguration
Name="GLIDE Debug with Editors|Win32"
ExcludedFromBuild="TRUE">
<Tool
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories=""
PreprocessorDefinitions=""
CompileAs="2"/>
</FileConfiguration>
</File>
</Filter>
</Filter>
<Filter
Name="Resources"
Filter="ico;cur;bmp;dlg;rc2;rct;bin;cnt;rtf;gif;jpg;jpeg;jpe">
</Filter>
<File
RelativePath="Main.mak">
</File>
</Files>
<Globals>
</Globals>
</VisualStudioProject>

View File

@@ -0,0 +1,8 @@
Unable to open file.
Error was raised in source file ".\SCR_File.c" at line "751".
----------
File is "GameData\Game.mem".
----------------(:-)----------------
<** Context 0 **>

Binary file not shown.

View File

@@ -0,0 +1,5 @@
SCC = This is a source code control file
[Main.vcproj]
SCC_Aux_Path = "P4SCC#srvperforce-ma:1666##raymandata##Editor"
SCC_Project_Name = Perforce Project

View File

@@ -0,0 +1,138 @@
// DlgOpt.cpp: implementation of the CDlgUpdateOptions class.
//
//////////////////////////////////////////////////////////////////////
#include "MainCPA.h"
#include "StdAfx.h"
#include "DlgOpt.h"
extern "C" tdstPreferences g_stPreferences;
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CDlgUpdateOptions::CDlgUpdateOptions(CWnd* pParent /*=NULL*/) : CDialog(CDlgUpdateOptions::IDD, pParent)
{
//{{AFX_DATA_INIT(CDlgUpdateOptions)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
/*
----------------------------------------------------------------------------------------
Description : Message Map
----------------------------------------------------------------------------------------
*/
BEGIN_MESSAGE_MAP(CDlgUpdateOptions, CDialog)
//{{AFX_MSG_MAP(CDlgUpdateOptions)
ON_BN_CLICKED(IDC_CHECK_BINARYDATA, OnCheckUseBinaryData)
//ON_BN_CLICKED(IDC_CHECK_ASK, OnCheckAskAtEachTime)
//ON_BN_CLICKED(IDC_CHECK_SAVE, OnCheckSavePrgPreferences)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/*
=======================================================================================
CUpdateOptionsDlg message handlers
=======================================================================================
*/
/*
----------------------------------------------------------------------------------------
Description : WM_INITDIALOG
----------------------------------------------------------------------------------------
*/
BOOL CDlgUpdateOptions::OnInitDialog()
{
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
CButton *p_oBtBinary, *p_oBtAsk, *p_oBtSave, *p_oBtBinaryDsc;
CEdit *p_EditDirectory;
BOOL bBinary, bAsk, bSave, bBinaryDsc;
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
CDialog::OnInitDialog();
p_oBtBinary = (CButton *) GetDlgItem( IDC_CHECK_BINARYDATA );
p_oBtAsk = (CButton *) GetDlgItem( IDC_CHECK_ASK );
p_oBtSave = (CButton *) GetDlgItem( IDC_CHECK_SAVE );
p_oBtBinaryDsc = (CButton *) GetDlgItem( IDC_CHECK_BINARYDSC );
bBinary = (BOOL)g_stPreferences.cBinary;
bAsk = (BOOL)g_stPreferences.cAsk;
bSave = (BOOL)g_stPreferences.cSave;
bBinaryDsc = (BOOL)g_stPreferences.cBinaryDsc;
p_oBtBinary->SetCheck( bBinary ? 1 : 0 );
p_oBtAsk->SetCheck( bAsk ? 1 : 0 );
p_oBtSave->SetCheck( bSave ? 1 : 0 );
p_oBtBinaryDsc->SetCheck( bBinaryDsc ? 1 : 0 );
p_EditDirectory = (CEdit *) GetDlgItem( IDC_EDIT_DIRECTORY);
if (bBinary)
p_EditDirectory -> SetWindowText(g_stPreferences.szBinaryDirectory);
else
p_EditDirectory -> SetWindowText("GameData");
return TRUE;
}
/*
----------------------------------------------------------------------------------------
Description : BN_CLICKED on IDOK button
----------------------------------------------------------------------------------------
*/
void CDlgUpdateOptions::OnOK()
{
g_stPreferences.cBinary =(char)((CButton *) GetDlgItem( IDC_CHECK_BINARYDATA))->GetCheck() == 1;
g_stPreferences.cAsk = (char)((CButton *) GetDlgItem( IDC_CHECK_ASK ))->GetCheck() == 1;
g_stPreferences.cSave = (char)((CButton *) GetDlgItem( IDC_CHECK_SAVE ))->GetCheck() == 1;
g_stPreferences.cBinaryDsc =(char)((CButton *) GetDlgItem( IDC_CHECK_BINARYDSC))->GetCheck() == 1;
if (g_stPreferences.cSave)
GAM_fn_vSavePreferences();
CDialog::OnOK();
}
/*
----------------------------------------------------------------------------------------
Description : BN_CLICKED on IDC_CHECK_BINARYDATA
----------------------------------------------------------------------------------------
*/
void CDlgUpdateOptions::OnCheckUseBinaryData(void)
{
CEdit *p_EditDirectory;
p_EditDirectory = (CEdit *) GetDlgItem( IDC_EDIT_DIRECTORY);
if (((CButton *) GetDlgItem( IDC_CHECK_BINARYDATA))->GetCheck() == 1)
p_EditDirectory -> SetWindowText(g_stPreferences.szBinaryDirectory);
else
p_EditDirectory -> SetWindowText("GameData");
}
/*
----------------------------------------------------------------------------------------
Description : BN_CLICKED on IDC_CHECK_ASK
----------------------------------------------------------------------------------------
*/
/*
void CDlgUpdateOptions::OnCheckAskAtEachTime(void)
{
g_stPreferences.cAsk = (char)((CButton *) GetDlgItem( IDC_CHECK_ASK ))->GetCheck() == 1;
}
*/
/*
----------------------------------------------------------------------------------------
Description : BN_CLICKED on IDC_CHECK_SAVE
----------------------------------------------------------------------------------------
*/
/*
void CDlgUpdateOptions::OnCheckSavePrgPreferences(void)
{
g_stPreferences.cSave = (char)((CButton *) GetDlgItem( IDC_CHECK_SAVE ))->GetCheck() == 1;
}
*/

View File

@@ -0,0 +1,431 @@
#include "MainCPA.h"
#include "ITF.h"
#include "SND.h"
#ifdef USE_PROFILER
#include "prf.h"
#endif
#include "GameITF.h"
#include "DlgOpt.h"
#include "acp_driver.h"
// ANNECY AV {
#ifdef __cplusplus
extern "C" {
#endif
extern void MOR_fn_vRemoveAllMorphedObjects (void);
#ifdef __cplusplus
};
#endif
// ENDANNECY AV }
//************************************************************************************
void fn_vChangeWindowTitle(char *szWindowName)
{
M_GetMainWnd()->SetWindowText(szWindowName);
#ifdef ACTIVE_EDITOR
CString act;
char actc[255], *p;
g_oBaseFrame.GetWindowText(act);
strcpy(actc, (char *) (LPCSTR) act);
p = strchr(actc, ']') + 1;
*p = '\0';
act = actc;
act += " ("+CString(szWindowName)+")";
g_oBaseFrame.SetWindowText(act);
#endif
}
//************************************************************************************
void fn_vForceToCloseApplication()
{
M_GetMainWnd()->PostMessage(WM_CLOSE);
Sleep(0);
}
//************************************************************************************
void fn_vSetEngineWorldForITF(HIE_tdxHandleToSuperObject _hActualWorld)
{
M_GetMainDevice3D()->SetEngineWorld(_hActualWorld);
}
//************************************************************************************
GLD_tdhDevice fn_hGetGLDDevice(unsigned long _ulValue)
{
return(M_GetMainGLDDevice(_ulValue));
}
//************************************************************************************
GLD_tdhViewport fn_hGetGLDViewport(unsigned long _ulValue)
{
return(M_GetMainGLDViewport(_ulValue));
}
//************************************************************************************
void * fn_hGetDrawSemaphore(void)
{
return(M_GetMainApp()->m_hDrawSem);
}
//************************************************************************************
void GAMITF_fn_vResizeGameViewport(void)
{
GAM_fn_vActualizeAllGameViewportSize();
}
//************************************************************************************
#if defined(ACTIVE_EDITOR)
void fn_vEditorDrawObjectExpect0(void)
{
M_GetMainDevice()->SendMessage(CPA_MSG_DRAWOBJECTEXCEPT0);
}
#endif /* ACTIVE_EDITOR */
//************************************************************************************
#if defined(ACTIVE_EDITOR)
void fn_vEditorDataHasChange(void)
{
M_GetMainApp()->fn_vDataHasChanged();
}
#endif /* ACTIVE_EDITOR */
//************************************************************************************
#if defined(ACTIVE_EDITOR)
void fn_vEnableEditorsMainWnd(unsigned char _ulValue)
{
M_GetMainWnd()->fn_vEnableEditors(_ulValue);
}
#endif /* ACTIVE_EDITOR */
//************************************************************************************
#if defined(ACTIVE_EDITOR)
void fn_vEditorSetCurrentMap(char *_szCurrentMap)
{
M_GetMainApp()->fn_vSetCurrentMap(_szCurrentMap);
}
#endif /* ACTIVE_EDITOR */
//************************************************************************************
HWND fn_hGetBaseFrameWnd(void)
{
#if defined(ACTIVE_EDITOR)
return g_oBaseFrame . m_hWnd;
#else
return fn_hGetApplicationWindow();
#endif /* ACTIVE_EDITOR */
}
//************************************************************************************
void fn_vInitSoundStruct(void *SndInit)
{
((SND_tdstInitStruct*)SndInit)->hProcessInstance=AfxGetInstanceHandle();
#if defined(ACTIVE_EDITOR)
((SND_tdstInitStruct*)SndInit)->hMainWindow=g_oBaseFrame.GetSafeHwnd();
#else
((SND_tdstInitStruct*)SndInit)->hMainWindow=fn_hGetApplicationWindow();
#endif /* ACTIVE_EDITOR */
((SND_tdstInitStruct*)SndInit)->hMutexDX=NULL;
}
//************************************************************************************
void fn_vSwapDeviceToFullScreen(void)
{
M_GetMainApp()->PostThreadMessage(WM_USER,USERM_SWAP_FULLSCREEN,0);
}
void fn_vChangeDeviceResolution(void)
{
}
//************************************************************************************
BOOL fn_bInFullScreen() // MR1106
{
return M_GetMainDevice()->GetDevice(0)->IsFullScreen();
}
//************************************************************************************
BOOL fn_bBadRes()
{
return M_GetMainApp()->m_bBadResolution;
}
//ANNECY VL SPOFLAG 04/12/97{
//************************************************************************************
BOOL fn_bIsEditorsActive(void)
{
return M_GetMainApp()->m_bEditorsAreActive;
}
//ENDANNECY VL SPOFLAG}
//************************************************************************************
HINSTANCE fn_hGetApplicationInstance(void)
{
return(AfxGetInstanceHandle());
}
//************************************************************************************
#ifndef USE_DIRECTX
HWND fn_hGetApplicationWindow(void)
{
return(AfxGetMainWnd()->m_hWnd);
}
#else
// In fact, this should work also under DX7 version
HWND fn_hGetApplicationWindow(void)
{
HWND hResult;
CWnd * hCwnd;
hCwnd = (CWnd *)M_GetMainDevice()->GetDevice(0)->GetViewPort();;
hResult = hCwnd->m_hWnd;
HWND hwnd0=(AfxGetMainWnd()->m_hWnd);
static int kk=0;
if(kk==0)
{
return( hResult );
}else
return hwnd0;
}
HWND fn_hGetApplicationWindowWithChoise(BOOL _isFullScreen)
{
HWND hResult;
CWnd * hCwnd;
hCwnd = (CWnd *)M_GetMainDevice()->GetDevice(0)->GetViewPort();;
hResult = hCwnd->m_hWnd;
HWND hwnd0=(AfxGetMainWnd()->m_hWnd);
if(_isFullScreen)
{
return hwnd0;
}else
return( hResult );
}
#endif /* USE8DX8 */
//************************************************************************************
char *fn_szGetExeCommandLine(void)
{
return (AfxGetApp()->m_lpCmdLine);
}
//************************************************************************************
unsigned long g_ulDeviceWidth,g_ulDeviceHeight;
//VL0
unsigned long g_ulDeviceMode;
//EVL
void MAIN_fn_vSetDeviceWidth(unsigned long ulWidth,unsigned long ulHeight)
{
g_ulDeviceWidth = ulWidth;
g_ulDeviceHeight = ulHeight;
}
//VL0
void MAIN_fn_vSetDeviceMode(unsigned long ulIsFullScreen )
{
g_ulDeviceMode = ulIsFullScreen;
}
//EVL
//************************************************************************************
unsigned long MAIN_fn_ulGetDeviceWidth(void)
{
return(g_ulDeviceWidth);
}
//************************************************************************************
unsigned long MAIN_fn_ulGetDeviceHeight(void)
{
return(g_ulDeviceHeight);
}
//VL
//************************************************************************************
unsigned long MAIN_fn_ulDeviceIsFullScreen(void)
{
return(g_ulDeviceMode);
}
//EVL
//************************************************************************************
//************************************************************************************
//************************************************************************************
//************************** nouvelle synchro ****************************************
//************************************************************************************
//************************************************************************************
//************************************************************************************
//************************************************************************************
//************************************************************************************
//************************************************************************************
// check if appli asked to end the game
// if not, return
// if yes, change the engine mode to stop program
// tell the appli that engine is leaving
// return...
void fn_vCheckEnd()
{
// if no close was asked, return
if (M_GetMainApp()->m_bAppliAskedToEndGame == FALSE)
return;
// change engine mode to stop program
fn_vChangeEngineMode(EM_ModeStoppingProgram);
// tells the appli that the engine is beginning the closing procedure
M_GetMainApp()->PostThreadMessage(WM_USER,USERM_ENGINE_IS_CLOSING,0);
// and that's all
}
// Call fn_vCheckEnd and return TRUE if detected "End of Appli"
// return FALSE otherelse
ACP_tdxBool fn_bTestIfEndOfAppliAsked()
{
fn_vCheckEnd();
if (fn_eGetEngineMode()==EM_ModeStoppingProgram)
return TRUE;
else
return FALSE;
}
//************************************************************************************
//**********************************************************************************
// tells the appli that the engine has finished
// it will tell the appli that
// this function will return when appli is OK
void fn_vEngineHasFinished()
{
// tells the appli that the engine has finished
M_GetMainApp()->PostThreadMessage(WM_USER,USERM_ENGINE_IS_DONE,0);
// and wait until the engine is OK
while (M_GetMainApp()->m_bFinishEngine == FALSE)
Sleep(0);
}
//************************************************************************************
//************************************************************************************
// check if appli asked for a pause
// if no pause --> return
// if pause, stop engine and return when engine restart
void fn_vCheckPause()
{
// if no pause was asked, return
if (M_GetMainApp()->m_bAppliAskedToStopEngine == FALSE)
return;
fn_vSetEngineInPaused();
// reset one step pulse
M_GetMainApp()->m_bAppliPulsedOneStep = FALSE;
// tells appli to stop engine, and wait to restart
M_GetMainApp()->PostThreadMessage(WM_USER,USERM_STOP_ENGINE,0);
while ((M_GetMainApp()->m_bAppliAskedToStopEngine) && (M_GetMainApp()->m_bAppliPulsedOneStep == FALSE))
{
Sleep(0);
}
// reset one step pulse
M_GetMainApp()->m_bAppliPulsedOneStep = FALSE;
fn_vResetEngineFromPaused();
fn_vCheckEditor();
}
//************************************************************************************
//************************************************************************************
// check if appli asked to go in editor
// if no editor --> return
// if editor, stop engine, pass in editor and return when engine restart
void fn_vCheckEditor()
{
// if appli didn't ask to launch editor, return
if (M_GetMainApp()->m_bAppliAskedToActivateEditors == FALSE)
return;
// ANNECY AV {
// Remove all the morphed objects
MOR_fn_vRemoveAllMorphedObjects ();
#if defined(ACTIVE_EDITOR)
GAM_fn_vFillHierarchyBeforeEditor();
#endif
// ENDANNECY AV }
// Notify the engine for timer reinit
fn_vSetEngineInPaused();
// tells appli to go in editors.
// this will stop the engine
M_GetMainApp()->PostThreadMessage(WM_USER,USERM_START_EDITORS,0);
// wait for editors to stop
while (M_GetMainApp()->m_bAppliAskedToActivateEditors)
{
Sleep(0);
}
#if defined(ACTIVE_EDITOR)
if (g_DEMO_KeybTest == DEMO_PLAY)
{
DEMO_fn_vStopWhenPlaying();
if (! M_GetMainApp() -> m_bAutoReinitTheMap)
fn_vReinitTheMap ();
}
GAM_fn_vFillHierarchyAfterEditor();
#endif
#ifdef USE_PROFILER
// stop rasters until beginning of next frame
PRF_fn_vReinitAllChrono();
#endif
fn_vResetEngineFromPaused();
}
//************************************************************************************
//************************************************************************************
// force appli to start editor
// stop engine, pass in editor and return when engine restart
void fn_vForceEditor()
{
#if defined(ACTIVE_EDITOR)
// tells engine that the appli wants to go in editor
// the editors will be activated as soon as possible
M_GetMainApp()->m_bEngineAskedToForceEditors = TRUE;
M_GetMainApp()->m_bAppliAskedToActivateEditors = TRUE;
#endif
}
//************************************************************************************
//************************************************************************************
ACP_tdxBool fn_bTestIfEditorRunning()
{
return (unsigned char)M_GetMainApp()->m_bAppliAskedToActivateEditors;
}
//************************************************************************************
//************************************************************************************
//************************************************************************************
//************************************************************************************
void fn_vChoicePreferences(void)
{
CDlgUpdateOptions dlgPreferences;
dlgPreferences.DoModal();
}

View File

@@ -0,0 +1,6 @@
// stdafx.cpp : source file that includes just the standard includes
// ACPProject.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information
#include "stdafx.h"

View File

@@ -0,0 +1,805 @@
/*=========================================================================
* _ProjApp.cpp : Main CPP project.
* This is a part of the CPA project.
*
* Version 1.0
* Creation date 09/09/96
* Revision date
*
* (c) Ubi Studios 1996
*=======================================================================*/
/* here are the directive you must respect when changing this file :
* === don't use malloc, but use memory module functions
* === absolutely no file handling in this file
* === always specify 'void' keyword for functions parameters and return value
* === take care of upper / lower case for #include and other filenames
* === NO C++ style comentary
* === NO ASSERT, use error module equivalent function
*/
#include "MainCPA.h"
#include "ITF.h"
#include "GAM.h"
#include "sif.h"
#include "snd.h"
#include "VDO.h"
#include "_projapp.hpp"
#include "_projid.h"
#include "_EditId.h"
#ifdef WIN32
/* One instance of application*/
_ProjectApp theApp;
#ifdef ACTIVE_EDITOR
/*
Keyboard config for application
*/
// add by jt 8/6/97
#include "ray.h"
// end jt 8/6/97
#define KA_APP_SWAP 1
#define KA_APP_RASTERS 2
#define KA_WD_DBACKWARD 3
#define KA_WD_DFORWARD 4
#define KA_WD_EBACKWARD 5
#define KA_WD_EFORWARD 6
#define KA_HED_HIERARCHY 7
#define KA_HED_ACTOR 8
#define KA_HED_GEOMETRY 9
#define KA_HED_PHYSICAL 10
#define KA_HED_IPO 11
#define KA_HED_LIGHT 12
#define KA_HED_SECTOR 13
#define KA_HED_WPWAYS 14
#define KA_HED_ZONE 15
#define KA_HED_ACTION 16
#define KA_HED_MATERIAL 17
#define KA_HED_MECHANIC 18
#define KA_HED_PARTICLE 19
#define KA_HED_UNDO 20
#define KA_HED_REDO 21
#define KA_APP_SWAPNOPREF 22
#define KA_APP_PAUSEENGINE 23
#define KA_APP_ONESTEPENGINE 24
#define KA_APP_FORCE3DVIEW 25
//CPA2 Corneliu Babiuc 06-05-98
#define KA_HED_SOUND 26
#define KA_APP_OPTIONS 27
#define KA_APP_SAVEALL 28
#define KA_APP_EXIT 29
#define KA_HED_IPT 30
//END CPA2 Corneliu Babiuc 20-05-98
#define KA_APP_REINIT 31
#define KA_APP_KEYBOARD 32
static tdstKeyboardActionDef gs_a_stAppKeys[] =
{
{"Swap between Editor and Engine", KA_APP_SWAP},
{"Swap to Editor without Preferences", KA_APP_SWAPNOPREF},
{"Activate Hierarchy Editor", KA_HED_HIERARCHY},
{"Activate Actor Editor", KA_HED_ACTOR},
{"Activate Geometric Object Editor", KA_HED_GEOMETRY},
{"Activate Physical Object Editor", KA_HED_PHYSICAL},
{"Activate IPO Editor", KA_HED_IPO},
{"Activate Light Editor", KA_HED_LIGHT},
{"Activate Sector Editor", KA_HED_SECTOR},
{"Activate Waypoints & Ways Editor", KA_HED_WPWAYS},
{"Activate Zone Editor", KA_HED_ZONE},
{"Activate Actions Editor", KA_HED_ACTION},
{"Activate Material Editor", KA_HED_MATERIAL},
{"Activate Mechanic Editor", KA_HED_MECHANIC},
{"Activate Particle Editor", KA_HED_PARTICLE},
{"Activate Sound Editor", KA_HED_SOUND},
{"Activate IPT Editor", KA_HED_IPT},
{"Save All", KA_APP_SAVEALL},
{"Reinit the map", KA_APP_REINIT},
{"Undo", KA_HED_UNDO},
{"Redo", KA_HED_REDO},
{"Options", KA_APP_OPTIONS},
{"Keyboard", KA_APP_KEYBOARD},
{"Exit", KA_APP_EXIT},
{"Pause Engine", KA_APP_PAUSEENGINE},
{"One Step Engine", KA_APP_ONESTEPENGINE},
{"Force 3D View", KA_APP_FORCE3DVIEW},
{NULL, 0}
};
#endif /* ACTIVE_EDITOR*/
BOOL bFocusLost=FALSE;
BOOL bManagingFocus=FALSE;
BOOL gbForce3DView=FALSE;
/*===========================================================================
/ Description: Inits
/ Creation date: 09 Sep 96
/ Author: CB
/---------------------------------------------------------------------------
/ Revision date:
/ Author:
/===========================================================================*/
BOOL _ProjectApp::InitApplication (void)
{
if (!fn_bInitApplication())
return FALSE;
GMT_fn_vInitFor3DOS();
SCR_fn_v_RdL0_Init();
fn_vInitEngineWhenInitApplication();
#ifdef ACTIVE_EDITOR
HIE_fn_vCreateMatrixStack();
/* Create keyboard config*/
mp_oAppKeyboard = new CPA_KeyActionConfiguration("CPAApp.ini", gs_a_stAppKeys);
mp_oAppKeyboard->mfn_vSetObjectName("Application");
m_csApplicationName = C_szMainFullName;
m_csApplicationVersion = C_szMainVersion;
#endif
return CPA_ProjectApp::InitApplication();
}
BOOL _ProjectApp::InitInstance (void)
{
return CPA_ProjectApp::InitInstance();
}
void _ProjectApp::ExitApplication (void)
{
#ifdef ACTIVE_EDITOR
/* Delete keyboard config*/
delete mp_oAppKeyboard;
/////////////////////////////////////////////////////////////
// BIDOUILLE : To force some functions to be in export.LIB
// FORCE LINK
/////////////////////////////////////////////////////////////
int a = -1;
if (++a)
{
// Bidouilles are here (the "a" is just here to avoid
// following code to be executed)
WP_tdhWayPoint hWayPoint = WP_fnh_WayPoint_Create();
WP_fnv_WayPoint_Destroy(hWayPoint);
CSplitFrame split;
DD_bSearchReference(NULL,NULL,0,NULL);
CPA_ToolDLLBase *p_oDLL;
DEV_SingleDevice3D oSgl3D(MD_ONEDEVICE);
p_oDLL->fn_vSetReceivingEvtEditorMessages();
p_oDLL->fn_vSetReceivingWindowMessages();
GEO_xGetCenterPointOfIndexedSphere(NULL,NULL,NULL);
g_oCoherenceManager.m_fn_vAddALink( NULL, NULL);
DNM_fn_vInitLinkTableOfMecMatCharacteristics();
SIF_fn_iGetSoundInfosCount();
RAY_vComputeAllSector(NULL);
SAI_fn_p_vGetTableValuePointerOf(NULL, SAI_eTypeXX);
GLI_xDraw3DLine16(NULL,NULL,NULL,NULL);
//ANNECY CT 20/02/98{
// fn_vFreeJustStructAnim( NULL );
//ENDANNECY CT}
#if defined(ACTIVE_AIDEBUG)
fn_pstSetValidBreakPoint( NULL, NULL, 0 );
#endif
}
///////////////// END BIDOUILLE /////////////////////////////
#endif
fn_vExitApplication();
CPA_ProjectApp::ExitApplication();
fn_vDesinitEngineWhenLeaveApplication();
}
//===========================================================================
// Description: To activate the given DLL
// Creation date: 13 Feb 97
// Author: MT
//---------------------------------------------------------------------------
// szDLLName Name of DLL to activate
// Return BOOL to indicate if dll has to be activated
//---------------------------------------------------------------------------
// Revision date:
// Author:
//===========================================================================
#ifdef ACTIVE_EDITOR
BOOL _ProjectApp::fn_bActivateDLL(char *szDLLName)
{
if ( M_bEditorsActive() )
{
CPA_DLLBase *p_oDLL = m_p_oMainWorld->GetObjectDLLWithName(szDLLName);
if ( p_oDLL ) // DLL founded
{
m_p_oMainWorld->fn_bActivateEditor(p_oDLL,NULL);
return TRUE;
}
else
{
p_oDLL = m_p_oMainWorld->GetToolDLLWithName(szDLLName);
if ( p_oDLL ) // DLL founded
{
m_p_oMainWorld->fn_bActivateEditor(p_oDLL,NULL);
return TRUE;
}
else // there's no DLL with that name!!
{
CString oCst;
oCst . Format ( "the DLL ' %s ' does not exist!" , szDLLName);
AfxMessageBox(oCst,MB_ICONEXCLAMATION | MB_OK);
}
}
}
return FALSE;
}
//===========================================================================
// Description: To update dynamic lights
// Creation date:
// Author:
//---------------------------------------------------------------------------
// Revision date:
// Author:
//===========================================================================
void _ProjectApp::fn_vUpdateDynamicLights (void)
{
m_p_oMainWorld->m_lNbDynamicLights = 0;
fn_vFindDynamicLights(gp_stDynamicWorld, &m_p_oMainWorld->m_lNbDynamicLights, m_p_oMainWorld->m_a_tdxhArrayOfDynamicLights);
}
void _ProjectApp::fn_vFindDynamicLights (HIE_tdxHandleToSuperObject hCharacter, long *lNbLights, GLI_tdxHandleToLight a_hLights[])
{
HIE_tdxHandleToSuperObject hChild;
long i;
if (!hCharacter)
return;
// character ?
if (HIE_fn_ulGetSuperObjectType(hCharacter) == HIE_C_ulActor)
{
// is there dynamic light ?
if ((M_GetEngineObject(hCharacter)->h_MSLight)&&(fn_ucMSLightGetOnOff(M_GetEngineObject(hCharacter)->h_MSLight)))
{
a_hLights[(*lNbLights)++] = fn_p_stMSLightGetLight(M_GetEngineObject(hCharacter)->h_MSLight);
}
}
// next level of dynamic hierarchy
HIE_M_ForEachChildOf(hCharacter, hChild, i)
{
fn_vFindDynamicLights(hChild, lNbLights, a_hLights);
}
}
#endif // ACTIVE_EDITOR
//===========================================================================
// Description: To treat application keys even if engine is running.
// Creation date: 17 Jul 96
// Author: CB
//---------------------------------------------------------------------------
// nChar Key to treat
// Return BOOL to indicate if key has been treated
//---------------------------------------------------------------------------
// Revision date:
// Author:
//===========================================================================
#ifdef ACTIVE_EDITOR
BOOL _ProjectApp::fn_bTreatAppKeyboard(UINT nChar)
{
CPA_EditorBase *p_oEditor;
BOOL bUp = FALSE;
BOOL bShint = FALSE;
if(nChar & 0x40000000)
{
nChar &= 0xbfffffff;
bShint = TRUE;
}
if (!M_bEditorsActive())
gbForce3DView = FALSE;
if(nChar & 0x80000000)
{
bUp = TRUE;
nChar &= 0x7FFFFFFF;
if(mp_oAppKeyboard->mfn_uwKeyToAction(nChar) == KA_APP_FORCE3DVIEW)
{
gbForce3DView = FALSE;
return TRUE;
}
}
if(gbForce3DView)
{
if(bUp)
M_GetMainDevice2()->GetDevice(0)->GetViewPort()->SendMessage(WM_KEYUP, nChar);
else
M_GetMainDevice2()->GetDevice(0)->GetViewPort()->SendMessage(WM_KEYDOWN, nChar);
return TRUE;
}
if(bUp)
return FALSE;
// In edit mode, transform key to action
switch(mp_oAppKeyboard->mfn_uwKeyToAction(nChar))
{
// To swap beetween edit and engine mode
case KA_APP_SWAP:
// if(M_GetMainWnd()->m_bEnableEditors)
// {
// if (!(M_GetMainDevice()->GetDevice(0)->IsFullScreen()))
M_GetMainWnd()->SendMessage(WM_COMMAND, CPA_IDCB_SWAPTOEDITORS, 0);
// }
return TRUE;
break;
case KA_APP_FORCE3DVIEW:
if (!M_bEditorsActive())
return TRUE;
gbForce3DView = TRUE;
return TRUE;
case KA_APP_PAUSEENGINE:
if (M_bEditorsActive())
return FALSE;
M_GetMainWnd()->SendMessage(WM_COMMAND, CPA_IDCB_PAUSEENGINE, 0);
return TRUE;
case KA_APP_ONESTEPENGINE:
if (M_bEditorsActive())
return FALSE;
M_GetMainWnd()->SendMessage(WM_COMMAND, CPA_IDCB_ONESTEPENGINE, 0);
return TRUE;
case KA_APP_SWAPNOPREF:
GetInterface()->fn_vUseUserPreferences(FALSE);
M_GetMainWnd()->SendMessage(WM_COMMAND, CPA_IDCB_SWAPTOEDITORS, 0);
return TRUE;
break;
// the next 4 are for walking through the datas and the editors
// in the reverse order they were edited or open
/* case KA_WD_DBACKWARD:
if (!M_bEditorsActive())
return FALSE;
m_oAppliWalkDataMgr.DBackward();
return TRUE;
break;
case KA_WD_DFORWARD:
if (!M_bEditorsActive())
return FALSE;
m_oAppliWalkDataMgr.DForward();
return TRUE;
break;
case KA_WD_EBACKWARD:
if (!M_bEditorsActive())
return FALSE;
m_oAppliWalkDataMgr.EBackward();
return TRUE;
break;
case KA_WD_EFORWARD:
if (!M_bEditorsActive())
return FALSE;
m_oAppliWalkDataMgr.EForward();
return TRUE;
break;*/
// undo/redo
case KA_HED_UNDO:
if(bShint)
return FALSE;
if (!M_bEditorsActive())
return FALSE;
if(M_GetEditManager()->CanUndo())
M_GetEditManager()->Undo();
GetInterface()->GetFrameBase()->fn_vInitGeneralDialogBarWithContext();
return TRUE;
break;
case KA_HED_REDO:
if(bShint)
return FALSE;
if (!M_bEditorsActive())
return FALSE;
if(M_GetEditManager()->CanRedo())
M_GetEditManager()->Redo();
GetInterface()->GetFrameBase()->fn_vInitGeneralDialogBarWithContext();
return TRUE;
break;
// and now, editors activation
case KA_HED_HIERARCHY:
if (!M_bEditorsActive())
return FALSE;
//ANNECY Shaitan Correction 03/02/98 {
p_oEditor = m_p_oMainWorld -> GetEditorByName("Hierarchy");
//ENDANNECY Shaitan Correction }
if(p_oEditor)
{
m_p_oMainWorld->fn_bActivateEditor(p_oEditor,NULL);
return TRUE;
}
return FALSE;
break;
case KA_HED_ACTOR:
return fn_bActivateDLL ( C_szDLLActorName );
break;
case KA_HED_GEOMETRY:
return fn_bActivateDLL ( C_szDLLGeometryName );
break;
case KA_HED_PHYSICAL:
return fn_bActivateDLL ( C_szDLLPhysicalObjectName );
break;
//ANNECY Shaitan NewInterface 24/03/98 {
case KA_HED_IPO:
return fn_bActivateDLL ( C_szDLLInstanciatedPhysicalObjectName );
break;
//ENDANNECY Shaitan NewInterface }
case KA_HED_LIGHT:
return fn_bActivateDLL ( C_szDLLLightName );
break;
case KA_HED_SECTOR:
return fn_bActivateDLL ( C_szDLLSectorName );
break;
case KA_HED_WPWAYS:
return fn_bActivateDLL ( C_szDLLWayPointName );
break;
case KA_HED_ZONE:
return fn_bActivateDLL ( C_szDLLZDxName );
break;
// tool editor activation
case KA_HED_ACTION:
return fn_bActivateDLL ( C_szDLLActionName );
break;
case KA_HED_MATERIAL:
return fn_bActivateDLL ( C_szDLLMaterialName );
break;
case KA_HED_MECHANIC:
return fn_bActivateDLL ( C_szDLLMecaName );
break;
//ANNECY Shaitan NewInterface 24/03/98 {
case KA_HED_PARTICLE:
return fn_bActivateDLL ( C_szDLLPartGenName );
break;
//ENDANNECY Shaitan NewInterface }
//CPA2 Corneliu Babiuc 06-05-98
case KA_HED_SOUND:
return fn_bActivateDLL ( C_szDLLSoundName );
case KA_HED_IPT:
return fn_bActivateDLL ( "IPTEditor" );
case KA_APP_OPTIONS:
GetInterface()->fn_vDoDialogOptions();
return TRUE;
case KA_APP_KEYBOARD:
{
A3d_KeyboardAllConfDlg oDialog;
oDialog.DoModal();
return TRUE;
}
case KA_APP_SAVEALL:
GetInterface()->GetFrameBase()->SendMessage(WM_COMMAND, CPA_IDM_SAVEALL);
return TRUE;
case KA_APP_REINIT:
GetInterface()->GetFrameBase()->SendMessage(WM_COMMAND, CPA_IDM_INITMAP);
return TRUE;
case KA_APP_EXIT:
M_GetMainWnd()->SendMessage(WM_COMMAND, CPA_ID_APP_EXIT);
return TRUE;
//END CPA2 Corneliu Babiuc 20-05-98
}
return FALSE;
}
#endif // ACTIVE_EDITOR
//===========================================================================
// Description: Get the project name and version.
// Creation date: 09 Sep 96
// Author: CB
//---------------------------------------------------------------------------
// Revision date:
// Author:
//===========================================================================
void _ProjectApp::fn_vUpdateFrameTitle(void)
{
#ifdef ACTIVE_EDITOR
sprintf(M_GetMainWnd()->m_szProjectName, "Rayman II - %s", __DATE__);
#endif
}
//===========================================================================
// Description: Create a thread for engine.
// Creation date: 11 Jun 96
// Author: CB
//---------------------------------------------------------------------------
// Return void
//---------------------------------------------------------------------------
// Revision date:
// Author:
//===========================================================================
UINT fn_uiPCEngineInterface(LPVOID pt)
{
UINT uiRes;
#ifdef ACTIVE_EDITOR
// Bidouille (je suis pouss<73> <20> ces extr<74>mit<69>s)
// Permet <20> la thread courante d'acc<63>der aux objets C++ de la thread
// interface.
AFX_MODULE_THREAD_STATE *pState = AfxGetModuleThreadState();
CHandleMap *pLast = pState->m_pmapHWND;
pState->m_pmapHWND = ((AFX_MODULE_THREAD_STATE*)pt)->m_pmapHWND;
#endif // ACTIVE_EDITOR
// Call main C engine loop
fn_vResetEngineFromPaused();
uiRes = fn_uiEngineMainLoop();
#ifdef ACTIVE_EDITOR
pState->m_pmapHWND = pLast;
#endif // ACTIVE_EDITOR
return uiRes;
}
//===========================================================================
// Description: Create a thread for engine.
// Creation date: 11 Jun 96
// Author: CB
//---------------------------------------------------------------------------
// Return void
//---------------------------------------------------------------------------
// Revision date:
// Author:
//===========================================================================
void _ProjectApp::fn_vCreateEngineThread(void)
{
// Task will be run at the first pain update of the directdraw surface.
// It will avoid some strange bug in some PCs.
// => So task ic created suspended
m_p_oEngineThread = AfxBeginThread
(fn_uiPCEngineInterface, (LPVOID)AfxGetModuleThreadState(), THREAD_PRIORITY_NORMAL, 0, CREATE_SUSPENDED);
}
//===========================================================================
// Description: When main window gains or loose windows focus.
// Creation date: 09 Sep 96
// Author: CB
//---------------------------------------------------------------------------
// Revision date:
// Author:
//===========================================================================
void _ProjectApp::fn_vWhenAppGainFocus(void)
{
if (!bManagingFocus && bFocusLost)
{
//SND
bManagingFocus=TRUE;
bFocusLost=FALSE;
SND_fn_vRestoreDriverSound();
bManagingFocus=FALSE;
#ifdef GAM_VIDEO
//AVI
VDO_fn_xResumeVideoAVI();
#endif
}
}
void _ProjectApp::fn_vWhenAppLooseFocus(void)
{
if (!bManagingFocus && !bFocusLost)
{
//AVI
#ifdef GAM_VIDEO
VDO_fn_xPauseVideoAVI();
#endif
//SND
bManagingFocus=TRUE;
bFocusLost=TRUE;
SND_fn_vReleaseDriverSound();
bManagingFocus=FALSE;
}
}
//===========================================================================
// Description: called when engine is about to start
// Creation date: 04 feb 97
// Author: FBF
//---------------------------------------------------------------------------
// Revision date:
// Author:
//===========================================================================
void _ProjectApp::fn_vBeforeEngineStarts(void)
{
// resume all sound
SND_fn_vResumeSound();
// TODO : Add your code here
}
//===========================================================================
// Description: called just after engine stops
// Creation date: 04 feb 97
// Author: FBF
//---------------------------------------------------------------------------
// Revision date:
// Author:
//===========================================================================
void _ProjectApp::fn_vAfterEngineStops(void)
{
// stop all sound
SND_fn_vPauseSound();
#if defined(ACTIVE_EDITOR)
fn_vKillAllAlways();
#endif /* ACTIVE_EDITOR */
}
//===========================================================================
// Description: Do a fatal error.
// Display a message box et exit application with code -1.
// Creation date: 25 Jun 96
// Author: CB
//---------------------------------------------------------------------------
// p_szError Error message
// Return void
//---------------------------------------------------------------------------
// Revision date:
// Author:
//===========================================================================
void _ProjectApp::fn_vDynaFatalError(char *p_szError)
{
char szTemp[512];
sprintf(szTemp, "%s says fatal error !\n\n%s", C_szMainFullName, p_szError);
AfxMessageBox((LPCTSTR) szTemp, MB_ICONEXCLAMATION | MB_OK);
if(m_p_oEngineThread)
::TerminateThread(m_p_oEngineThread->m_hThread, 255);
::ExitThread(255);
}
#else // WIN32 : other platform than WIN32
/*===========================================================================
/ Description: main function : project entrance for non WIN32 platform
/ Creation date: 13 January 1997
/ Author: VL
/---------------------------------------------------------------------------
/ argc number of args
/ argv array of args
/ return application exit code
/---------------------------------------------------------------------------
/ Revision date:
/ Author:
/===========================================================================*/
int main( int argc, char *argv[] )
{
/* initialize application*/
if (!fn_bInitApplication())
return -1;
/* create screen display*/
if (!fn_bCreateMainDisplayScreen())
return -1;
/* call engine loop*/
fn_uiEngineMainLoop();
/* exit application*/
fn_vExitApplication();
return 0;
}
/*===========================================================================
/ Description: initialize/create main viewport
/ Creation date: 13 January 1997
/ Author: VL
/---------------------------------------------------------------------------
/ Return TRUE if success
/---------------------------------------------------------------------------
/ Revision date:
/ Author:
/===========================================================================*/
GLD_tdhDevice g_hDeviceHandle;
GLD_tdhViewport g_hViewport;
BOOL fn_bCreateMainDisplayScreen( void )
{
/* variable for Device*/
GLD_tdstDeviceAttributes stDevAttrib;
/*GLD_tdhDevice hDeviceHandle; */
/* variable for ViewPort*/
GLD_tdstViewportAttributes stViewAttrib;
/*GLD_tdhViewport hViewport;*/
/* create device*/
stDevAttrib.dwFullScreenModeX = C_dwScreenWidth;
stDevAttrib.dwFullScreenModeY = C_dwScreenHeight;
stDevAttrib.dwFullScreenModeBpp = C_dwScreenDepth;
if (!GLD_bCreateDevice( &stDevAttrib, &g_hDeviceHandle ))
return FALSE;
/* create viewport*/
stViewAttrib.dwTopInPercent = 0;
stViewAttrib.dwBottomInPercent = 100;
stViewAttrib.dwLeftInPercent = 0;
stViewAttrib.dwRightInPercent = 100;
if (!GLD_bCreateViewport( g_hDeviceHandle, &stViewAttrib, &g_hViewport ))
return FALSE;
return TRUE;
}
#endif /*WIN32*/
/*===========================================================================
/ Description: Initialize appliaction
/ Creation date: 13 January 1997
/ Author: VL
/---------------------------------------------------------------------------
/ Return state of initialization (TRUE = success, FALSE : error)
/---------------------------------------------------------------------------
/ Revision date:
/ Author:
/===========================================================================*/
BOOL fn_bInitApplication( void )
{
return TRUE;
}
/*===========================================================================
/ Description: called before application ends
/ Creation date: 13 January 1997
/ Author: VL
/---------------------------------------------------------------------------
/ Return void
/---------------------------------------------------------------------------
/ Revision date:
/ Author:
/===========================================================================*/
void fn_vExitApplication( void )
{
}
void _ProjectApp::fn_vReinitCurrentMap(void)
{
#if defined(ACTIVE_EDITOR)
fn_vReinitTheMap();
#endif /* ACTIVE_EDITOR */
}