Add rayman2 source files
This commit is contained in:
34
Rayman_X/cpa/Appli/BinaryTool/inc/Anims.h
Normal file
34
Rayman_X/cpa/Appli/BinaryTool/inc/Anims.h
Normal file
@@ -0,0 +1,34 @@
|
||||
// **********************************************************************************
|
||||
// * "Anims.h" *
|
||||
// * Written by : Mihaela Tancu *
|
||||
// **********************************************************************************
|
||||
#ifndef ANIMS_H
|
||||
#define ANIMS_H
|
||||
|
||||
#include "Scr.h"
|
||||
|
||||
/*
|
||||
=======================================================================================
|
||||
Defines
|
||||
=======================================================================================
|
||||
*/
|
||||
#define M_CreateNewState "CreateNewState"
|
||||
#define M_FichierSTA ".sta"
|
||||
#define M_Animation "Animation"
|
||||
|
||||
typedef struct MLT_tdstAnim_
|
||||
{
|
||||
char sName[256];
|
||||
char sAnimation[500];
|
||||
} MLT_tdstAnim;
|
||||
|
||||
extern MLT_tdstAnim **g_hAnimInFile;
|
||||
extern long g_lAnimIndex;
|
||||
extern BOOL bUsed;
|
||||
|
||||
void MLT_vLoadSTAFileInLib(char *szFileName);
|
||||
void MLT_vInitSTALoad();
|
||||
SCR_tde_Anl_ReturnValue GLI_xLoadSTACallback(SCR_tdst_File_Description *p_fFile, char *szAction, char *szParams[], SCR_tde_Anl_Action cType);
|
||||
void MLT_vEraseSTALib();
|
||||
|
||||
#endif
|
64
Rayman_X/cpa/Appli/BinaryTool/inc/Binary.h
Normal file
64
Rayman_X/cpa/Appli/BinaryTool/inc/Binary.h
Normal file
@@ -0,0 +1,64 @@
|
||||
#ifndef BINARY_H
|
||||
#define BINARY_H
|
||||
|
||||
/*
|
||||
=======================================================================================
|
||||
DEFINES
|
||||
=======================================================================================
|
||||
*/
|
||||
#define C_BinPass1 "2"
|
||||
#define C_BinPass2 "3"
|
||||
#define C_TemporaryDirectory "TestCRB"
|
||||
#define C_CRBExecutable "CRB.exe"
|
||||
#define C_World "World"
|
||||
#define C_Levels "Levels"
|
||||
/*
|
||||
=======================================================================================
|
||||
GLOBALS
|
||||
=======================================================================================
|
||||
*/
|
||||
extern char SAVE_g_szDirName[ _MAX_PATH ];
|
||||
extern char SAVE_g_szTargetDirName[ _MAX_PATH ];
|
||||
extern unsigned char g_ucChoice;
|
||||
extern BOOL bYes;
|
||||
extern BOOL bBatch;
|
||||
extern BOOL bAll;
|
||||
extern BOOL bTbl;
|
||||
|
||||
extern BOOL bBMP;
|
||||
extern BOOL bTGA;
|
||||
extern BOOL bConvert16;
|
||||
extern BOOL bConvert32;
|
||||
/*
|
||||
=======================================================================================
|
||||
=======================================================================================
|
||||
FUNCTIONS
|
||||
=======================================================================================
|
||||
=======================================================================================
|
||||
*/
|
||||
//************************************************************************
|
||||
void fn_vGetFileExtension( char *szFileName , char *a4_cExtend );
|
||||
|
||||
/*
|
||||
=======================================================================================
|
||||
Directory Functions
|
||||
=======================================================================================
|
||||
*/
|
||||
BOOL SAVE_fn_bCreateDirectory( char *szDirName );
|
||||
BOOL fn_bDeleteTemporaryFiles( char *szDir, char *szLevelName );
|
||||
BOOL fn_bCopyDirectory( BOOL _bRecursive, char *szExtendFile );
|
||||
BOOL SAVE_fn_bCopyDirectory( char *szSourceDir, char *szTargetDir, BOOL _bRecursive, char *szExtendFile);
|
||||
char fn_cExecuteGame(char *szProgramName, char *szLevelName, char *szPass);
|
||||
char fn_cExecuteCRB(char *szProgramName, char *szLevelName);
|
||||
char fn_cCopyAnyFilesOfADirectory(char *szSrcDirectory, char *szDestDirectory, char *szPass) ;
|
||||
char fn_cCopyBinarizedFiles(char *szSrcDirectory, char *szDestDirectory, char *szLevel) ;
|
||||
char fn_cExecuteGameFirst(char *szProgramName, char *szLevelName, char *szPass);
|
||||
char fn_cExecuteMakeanim(char *szProgramName, BOOL b, BOOL a, BOOL z, char *szAnimName);
|
||||
char fn_cExecuteConvImg(char *szProgramName, char * szSource, char *szDestBinDir, BOOL bBMP, BOOL bTGA, BOOL bConvert16, BOOL bConvert32, char *szTextureName);
|
||||
BOOL fn_bMoveDirectory( BOOL _bRecursive, char *szExtendFile );
|
||||
BOOL SAVE_fn_bMoveDirectory( char *szSourceDir, char *szTargetDir, BOOL _bRecursive, char *szExtendFile);
|
||||
|
||||
char fn_cExecuteConvImgOnDirectory( char *szProgramName, char *szSourceDir, char *szDestDir, BOOL bBMP, BOOL bTGA, BOOL bConvert16, BOOL bConvert32 );
|
||||
void fn_vCopyTextures( char *_szBaseDir, char *_szDestinationDir, BOOL bConvertTextures );
|
||||
|
||||
#endif
|
BIN
Rayman_X/cpa/Appli/BinaryTool/inc/BinaryTool.aps
Normal file
BIN
Rayman_X/cpa/Appli/BinaryTool/inc/BinaryTool.aps
Normal file
Binary file not shown.
50
Rayman_X/cpa/Appli/BinaryTool/inc/BinaryTool.h
Normal file
50
Rayman_X/cpa/Appli/BinaryTool/inc/BinaryTool.h
Normal file
@@ -0,0 +1,50 @@
|
||||
// BinaryTool.h : main header file for the BinaryTool application
|
||||
//
|
||||
|
||||
#if !defined(AFX_BinaryTool_H__6E893D47_5B46_11D1_A939_00A0245D4B6C__INCLUDED_)
|
||||
#define AFX_BinaryTool_H__6E893D47_5B46_11D1_A939_00A0245D4B6C__INCLUDED_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
|
||||
#ifndef __AFXWIN_H__
|
||||
#error include 'stdafx.h' before including this file for PCH
|
||||
#endif
|
||||
|
||||
#include "resource.h" // main symbols
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CBinaryToolApp:
|
||||
// See BinaryTool.cpp for the implementation of this class
|
||||
//
|
||||
|
||||
class CBinaryToolApp : public CWinApp
|
||||
{
|
||||
public:
|
||||
CBinaryToolApp();
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(CBinaryToolApp)
|
||||
public:
|
||||
virtual BOOL InitInstance();
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
// Implementation
|
||||
|
||||
//{{AFX_MSG(CBinaryToolApp)
|
||||
afx_msg void OnAppAbout();
|
||||
// NOTE - the ClassWizard will add and remove member functions here.
|
||||
// DO NOT EDIT what you see in these blocks of generated code !
|
||||
//}}AFX_MSG
|
||||
DECLARE_MESSAGE_MAP()
|
||||
};
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
//{{AFX_INSERT_LOCATION}}
|
||||
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
|
||||
|
||||
#endif // !defined(AFX_BinaryTool_H__6E893D47_5B46_11D1_A939_00A0245D4B6C__INCLUDED_)
|
195
Rayman_X/cpa/Appli/BinaryTool/inc/BinaryTool.rc
Normal file
195
Rayman_X/cpa/Appli/BinaryTool/inc/BinaryTool.rc
Normal file
@@ -0,0 +1,195 @@
|
||||
//Microsoft Developer Studio generated resource script.
|
||||
//
|
||||
#include "resource.h"
|
||||
|
||||
#define APSTUDIO_READONLY_SYMBOLS
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Generated from the TEXTINCLUDE 2 resource.
|
||||
//
|
||||
#include "afxres.h"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#undef APSTUDIO_READONLY_SYMBOLS
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// English (U.S.) resources
|
||||
|
||||
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
|
||||
#ifdef _WIN32
|
||||
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
||||
#pragma code_page(1252)
|
||||
#endif //_WIN32
|
||||
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// TEXTINCLUDE
|
||||
//
|
||||
|
||||
1 TEXTINCLUDE DISCARDABLE
|
||||
BEGIN
|
||||
"resource.h\0"
|
||||
END
|
||||
|
||||
2 TEXTINCLUDE DISCARDABLE
|
||||
BEGIN
|
||||
"#include ""afxres.h""\r\n"
|
||||
"\0"
|
||||
END
|
||||
|
||||
3 TEXTINCLUDE DISCARDABLE
|
||||
BEGIN
|
||||
"\r\n"
|
||||
"\0"
|
||||
END
|
||||
|
||||
#endif // APSTUDIO_INVOKED
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Bitmap
|
||||
//
|
||||
|
||||
IDB_BITMAP_CROIX BITMAP DISCARDABLE "bmp132.bmp"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Dialog
|
||||
//
|
||||
|
||||
IDD_ABOUTBOX DIALOG DISCARDABLE 0, 0, 217, 55
|
||||
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
||||
CAPTION "About GraphInter"
|
||||
FONT 8, "MS Sans Serif"
|
||||
BEGIN
|
||||
ICON 128,-1,11,17,20,20
|
||||
LTEXT "GraphInter Version 1.0",-1,40,10,119,8,SS_NOPREFIX
|
||||
LTEXT "Copyright (C) 1997",-1,40,25,119,8
|
||||
DEFPUSHBUTTON "OK",1,178,7,32,14,WS_GROUP
|
||||
END
|
||||
|
||||
IDD_DIALOGMAIN DIALOG DISCARDABLE 0, 0, 329, 252
|
||||
STYLE WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME
|
||||
CAPTION "Binary Converting Tool"
|
||||
FONT 8, "MS Sans Serif"
|
||||
BEGIN
|
||||
PUSHBUTTON "Help",IDC_HELPBUTTON,191,231,50,14
|
||||
PUSHBUTTON "Quit",IDC_QUIT,249,230,50,14
|
||||
CONTROL "Debug",IDC_BUTTON_DEBUG,"Button",BS_AUTORADIOBUTTON |
|
||||
WS_GROUP,81,79,55,15
|
||||
CONTROL "Release",IDC_BUTTON_RELEASE,"Button",BS_AUTORADIOBUTTON,
|
||||
181,79,55,15
|
||||
GROUPBOX "Version",IDC_STATIC_VERS,31,70,251,25
|
||||
CONTROL "Force binarisation of the Fix",IDC_BUTTON_FIX,"Button",
|
||||
BS_AUTOCHECKBOX | WS_TABSTOP,121,38,155,25
|
||||
LTEXT "Source directory",IDC_STATIC_GAME,42,137,68,12
|
||||
GROUPBOX "Options",IDC_STATIC_GR1,31,34,251,25
|
||||
CONTROL "Complete Binarization",IDC_BUTTON_BIN,"Button",
|
||||
BS_AUTOCHECKBOX | WS_TABSTOP,121,106,80,15
|
||||
GROUPBOX "Dsc",IDC_STATIC_DSC,31,98,251,25
|
||||
PUSHBUTTON "...",IDC_BUTTON_BROWSE3,250,135,17,13
|
||||
EDITTEXT IDC_EDIT_DESTBIND,119,166,125,13,ES_AUTOHSCROLL |
|
||||
ES_READONLY
|
||||
LTEXT "Destination directory",IDC_STATIC_RAW,43,168,64,20
|
||||
PUSHBUTTON "...",IDC_BUTTON_BROWSE2,253,166,17,13
|
||||
EDITTEXT IDC_EDIT_SOURCE,118,136,125,13,ES_AUTOHSCROLL |
|
||||
ES_READONLY
|
||||
GROUPBOX "General directories",IDC_STATIC_GR2,32,124,251,63
|
||||
GROUPBOX "Executable File",IDC_STATIC_EXEC,31,190,251,35
|
||||
PUSHBUTTON "...",IDC_BUTTON_CHANGE,252,201,17,13
|
||||
EDITTEXT IDC_EDIT_EXEC,117,201,125,13,ES_AUTOHSCROLL |
|
||||
ES_READONLY
|
||||
LTEXT "Exe Filename",IDC_STATIC_EXEC1,43,201,64,20
|
||||
LTEXT "Result",IDC_STATIC_RES,20,98,63,11
|
||||
LTEXT "Commands",IDC_STATIC_COM,20,31,63,11
|
||||
CONTROL "",IDC_STATIC_COMMANDEDIT,"Static",SS_WHITEFRAME |
|
||||
SS_SUNKEN | NOT WS_VISIBLE | WS_BORDER,26,42,269,47
|
||||
CONTROL "",IDC_STATIC_RESULTEDIT,"Static",SS_WHITEFRAME | NOT
|
||||
WS_VISIBLE,26,114,269,89
|
||||
CONTROL "Tab1",IDC_PANEL,"SysTabControl32",0x0,7,7,305,212
|
||||
GROUPBOX "Selection",IDC_STATIC_GRALL,207,37,87,85
|
||||
PUSHBUTTON "All",IDC_BUTTON_ALL,222,49,55,15
|
||||
PUSHBUTTON "All in list",IDC_BUTTON_ALLINLIST,222,66,55,15
|
||||
PUSHBUTTON "Clear",IDC_BUTTON_CLEAR,222,83,55,15
|
||||
PUSHBUTTON "Clear all",IDC_BUTTON_CLEARALL,222,100,55,15
|
||||
GROUPBOX "Options",IDC_STATIC_OPT,207,123,87,46
|
||||
CONTROL "Binarize Animations",IDC_BUTTON_CONVANI,"Button",
|
||||
BS_AUTOCHECKBOX | WS_TABSTOP,223,132,75,15
|
||||
CONTROL "Binarize Textures",IDC_BUTTON_CONVTEX,"Button",
|
||||
BS_AUTOCHECKBOX | WS_TABSTOP,223,143,75,15
|
||||
CONTROL "Binarize Levels",IDC_BUTTON_CONVLEVEL,"Button",
|
||||
BS_AUTOCHECKBOX | WS_TABSTOP,223,154,75,15
|
||||
GROUPBOX "Makeanim options",IDC_STATIC_MOPT,207,170,87,47
|
||||
CONTROL "Batch",IDC_BUTTON_USED,"Button",BS_AUTOCHECKBOX |
|
||||
WS_TABSTOP,223,179,75,15
|
||||
CONTROL "All",IDC_BUTTON_A,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
|
||||
223,190,75,15
|
||||
CONTROL "Tbl",IDC_BUTTON_Z,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,
|
||||
223,201,75,15
|
||||
GROUPBOX "ConvImg options",IDC_STATIC_COPT,207,219,87,57
|
||||
CONTROL "BMP",IDC_BUTTON_BMP,"Button",BS_AUTOCHECKBOX |
|
||||
WS_TABSTOP,223,227,75,15
|
||||
CONTROL "TGA",IDC_BUTTON_TGA,"Button",BS_AUTOCHECKBOX |
|
||||
WS_TABSTOP,223,238,75,15
|
||||
CONTROL "Convert16",IDC_BUTTON_C16,"Button",BS_AUTOCHECKBOX |
|
||||
WS_TABSTOP,223,249,75,15
|
||||
CONTROL "Convert32",IDC_BUTTON_C32,"Button",BS_AUTOCHECKBOX |
|
||||
WS_TABSTOP,223,260,75,15
|
||||
PUSHBUTTON "Generate auto.ini",IDC_BUTTON_AUTO,222,278,67,15
|
||||
PUSHBUTTON "Binarize",IDC_BUTTON_CONVERT,222,296,55,15
|
||||
LISTBOX IDC_LIST1,25,37,77,161,LBS_SORT | LBS_OWNERDRAWFIXED |
|
||||
LBS_HASSTRINGS | LBS_NOINTEGRALHEIGHT | WS_VSCROLL |
|
||||
WS_TABSTOP
|
||||
LISTBOX IDC_LIST2,107,37,94,161,LBS_SORT | LBS_OWNERDRAWFIXED |
|
||||
LBS_HASSTRINGS | LBS_NOINTEGRALHEIGHT | LBS_EXTENDEDSEL |
|
||||
WS_VSCROLL | WS_GROUP | WS_TABSTOP
|
||||
LTEXT "There are no datas to convert! \n\n Please, select another Source Directory!",
|
||||
IDC_STATIC_LIST1,25,37,177,161
|
||||
LTEXT "BinaryTool Version",IDC_STATIC_VERS1,82,225,100,14
|
||||
CONTROL "",IDC_STATIC_PROGRESS,"msctls_progress32",WS_BORDER,231,
|
||||
210,87,15
|
||||
END
|
||||
|
||||
IDD_DIALOGWARNING DIALOG DISCARDABLE 0, 0, 179, 74
|
||||
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
||||
CAPTION "Family Conversion : Specific / Common"
|
||||
FONT 8, "MS Sans Serif"
|
||||
BEGIN
|
||||
DEFPUSHBUTTON "Yes",IDOK,4,55,80,14
|
||||
PUSHBUTTON "No",IDCANCEL,93,55,80,14
|
||||
LTEXT "",IDC_STATICWARNING,7,7,172,44
|
||||
END
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// DESIGNINFO
|
||||
//
|
||||
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
GUIDELINES DESIGNINFO DISCARDABLE
|
||||
BEGIN
|
||||
IDD_DIALOGWARNING, DIALOG
|
||||
BEGIN
|
||||
BOTTOMMARGIN, 73
|
||||
END
|
||||
END
|
||||
#endif // APSTUDIO_INVOKED
|
||||
|
||||
#endif // English (U.S.) resources
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
|
||||
#ifndef APSTUDIO_INVOKED
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Generated from the TEXTINCLUDE 3 resource.
|
||||
//
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#endif // not APSTUDIO_INVOKED
|
||||
|
262
Rayman_X/cpa/Appli/BinaryTool/inc/DlgMain.h
Normal file
262
Rayman_X/cpa/Appli/BinaryTool/inc/DlgMain.h
Normal file
@@ -0,0 +1,262 @@
|
||||
#if !defined(AFX_DLGMAIN_H__C3B78329_60A7_11D1_A944_00A0245D4B6C__INCLUDED_)
|
||||
#define AFX_DLGMAIN_H__C3B78329_60A7_11D1_A944_00A0245D4B6C__INCLUDED_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
/*
|
||||
=======================================================================================
|
||||
Name: DlgMain.h : header file
|
||||
|
||||
Author: Mihaela Tancu
|
||||
Description: File containing functions for main window
|
||||
=======================================================================================
|
||||
*/
|
||||
#include "GIItem.h"
|
||||
#include <afxtempl.h>
|
||||
#include "GIType.h"
|
||||
#include "shlobj.h"
|
||||
|
||||
/*
|
||||
=======================================================================================
|
||||
* for writing a normal line or an error line in RichEdit result window
|
||||
=======================================================================================
|
||||
*/
|
||||
#define C_ComRes_cOkLine 0
|
||||
#define C_ComRes_cErrorLine 1
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CDlgMain dialog
|
||||
|
||||
class CDlgMain : public CDialog
|
||||
{
|
||||
public:
|
||||
CTabCtrl m_oPanel; //used for the tab controls
|
||||
|
||||
CListBox *m_oListType; //first list box with types
|
||||
CListBox *m_oListObject; //second list box with objects
|
||||
|
||||
GI_Type *m_p_oTypeAnims; //the possible types in the first list box
|
||||
GI_Type *m_p_oTypeTextures; //in this way is easy to know at one time with what type we are working
|
||||
GI_Type *m_p_oTypeLevels;
|
||||
|
||||
int m_iCountOfSelections; //the number of all selections in all list associated with the types
|
||||
CProgressCtrl m_oProgress;
|
||||
BOOL m_bConversion;
|
||||
|
||||
BOOL m_bFirstShow; //used for displaying a cross in front of an active object in the second list
|
||||
CDC m_oCrossDC;
|
||||
CBitmap m_oCrossBitmap;
|
||||
|
||||
/*
|
||||
=======================================================================================
|
||||
* window controls for resizing
|
||||
=======================================================================================
|
||||
*/
|
||||
UINT m_a_uiEditControls[6]; //used for the edit controls
|
||||
int m_a_iSizeLeft[6];
|
||||
char m_cNbEditBox;
|
||||
|
||||
UINT m_a_uiRightButtons[15]; //used for the right push buttons
|
||||
char m_cNbRightButtons;
|
||||
|
||||
UINT m_a_uiRightBut[15]; //used for the right push buttons
|
||||
char m_cNbRightBut;
|
||||
|
||||
UINT m_a_uiRadioButtons[15]; //used for the radio buttons
|
||||
char m_cNbRadioButtons;
|
||||
|
||||
UINT m_a_uiGroupButtons[5]; //used for the group buttons
|
||||
char m_cNbGroupButtons;
|
||||
|
||||
/*
|
||||
=======================================================================================
|
||||
* result windows: Result and Command
|
||||
=======================================================================================
|
||||
*/
|
||||
CRichEditCtrl m_oRichEditRes; //used for the rich edit control Result
|
||||
CHARFORMAT m_stCharFormatRes;
|
||||
|
||||
CRichEditCtrl m_oRichEditCom; //used for the rich edit control Command
|
||||
CHARFORMAT m_stCharFormatCom;
|
||||
|
||||
BOOL m_bInit; // used for initialize
|
||||
|
||||
// Construction
|
||||
public:
|
||||
CDlgMain(CWnd* pParent = NULL); // standard constructor
|
||||
~CDlgMain(); // standard destructor
|
||||
|
||||
// Dialog Data
|
||||
//{{AFX_DATA(CDlgMain)
|
||||
enum { IDD = IDD_DIALOGMAIN };
|
||||
// NOTE: the ClassWizard will add data members here
|
||||
//}}AFX_DATA
|
||||
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(CDlgMain)
|
||||
protected:
|
||||
virtual BOOL PreTranslateMessage(MSG* pMsg);
|
||||
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
||||
protected:
|
||||
virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
private:
|
||||
// when is selected the first panel show only its controls
|
||||
void m_fn_TabC_vShowControlsPanelDir() ;
|
||||
// when is selected the second panel show only its controls
|
||||
void m_fn_TabC_vShowControlsPanelSel() ;
|
||||
// when is selected the third panel show only its controls
|
||||
void m_fn_TabC_vShowControlsPanelRes() ;
|
||||
// set/reset the flag for convering or not the animations
|
||||
void mfn_vConvAnim();
|
||||
// set/reset the flag for convering or not the textures
|
||||
void mfn_vConvTextures();
|
||||
void mfn_vConvLevels();
|
||||
// free the allocated memory
|
||||
void mfn_vFreeMemory() ;
|
||||
void mfn_vFreeMemoryForType(GI_Type **_p_oType) ;
|
||||
// show the controls from the first panel
|
||||
// according to the parameter bChange
|
||||
void m_fn_TabC_vChangeShowControlsPanelDir(BOOL bChange) ;
|
||||
// Show or hide the buttons from the second panel
|
||||
// according to the parameter bChange
|
||||
void m_fn_TabC_vChangeShowControlsPanelSel(BOOL bChange) ;
|
||||
// Show or hide the buttons from the third panel
|
||||
// according to the parameter bChange
|
||||
void m_fn_TabC_vChangeShowControlsPanelRes(BOOL bChange) ;
|
||||
|
||||
// write a line in the rich edit control
|
||||
// with different color (red or black) for Ok or for Error
|
||||
void m_fn_ComRes_vWriteLine( char *szLine, char cLineType ,CRichEditCtrl *_oRichEdit,
|
||||
CHARFORMAT *_stCharFormat);
|
||||
// delete the content of the rich edit control
|
||||
void m_fn_ComRes_vDeleteLines( CRichEditCtrl *_oRichEdit);
|
||||
|
||||
//test if exist the name of the executable file, the directories...
|
||||
BOOL m_fn_bWarningUser();
|
||||
//if the directories does not exist, inform the user
|
||||
void m_fn_vShowPartialWarning(BOOL bSet, char *szPath, char *_szMessage, BOOL * bDisplay, int iID, char *szDir);
|
||||
//only call the function m_fn_bWarningUser() (till now)
|
||||
BOOL m_fn_vTestIniDatas();
|
||||
//function used for start browsing from a directory specified (it applies for Textures and Default sub-directories of RawData directory)
|
||||
void m_fn_vBrowseStartingFromDirectory(char *szPath, int *iResult) ;
|
||||
//used for testing if in one directory exist some subdirectories (also the case for the RawData directory from which to select the sub-directories Textures and Default).
|
||||
BOOL m_fn_bExistDirectories(char *szPath);
|
||||
//obtained the structure needed for browsing
|
||||
void m_fn_vBrowseDirectory(char* szPath, int *p_iResult, ITEMIDLIST *p_stItemRoot);
|
||||
//returning a flag which tells if in the specified path exist files
|
||||
BOOL m_fn_bGetFiles(char *szFile, HANDLE *hHandle, WIN32_FIND_DATA *stFindFileData);
|
||||
//complete the list with objects associated with a type from the informations stored inthe directory
|
||||
void m_fn_vGetDatas(char *szPath);
|
||||
//setting all the variables to the directories, and obtained all the datas in the list box with objects
|
||||
void m_fn_vGetAllTypes();
|
||||
//calling the function m_fn_vGetDatas for all types
|
||||
void m_fn_vGetSetDatasInList(char *szAnims, char *szTextures, char *szLevels);
|
||||
//if the directory exist, add the corresponding type in the list box
|
||||
void m_fn_vAddType(GI_Type * p_oType, char *szReturn, char *szType, char *szDir, int *iNumber);
|
||||
//add objects to the list with objects
|
||||
void m_fn_vCreateLists( CList<GI_Item *,GI_Item *> *_oListObject, char *szPath, char *szType, GI_Item * _p_oItem);
|
||||
//for the selected type create the list with objects associated with it (upadate the second list box with objects)
|
||||
void m_fn_vUpdateListBox(CList<GI_Item *,GI_Item *> *_oListObject,
|
||||
char *szPath, char *szType);
|
||||
//select the first type in the first list box with types and update the info's for the objects
|
||||
void m_fn_vUpdateAll();
|
||||
//make all the objects actives/inactives in the list, modify corresponding the global and local number of selections
|
||||
void m_fn_vSelectAllInList(GI_Type * _p_oType, BOOL bSet) ;
|
||||
//makes all the objects actives/inactives
|
||||
void m_fn_vSelectAll(BOOL bSet) ;
|
||||
//select a type, and for it call the function m_fn_vSelectAllInList
|
||||
void m_fn_vSelectAllForType(BOOL bSet) ;
|
||||
//it is not used anymore
|
||||
int m_fn_iGetAllSelectionsInList(GI_Type * _p_oType) ;
|
||||
//return the total number of objects in all lists
|
||||
int m_fn_iGetAllObjects();
|
||||
//modify the active/inactive state of the object(s)
|
||||
BOOL m_fn_bOnChangeActivation(GI_Item *_p_oItem, int iIndexItem );
|
||||
//depending on the flag bSet, modify the state of the object, and increment the total/local number of selections
|
||||
void m_fn_vChange(GI_Item *p_oItem, GI_Type *p_oType, BOOL bSet );
|
||||
//enable/disable the selections buttons in the second panel
|
||||
void m_fn_vEnableButtons(BOOL bSet) ;
|
||||
//enable/disable the selections buttons in the second panel
|
||||
void m_fn_TabC_vDisableAllButtons() ;
|
||||
void m_fn_TabC_vEnableButtons() ;
|
||||
//enable/disable the buttons Convert and ClearAll
|
||||
void m_fn_vEnableButtonConvert();
|
||||
//enable/disable the button All
|
||||
void m_fn_vEnableButtonAll() ;
|
||||
//change the color of a type depending if it has no objects selected, some objects selected, all objects selected
|
||||
void m_fn_vOnDrawItemListBoxType(LPDRAWITEMSTRUCT lpDIS);
|
||||
//draw a cross in front of an active object
|
||||
void m_fn_vOnDrawItemListBoxObject(LPDRAWITEMSTRUCT lpDIS);
|
||||
//add a type in the list box with types, only if in the corresponding directory are the corresponding datas
|
||||
int m_fn_iAddTestDirType(char *szFiles);
|
||||
//set the global variable of the type to the new type if the number of the elements for that type is not zero
|
||||
void m_fn_vSetTypeInList(GI_Type ** _p_oType, char *szType, int iNumber);
|
||||
|
||||
void m_fn_iGetAllFamilies(GI_Item * p_oItem);
|
||||
void m_fn_iGetAllAnimations(GI_Item * p_oItem);
|
||||
void m_fn_iGetAllTextures(GI_Item * p_oItem);
|
||||
int m_fn_iInitBinGame(char *sString, GI_Item *p_oItem);
|
||||
char m_fn_cExecuteGame(char *szProgramName, char *szDirName, char *szLevelName, char *szDebug, char *szVersion, char *szFirst);
|
||||
void m_fn_vInitBinTextures( char *sString );
|
||||
|
||||
// void m_fn_vBrowseStartingFromDirectory(char* szPath, int *p_iResult);
|
||||
// void m_fn_vBrowseDirectory(char* szPath, int *p_iResult, ITEMIDLIST *p_stItemRoot);
|
||||
|
||||
// Implementation
|
||||
protected:
|
||||
|
||||
// Generated message map functions
|
||||
//{{AFX_MSG(CDlgMain)
|
||||
afx_msg BOOL OnInitDialog();
|
||||
afx_msg void OnDestroy();
|
||||
afx_msg void OnPaint();
|
||||
afx_msg void OnConvAnim();
|
||||
afx_msg void OnConvTextures();
|
||||
afx_msg void OnConvLevels();
|
||||
afx_msg void OnGenerateAuto();
|
||||
afx_msg void OnUsed();
|
||||
afx_msg void OnAll();
|
||||
afx_msg void OnTbl();
|
||||
afx_msg void OnButtonFix();
|
||||
afx_msg void OnBMP();
|
||||
afx_msg void OnTGA();
|
||||
afx_msg void OnConvert16();
|
||||
afx_msg void OnConvert32();
|
||||
afx_msg void OnSizing( UINT nSide, LPRECT lpRect );
|
||||
afx_msg void OnSelchangePanel(NMHDR* pNMHDR, LRESULT* pResult);
|
||||
afx_msg void OnHelp();
|
||||
afx_msg void OnQuit();
|
||||
afx_msg void OnSelectAll();
|
||||
afx_msg void OnCheckZoo();
|
||||
afx_msg void OnSelectAllInList();
|
||||
afx_msg void OnClear();
|
||||
afx_msg void OnClearAll();
|
||||
afx_msg void OnButtonDebug();
|
||||
afx_msg void OnButtonBin();
|
||||
afx_msg void OnButtonRelease();
|
||||
afx_msg void OnButtonBrowseDestBinD();
|
||||
afx_msg void OnButtonBrowseSource();
|
||||
afx_msg void OnButtonBrowseDestBinR();
|
||||
afx_msg void OnBinarise();
|
||||
afx_msg void OnSize(UINT nType, int cx, int cy);
|
||||
afx_msg void OnSelchangeListType();
|
||||
afx_msg void OnDrawItem(int nIDCtl, LPDRAWITEMSTRUCT lpDIS);
|
||||
afx_msg void OnMeasureItem(int nIDCtl, LPMEASUREITEMSTRUCT lpMeasureItemStruct) ;
|
||||
afx_msg void OnSelchangeListObject();
|
||||
afx_msg BOOL OnLButtonDownListBoxObject(MSG *pMsg);
|
||||
afx_msg BOOL OnKeyDownListBoxObject(MSG *pMsg);
|
||||
afx_msg void OnButtonBrowseExeFile();
|
||||
//}}AFX_MSG
|
||||
DECLARE_MESSAGE_MAP()
|
||||
};
|
||||
|
||||
//{{AFX_INSERT_LOCATION}}
|
||||
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
|
||||
|
||||
#endif // !defined(AFX_DLGMAIN_H__C3B78329_60A7_11D1_A944_00A0245D4B6C__INCLUDED_)
|
47
Rayman_X/cpa/Appli/BinaryTool/inc/DlgWarning.h
Normal file
47
Rayman_X/cpa/Appli/BinaryTool/inc/DlgWarning.h
Normal file
@@ -0,0 +1,47 @@
|
||||
/*
|
||||
=======================================================================================
|
||||
Name : DLGWarning.h
|
||||
|
||||
Author : Mihaela Tancu
|
||||
|
||||
Description : Header file for about dialog box class
|
||||
=======================================================================================
|
||||
*/
|
||||
#include "Resource.h"
|
||||
|
||||
#ifndef __DLGWARNING_H__
|
||||
#define __DLGWARNING_H__
|
||||
|
||||
/*
|
||||
=======================================================================================
|
||||
CDlgWarning dialog class
|
||||
=======================================================================================
|
||||
*/
|
||||
|
||||
class CDlgWarning : public CDialog
|
||||
{
|
||||
//data members
|
||||
private:
|
||||
|
||||
// Construction
|
||||
public:
|
||||
CDlgWarning(CWnd* pParent = NULL); // standard constructor
|
||||
CStatic *m_oStatic;
|
||||
|
||||
// Dialog Data
|
||||
//{{AFX_DATA(CDlgWarning)
|
||||
enum { IDD = IDD_DIALOGWARNING };
|
||||
// NOTE: the ClassWizard will add data members here
|
||||
//}}AFX_DATA
|
||||
|
||||
// Implementation
|
||||
protected:
|
||||
// Generated message map functions
|
||||
//{{AFX_MSG(CDlgWarning)
|
||||
virtual BOOL OnInitDialog();
|
||||
afx_msg void OnDestroy();
|
||||
//}}AFX_MSG
|
||||
DECLARE_MESSAGE_MAP()
|
||||
};
|
||||
|
||||
#endif /*__DLGWARNING_H__*/
|
35
Rayman_X/cpa/Appli/BinaryTool/inc/GIItem.h
Normal file
35
Rayman_X/cpa/Appli/BinaryTool/inc/GIItem.h
Normal file
@@ -0,0 +1,35 @@
|
||||
/*
|
||||
=======================================================================================
|
||||
Name : GIItem.h
|
||||
|
||||
Author : Mihaela Tancu
|
||||
Description : Define the GI_Item class
|
||||
=======================================================================================
|
||||
*/
|
||||
|
||||
#ifndef __GIITEM_H__
|
||||
#define __GIITEM_H__
|
||||
|
||||
#include <afxtempl.h>
|
||||
|
||||
class GI_Item
|
||||
{
|
||||
// datas
|
||||
public:
|
||||
BOOL m_bActived; //boolean for telling if the object is active
|
||||
//or inactive (in the list box is drawn a cross in front of an activ object
|
||||
char m_szName[50]; //the name of the object
|
||||
|
||||
CList< char *, char *> m_oListOfFamilies;
|
||||
CList< char *, char *> m_oListOfAnimations;
|
||||
CList< char *, char *> m_oListOfTextures;
|
||||
|
||||
public:
|
||||
// methods
|
||||
GI_Item(BOOL bAct, char *szName); //constructor
|
||||
~GI_Item(); //destructor
|
||||
|
||||
char* m_fn_p_oGetName(void) { return m_szName; } //return the name of the object
|
||||
};
|
||||
|
||||
#endif // __GIITEM_H__
|
36
Rayman_X/cpa/Appli/BinaryTool/inc/GIType.h
Normal file
36
Rayman_X/cpa/Appli/BinaryTool/inc/GIType.h
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
=======================================================================================
|
||||
Name : GIType.h
|
||||
|
||||
Author : Mihaela Tancu
|
||||
Description : Define the GI_Type class
|
||||
=======================================================================================
|
||||
*/
|
||||
|
||||
#ifndef __GITYPE_H__
|
||||
#define __GITYPE_H__
|
||||
|
||||
#include <afxtempl.h>
|
||||
#include "GIItem.h"
|
||||
|
||||
|
||||
class GI_Type
|
||||
{
|
||||
// datas
|
||||
public:
|
||||
char m_szName[50]; //name of the type
|
||||
int m_iSelected; //number of selected objects for the type
|
||||
COLORREF m_xTextColor; //the text color of the type in list box
|
||||
CList<GI_Item *,GI_Item *> m_oList; //the list of objects associated with the type
|
||||
|
||||
public:
|
||||
// methods
|
||||
GI_Type(char *szName, int _iSelected, COLORREF m_xTextColor); //contructor
|
||||
~GI_Type(); //destructor
|
||||
|
||||
char* m_fn_p_oGetName(void) { return m_szName; } //return the name of type
|
||||
int m_fn_iGetSelected(void) { return m_iSelected; } //return the number of objects selected for that type
|
||||
void m_fn_iSetName(int _iSelected) { m_iSelected=_iSelected; } //set the number of selected objects
|
||||
};
|
||||
|
||||
#endif // __GITYPE_H__
|
136
Rayman_X/cpa/Appli/BinaryTool/inc/IniData.h
Normal file
136
Rayman_X/cpa/Appli/BinaryTool/inc/IniData.h
Normal file
@@ -0,0 +1,136 @@
|
||||
/*
|
||||
=======================================================================================
|
||||
Name :IniData.h
|
||||
|
||||
Author : Mihaela Tancu
|
||||
Description : File containing functions for saving, loading, ...
|
||||
=======================================================================================
|
||||
*/
|
||||
|
||||
#ifndef __INIDATA_H__
|
||||
#define __INIDATA_H__
|
||||
|
||||
#include <afxdisp.h>
|
||||
|
||||
/*
|
||||
=======================================================================================
|
||||
Constants
|
||||
=======================================================================================
|
||||
*/
|
||||
|
||||
static COLORREF gs_a_xLineColor[3] = { RGB( 255, 0,0), RGB( 0,0,0), RGB(0, 0, 255)};
|
||||
|
||||
/*
|
||||
=======================================================================================
|
||||
constants for main window min size
|
||||
=======================================================================================
|
||||
*/
|
||||
#define C_iMainWindowWidth 520
|
||||
#define C_iMainWindowHeight 583
|
||||
|
||||
/*
|
||||
=======================================================================================
|
||||
File .ini
|
||||
=======================================================================================
|
||||
*/
|
||||
#define C_szIniFile "GIData.ini"
|
||||
#define C_szStartPrgIniFile "StartPrg.ini"
|
||||
|
||||
/*
|
||||
=======================================================================================
|
||||
Structures
|
||||
=======================================================================================
|
||||
*/
|
||||
|
||||
typedef struct tdstInitialValue_
|
||||
{
|
||||
char szTempPath1[MAX_PATH]; // temporary path for the destination path
|
||||
char szDestBinDD3D[MAX_PATH]; // name of
|
||||
char szTempPath2[MAX_PATH]; // temporary path for
|
||||
char szSource[MAX_PATH]; // name of
|
||||
char szTempPath3[MAX_PATH]; // temporary path for
|
||||
char szDestBinRD3D[MAX_PATH]; // name of
|
||||
char szTempPath4[MAX_PATH]; // temporary for
|
||||
char szMode[MAX_PATH]; // name of
|
||||
char szTempPath5[MAX_PATH]; // temporary path for
|
||||
char szDestBinDDFX[MAX_PATH]; // name of
|
||||
char szTempPath6[MAX_PATH]; // temporary path for
|
||||
char szDestBinRDFX[MAX_PATH]; // name of
|
||||
/* char szTempPath7[MAX_PATH]; // temporary path
|
||||
char sz3DCard[MAX_PATH]; // name of
|
||||
*/
|
||||
char szTempPath7[MAX_PATH]; // temporary path
|
||||
char szFix[MAX_PATH]; // name of
|
||||
|
||||
char szTempPath8[MAX_PATH]; // temporary name for the exe file
|
||||
char szExeFile[MAX_PATH]; // name of exe
|
||||
} tdstInitialValue;
|
||||
|
||||
extern BOOL bDebug;
|
||||
extern BOOL bConvAnim;
|
||||
extern BOOL bConvTextures;
|
||||
//extern BOOL b3DCard;
|
||||
extern BOOL bConvLevels;
|
||||
extern BOOL bDsc;
|
||||
extern BOOL bFix1;
|
||||
extern BOOL bAuto;
|
||||
extern BOOL bStartPrg;
|
||||
|
||||
typedef struct tdstWindowsPosSize_
|
||||
{
|
||||
RECT stMainPos; // window dimension
|
||||
}tdstWindowsPosSize;
|
||||
|
||||
/*
|
||||
=======================================================================================
|
||||
Globals
|
||||
=======================================================================================
|
||||
*/
|
||||
extern tdstInitialValue g_stInitialData; // initial data
|
||||
extern char g_szIniFile[MAX_PATH]; // ini file
|
||||
extern tdstWindowsPosSize g_stWinPosSize; // program options
|
||||
extern char g_szStartPrgIniFile[MAX_PATH]; // ini file
|
||||
|
||||
/*
|
||||
=======================================================================================
|
||||
Functions
|
||||
=======================================================================================
|
||||
*/
|
||||
void fn_IniData_vSetDestBinDD3D( char *_szPath );
|
||||
void fn_IniData_vSetSource( char *_szPath );
|
||||
void fn_IniData_vSetDestBinRD3D( char *_szPath );
|
||||
void fn_IniData_vSetDestBinDDFX( char *_szPath );
|
||||
void fn_IniData_vSetDestBinRDFX( char *_szPath );
|
||||
//getting the position and size of the main window
|
||||
void fn_IniData_vGetWindowPosSize( void );
|
||||
//setting the position and size of the main window
|
||||
void fn_IniData_vWriteWindowPosSize( void );
|
||||
//function used for the getting the pos and size of the main window
|
||||
void fn_IniData_vStudyRect( char *_szString, RECT *_p_stRect );
|
||||
//obtaining all thbe ddatas in the .ini file for the executable name,
|
||||
//for the local path of the executable file, the path for GameData,
|
||||
//RawData, Textures and Default directories, and
|
||||
//the position and size of the main windoow of the application
|
||||
void fn_IniData_vGetDatasFromFile( BOOL _bFirst );
|
||||
void fn_IniData_vSetMode( BOOL bSetIgnore);
|
||||
void fn_IniData_vSet3DCard( BOOL bSetIgnore);
|
||||
void fn_ComRes_vDeleteLines( CRichEditCtrl *_oRichEdit);
|
||||
void fn_ComRes_vWriteLine( char *szLine, char cLineType ,CRichEditCtrl* _oRichEdit,
|
||||
CHARFORMAT* _stCharFormat);
|
||||
|
||||
void fn_IniData_vSetGDDebugBin( char *_szPath );
|
||||
void fn_IniData_vSetGDReleaseBin( char *_szPath );
|
||||
|
||||
void fn_IniData_vSetSPDebug( char *_szPath );
|
||||
void fn_IniData_vSetSPRelease( char *_szPath );
|
||||
void fn_IniData_vSetAskAtEachTime( char *_szPath );
|
||||
void fn_IniData_vSetAskAtEachTime( int iValue );
|
||||
void fn_IniData_vSetBinDebugIsOk( int iValue );
|
||||
void fn_IniData_vSetBinReleaseIsOk( int iValue );
|
||||
void fn_IniData_vSetBinUseBinaryData( int iValue );
|
||||
void fn_IniData_vGetDatasFromStartFile( BOOL _bFirst );
|
||||
void fn_IniData_vSetDscCreated(BOOL bDsc);
|
||||
void fn_IniData_vSetFix( BOOL bFix );
|
||||
void fn_IniData_vSetCompleteBinarization( BOOL bDsc );
|
||||
|
||||
#endif //__INIDATA_H__
|
79
Rayman_X/cpa/Appli/BinaryTool/inc/Levels.h
Normal file
79
Rayman_X/cpa/Appli/BinaryTool/inc/Levels.h
Normal file
@@ -0,0 +1,79 @@
|
||||
// **********************************************************************************
|
||||
// * "Levels.h" *
|
||||
// * Written by : Mihaela Tancu *
|
||||
// **********************************************************************************
|
||||
#ifndef LEVELS_H
|
||||
#define LEVELS_H
|
||||
|
||||
#include "Scr.h"
|
||||
|
||||
/*
|
||||
=======================================================================================
|
||||
Defines
|
||||
=======================================================================================
|
||||
*/
|
||||
#define M_InsertAlways "InsertAlways"
|
||||
#define M_FichierALW ".alw"
|
||||
#define M_LinkCharacter "LinkCharacter"
|
||||
|
||||
#define M_Texture "Texture"
|
||||
#define M_FichierTEX ".tex"
|
||||
#define M_LoadTexture "LoadTexture"
|
||||
|
||||
#define M_InsertCharacter "InsertCharacter"
|
||||
#define M_FichierLVL ".lvl"
|
||||
|
||||
typedef char xString[256];
|
||||
|
||||
typedef struct MLT_tdstTextures_
|
||||
{
|
||||
xString sName;
|
||||
xString sLoadTexture;
|
||||
|
||||
} MLT_tdstTextures;
|
||||
|
||||
|
||||
typedef struct MLT_tdstAlways_
|
||||
{
|
||||
xString sName;
|
||||
xString sLinkCharacter;
|
||||
|
||||
} MLT_tdstAlways;
|
||||
|
||||
typedef struct MLT_tdstInsertCharacter_
|
||||
{
|
||||
xString sName;
|
||||
xString sLinkCharacter;
|
||||
|
||||
} MLT_tdstInsertCharacter;
|
||||
|
||||
extern MLT_tdstAlways **g_hAlwaysInFile;
|
||||
extern long g_lAlwaysIndex;
|
||||
|
||||
void MLT_vLoadALWFileInLib(char *szFileName);
|
||||
void MLT_vInitALWLoad();
|
||||
SCR_tde_Anl_ReturnValue GLI_xLoadALWCallback(SCR_tdst_File_Description *p_fFile, char *szAction, char *szParams[], SCR_tde_Anl_Action cType);
|
||||
void MLT_vEraseALWLib();
|
||||
void MLT_vInitSystem();
|
||||
void MLT_vExitSystem();
|
||||
|
||||
extern MLT_tdstInsertCharacter **g_hInsertCharacterInFile;
|
||||
extern long g_lInsertCharacterIndex;
|
||||
|
||||
void MLT_vLoadLVLFileInLib(char *szFileName);
|
||||
void MLT_vInitLVLLoad();
|
||||
SCR_tde_Anl_ReturnValue GLI_xLoadLVLCallback(SCR_tdst_File_Description *p_fFile, char *szAction, char *szParams[], SCR_tde_Anl_Action cType);
|
||||
void MLT_vEraseLVLLib();
|
||||
|
||||
extern MLT_tdstTextures **g_hTexturesInFile;
|
||||
extern long g_lTexturesIndex;
|
||||
|
||||
void MLT_vLoadTEXFileInLib(char *szFileName);
|
||||
void MLT_vInitTEXLoad();
|
||||
SCR_tde_Anl_ReturnValue GLI_xLoadTEXCallback(SCR_tdst_File_Description *p_fFile, char *szAction, char *szParams[], SCR_tde_Anl_Action cType);
|
||||
void MLT_vEraseTEXLib();
|
||||
|
||||
char *MLT_p_cGetFileNameWithoutExt(char *_sFileName);
|
||||
char *MLT_p_cGetFileNameWithoutPath(char *sFileName);
|
||||
|
||||
#endif
|
57
Rayman_X/cpa/Appli/BinaryTool/inc/MainFrm.h
Normal file
57
Rayman_X/cpa/Appli/BinaryTool/inc/MainFrm.h
Normal file
@@ -0,0 +1,57 @@
|
||||
// MainFrm.h : interface of the CMainFrame class
|
||||
//
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#if !defined(AFX_MAINFRM_H__6E893D4B_5B46_11D1_A939_00A0245D4B6C__INCLUDED_)
|
||||
#define AFX_MAINFRM_H__6E893D4B_5B46_11D1_A939_00A0245D4B6C__INCLUDED_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
|
||||
class CMainFrame : public CFrameWnd
|
||||
{
|
||||
protected: // create from serialization only
|
||||
CMainFrame();
|
||||
DECLARE_DYNCREATE(CMainFrame)
|
||||
|
||||
// Attributes
|
||||
public:
|
||||
|
||||
// Operations
|
||||
public:
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(CMainFrame)
|
||||
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
// Implementation
|
||||
public:
|
||||
virtual ~CMainFrame();
|
||||
#ifdef _DEBUG
|
||||
virtual void AssertValid() const;
|
||||
virtual void Dump(CDumpContext& dc) const;
|
||||
#endif
|
||||
|
||||
protected: // control bar embedded members
|
||||
CStatusBar m_wndStatusBar;
|
||||
CToolBar m_wndToolBar;
|
||||
|
||||
// Generated message map functions
|
||||
protected:
|
||||
//{{AFX_MSG(CMainFrame)
|
||||
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
|
||||
// NOTE - the ClassWizard will add and remove member functions here.
|
||||
// DO NOT EDIT what you see in these blocks of generated code!
|
||||
//}}AFX_MSG
|
||||
DECLARE_MESSAGE_MAP()
|
||||
};
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
//{{AFX_INSERT_LOCATION}}
|
||||
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
|
||||
|
||||
#endif // !defined(AFX_MAINFRM_H__6E893D4B_5B46_11D1_A939_00A0245D4B6C__INCLUDED_)
|
25
Rayman_X/cpa/Appli/BinaryTool/inc/Print.h
Normal file
25
Rayman_X/cpa/Appli/BinaryTool/inc/Print.h
Normal file
@@ -0,0 +1,25 @@
|
||||
// **********************************************************************************
|
||||
// * "Print.h" *
|
||||
// * Written by : Mihaela Tancu *
|
||||
// **********************************************************************************
|
||||
#ifndef PRINT_H
|
||||
#define PRINT_H
|
||||
|
||||
extern char szDestBinDir[256];
|
||||
extern char sInitialDir[256];
|
||||
extern char szSource[256];
|
||||
extern char sSource[256];
|
||||
extern char sMes[50];
|
||||
extern char sOK[50];
|
||||
extern char sCancel[50];
|
||||
|
||||
#define C_ComRes_cOkLine 1
|
||||
#define C_ComRes_cErrorLine 0
|
||||
#define C_ComRes_cWarningLine 2
|
||||
|
||||
void fn_vAfxOutputStringRes( char* _szString, char _Line);
|
||||
void fn_vAfxOutputStringCom( char* _szString, char _Line);
|
||||
extern void MLT_vOutput( char cLineType, char *szFormat, ... );
|
||||
|
||||
|
||||
#endif
|
84
Rayman_X/cpa/Appli/BinaryTool/inc/Resource.h
Normal file
84
Rayman_X/cpa/Appli/BinaryTool/inc/Resource.h
Normal file
@@ -0,0 +1,84 @@
|
||||
//{{NO_DEPENDENCIES}}
|
||||
// Microsoft Developer Studio generated include file.
|
||||
// Used by BinaryTool.rc
|
||||
//
|
||||
#define IDS_SHEET_GRAPHIC 1
|
||||
#define IDD_ABOUTBOX 100
|
||||
#define IDD_MAX23DOS_DIALOG 101
|
||||
#define IDC_RICHEDIT_COMMAND 102
|
||||
#define IDC_RICHEDIT_RESULT 103
|
||||
#define IDR_MAINFRAME 128
|
||||
#define IDR_GRAPHITYPE 129
|
||||
#define IDD_DIALOGMAIN 131
|
||||
#define IDB_BITMAP_CROIX 132
|
||||
#define IDD_DIALOGWARNING 133
|
||||
#define IDC_BUTTON_ALL 1000
|
||||
#define IDC_EDIT_DESTBIND 1001
|
||||
#define IDC_EDIT_SOURCE 1002
|
||||
#define IDC_BUTTON_BROWSE3 1003
|
||||
#define IDC_EDIT_DESTBINR 1004
|
||||
#define IDC_BUTTON_BROWSE4 1005
|
||||
#define IDC_HELPBUTTON 1006
|
||||
#define IDC_QUIT 1007
|
||||
#define IDC_PANEL 1008
|
||||
#define IDC_BUTTON_ALLINLIST 1009
|
||||
#define IDC_BUTTON_CLEAR 1010
|
||||
#define IDC_BUTTON_CLEARALL 1011
|
||||
#define IDC_TAB1 1012
|
||||
#define IDC_BUTTON_CONVERT 1013
|
||||
#define IDC_STATIC_RESULTEDIT 1014
|
||||
#define IDC_STATIC_COMMANDEDIT 1015
|
||||
#define IDC_BUTTON_BROWSE2 1016
|
||||
#define IDC_STATIC_GAME 1017
|
||||
#define IDC_STATIC_TEXT 1018
|
||||
#define IDC_STATIC_GR1 1019
|
||||
#define IDC_STATIC_RAW 1020
|
||||
#define IDC_STATIC_GR2 1021
|
||||
#define IDC_STATIC_RES 1022
|
||||
#define IDC_STATIC_COM 1023
|
||||
#define IDC_STATIC_GRALL 1024
|
||||
#define IDC_LIST1 1025
|
||||
#define IDC_LIST2 1026
|
||||
#define IDC_STATIC_LIST1 1027
|
||||
#define IDC_BUTTON_DEBUG 1028
|
||||
#define IDC_BUTTON_RELEASE 1029
|
||||
#define IDC_BUTTON_CONVTEX 1030
|
||||
#define IDC_BUTTON_CONVANI 1031
|
||||
#define IDC_STATIC_OPT 1032
|
||||
#define IDC_BUTTON_FIX 1033
|
||||
//#define IDC_BUTTON_D3D 1033
|
||||
//#define IDC_BUTTON_DFX 1034
|
||||
#define IDC_STATIC_VERS 1035
|
||||
#define IDC_BUTTON_ANIONLY 1036
|
||||
#define IDC_BUTTON_USED 1037
|
||||
#define IDC_STATIC_VERS1 1038
|
||||
#define IDC_STATIC_PROGRESS 1039
|
||||
#define IDC_BUTTON_CONVLEVEL 1040
|
||||
#define IDC_STATIC_EXEC 1041
|
||||
#define IDC_BUTTON_CHANGE 1042
|
||||
#define IDC_EDIT_EXEC 1043
|
||||
#define IDC_STATIC_EXEC1 1044
|
||||
#define IDC_BUTTON_BIN 1045
|
||||
#define IDC_STATIC_DSC 1046
|
||||
#define IDC_BUTTON_A 1047
|
||||
#define IDC_BUTTON_Z 1048
|
||||
#define IDC_BUTTON_BMP 1049
|
||||
#define IDC_BUTTON_TGA 1050
|
||||
#define IDC_BUTTON_C16 1051
|
||||
#define IDC_BUTTON_C32 1052
|
||||
#define IDC_STATIC_COPT 1053
|
||||
#define IDC_STATIC_MOPT 1054
|
||||
#define IDC_BUTTON_AUTO 1055
|
||||
#define IDC_STATICWARNING 1056
|
||||
|
||||
// Next default values for new objects
|
||||
//
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
#ifndef APSTUDIO_READONLY_SYMBOLS
|
||||
#define _APS_3D_CONTROLS 1
|
||||
#define _APS_NEXT_RESOURCE_VALUE 133
|
||||
#define _APS_NEXT_COMMAND_VALUE 32771
|
||||
#define _APS_NEXT_CONTROL_VALUE 1041
|
||||
#define _APS_NEXT_SYMED_VALUE 101
|
||||
#endif
|
||||
#endif
|
26
Rayman_X/cpa/Appli/BinaryTool/inc/StdAfx.h
Normal file
26
Rayman_X/cpa/Appli/BinaryTool/inc/StdAfx.h
Normal file
@@ -0,0 +1,26 @@
|
||||
// stdafx.h : include file for standard system include files,
|
||||
// or project specific include files that are used frequently, but
|
||||
// are changed infrequently
|
||||
//
|
||||
|
||||
#if !defined(AFX_STDAFX_H__6E893D49_5B46_11D1_A939_00A0245D4B6C__INCLUDED_)
|
||||
#define AFX_STDAFX_H__6E893D49_5B46_11D1_A939_00A0245D4B6C__INCLUDED_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
|
||||
#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
|
||||
|
||||
#include <afxwin.h> // MFC core and standard components
|
||||
#include <afxext.h> // MFC extensions
|
||||
#include <afxdisp.h> // MFC OLE automation classes
|
||||
#ifndef _AFX_NO_AFXCMN_SUPPORT
|
||||
#include <afxcmn.h> // MFC support for Windows Common Controls
|
||||
#endif // _AFX_NO_AFXCMN_SUPPORT
|
||||
|
||||
|
||||
//{{AFX_INSERT_LOCATION}}
|
||||
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
|
||||
|
||||
#endif // !defined(AFX_STDAFX_H__6E893D49_5B46_11D1_A939_00A0245D4B6C__INCLUDED_)
|
159
Rayman_X/cpa/Appli/BinaryTool/inc/l_global_v6.h
Normal file
159
Rayman_X/cpa/Appli/BinaryTool/inc/l_global_v6.h
Normal file
@@ -0,0 +1,159 @@
|
||||
// **********************************************************************************
|
||||
// * "l_global_v6.h" *
|
||||
// * Written by : S<>bastien Rubens *
|
||||
// * Tabulations : 4 char *
|
||||
// **********************************************************************************
|
||||
#ifndef L_GLOBAL_V6_H
|
||||
#define L_GLOBAL_V6_H
|
||||
|
||||
#include "a3x_glob.h"
|
||||
|
||||
// **********************************************************************************
|
||||
// Enumerates values
|
||||
enum
|
||||
{ eNoKey,
|
||||
eSimpleKey,
|
||||
eDoubleKey
|
||||
};
|
||||
|
||||
enum
|
||||
{ eStackBinStrings,
|
||||
eStackBinVertexes,
|
||||
eStackBinQuaternions,
|
||||
eStackBinA3dGENERAL,
|
||||
eStackBinChannels,
|
||||
eStackBinFrames,
|
||||
eStackBinOnlyFrames,
|
||||
eStackBinHierarchies,
|
||||
eStackBinChannelNames,
|
||||
|
||||
eStackSavedVertexes,
|
||||
eStackSavedQuaternions,
|
||||
eStackSavedNTTO,
|
||||
|
||||
eStackFileA3dAnimationGENERAL,
|
||||
eStackFileVertexes,
|
||||
eStackFileQuaternions,
|
||||
eStackFileHierarchy,
|
||||
eStackFileNTTO,
|
||||
eStackFileOnlyFrame,
|
||||
eStackFileKeyFrame,
|
||||
eStackFileFrame,
|
||||
eStackFileChannel,
|
||||
eStackFileEvent,
|
||||
eStackBinMorphInformation,
|
||||
|
||||
eStackBinSndEventIdList,
|
||||
eStackBinEvent,
|
||||
|
||||
eStackBinNbMax
|
||||
};
|
||||
|
||||
|
||||
|
||||
// **********************************************************************************
|
||||
// Macros definitions
|
||||
|
||||
#define D_BINSCR_LogOld 0
|
||||
#define D_BINSCR_LogNew 1
|
||||
|
||||
#define M_GetStackAlloc( NumStack ) (tdstStacks[(NumStack)].slPosAlloc)
|
||||
#define M_GetStackPos( NumStack ) (tdstStacks[(NumStack)].slStackPos)
|
||||
|
||||
#define ReadUChar( Num ) ( (unsigned char) atoi(_ap_SzParam[(Num)]) )
|
||||
#define ReadSChar( Num ) ( (signed char) atoi(_ap_SzParam[(Num)]) )
|
||||
#define ReadUShort( Num ) ( (unsigned short) atoi(_ap_SzParam[(Num)]) )
|
||||
#define ReadSShort( Num ) ( (signed short) atoi(_ap_SzParam[(Num)]) )
|
||||
#define ReadULong( Num ) ( (unsigned long) atol(_ap_SzParam[(Num)]) )
|
||||
#define ReadSLong( Num ) ( (signed long) atol(_ap_SzParam[(Num)]) )
|
||||
#define ReadFloat( Num ) ( (float) atof(_ap_SzParam[(Num)]) )
|
||||
#define ReadDouble( Num ) ( (double) atof(_ap_SzParam[(Num)]) )
|
||||
#define ReadSebReal( Num ) ( (SEB_xReal) atof(_ap_SzParam[(Num)]) )
|
||||
|
||||
|
||||
// **********************************************************************************
|
||||
// Types definitions
|
||||
|
||||
typedef struct tdstBinStackInfos_
|
||||
{
|
||||
signed long slPosAlloc;
|
||||
signed long slStackPos;
|
||||
signed long slMaxPos;
|
||||
} tdstBinStackInfos;
|
||||
|
||||
|
||||
|
||||
typedef struct tdstSndEventId_
|
||||
{
|
||||
char sName[200];
|
||||
unsigned long ulVal1;
|
||||
unsigned long ulVal2;
|
||||
} tdstSndEventId;
|
||||
|
||||
|
||||
|
||||
// **********************************************************************************
|
||||
// Extern datas definitions
|
||||
extern tdstBinStackInfos tdstStacks [];
|
||||
extern tdFileName ax_xStrings [];
|
||||
extern tdxVector3 axa3_xVertexes [];
|
||||
extern tdxQuater4 axa4_xBinQuaternions [];
|
||||
extern tdstBinA3dAnimationGENERAL ax_tdstA3dGENERAL [];
|
||||
extern tdstBinChannel ax_tdstChannels [];
|
||||
extern tdstBinFrame ax_tdstFrames [];
|
||||
extern tdstBinOnlyFrame ax_tdstOnlyFrames [];
|
||||
extern tdstBinHierarchy ax_tdstHierarchies [];
|
||||
extern tdFileName ax_xChannelNames [];
|
||||
extern tdstSndEventId ax_tdstSndEventId [];
|
||||
extern tdstBinEvent ax_tdstEvents [];
|
||||
extern tdstBinMorphData ax_tdstBinMorphInfos [];
|
||||
|
||||
extern tdxVector3 ax_tdxSavedVertexes [];
|
||||
extern tdxQuater4 ax_tdxSavedQuaternions [];
|
||||
extern tdstNTTO ax_tdstSavedNTTO [];
|
||||
|
||||
extern tdstFileA3dAnimationGENERAL ax_tdstFileA3dGENERAL [];
|
||||
extern tdxULongVector3 ax_tdxFileVertexes [];
|
||||
extern tdxSShortQuater4 ax_tdxFileQuaternions [];
|
||||
extern tdstFileHierarchy ax_tdstFileHierarchy [];
|
||||
extern tdstNTTO ax_tdstFileNTTO [];
|
||||
extern tdstFileOnlyFrame ax_tdstFileOnlyFrame [];
|
||||
extern tdstFileKeyFrame ax_tdstFileKeyFrame [];
|
||||
extern tdstFileFrame ax_tdstFileFrame [];
|
||||
extern tdstFileChannel ax_tdstFileChannel [];
|
||||
extern tdstFileEvent ax_tdstFileEvent [];
|
||||
extern tdstFileMorphData ax_tdstFileMorphInfos []; //AR980305
|
||||
|
||||
extern unsigned short uwOkAnimationFile; // Flag
|
||||
|
||||
extern tdxVector3 a3_xVector0;
|
||||
extern tdxVector3 a3_xVector1;
|
||||
extern tdxQuater4 a4_xQuater0;
|
||||
extern tdxQuater4 a4_xQuater1;
|
||||
extern FILE *ErrorFile, *SizeOut, *EventFile;
|
||||
|
||||
|
||||
|
||||
#ifndef L_GLOBAL_V6_C
|
||||
// **********************************************************************************
|
||||
// Extern fonctions definitions
|
||||
extern void fn_v_AllocateOnStack( unsigned short uwNumStack,
|
||||
signed long slWantedSize );
|
||||
extern void fn_v_DeAllocateOnStack( unsigned short uwNumStack,
|
||||
signed long slSize );
|
||||
extern void fn_v_ResetStacks( void );
|
||||
|
||||
extern void fn_v_LogSectionBegin( int _bFlagNew,
|
||||
char *_szType,
|
||||
char *_szString );
|
||||
extern void fn_v_LogSectionEnd( void );
|
||||
|
||||
extern void fn_v_InitMemV6i( void );
|
||||
extern void fn_v_KillMem( void );
|
||||
|
||||
|
||||
|
||||
// **********************************************************************************
|
||||
#endif
|
||||
|
||||
#endif
|
25
Rayman_X/cpa/Appli/BinaryTool/inc/makeanim.h
Normal file
25
Rayman_X/cpa/Appli/BinaryTool/inc/makeanim.h
Normal file
@@ -0,0 +1,25 @@
|
||||
// **********************************************************************************
|
||||
// * "scr2bin.h" *
|
||||
// * Written by : S<>bastien Rubens *
|
||||
// * Tabulations : 4 char *
|
||||
// **********************************************************************************
|
||||
#ifndef MAKEANIM_H
|
||||
#define MAKEANIM_H
|
||||
|
||||
|
||||
|
||||
// **********************************************************************************
|
||||
extern char szFamilyName[];
|
||||
|
||||
extern unsigned short uwNumOfAnim, uwAnalysedAnim;
|
||||
extern tdFileName TabShortFileName[];
|
||||
extern char TabValidAnimations[];
|
||||
extern char LongActorName[];
|
||||
extern char LongFileName[];
|
||||
extern char AnimationName[];
|
||||
|
||||
extern void fn_vAnimationsOnly(char *szFamName);
|
||||
extern void fn_vTextures(char *szLevelName);
|
||||
|
||||
// **********************************************************************************
|
||||
#endif
|
Reference in New Issue
Block a user