Add rayman2 source files
This commit is contained in:
49
Rayman_X/cpa/Appli/BinaryTool2/inc/BinaryTool.h
Normal file
49
Rayman_X/cpa/Appli/BinaryTool2/inc/BinaryTool.h
Normal file
@@ -0,0 +1,49 @@
|
||||
// BinaryTool.h : main header file for the BINARY TOOL application
|
||||
//
|
||||
|
||||
#if !defined(AFX_BINARYTOOL_H__6B8ECEAE_CC90_11D2_BB42_00E029219C3C__INCLUDED_)
|
||||
#define AFX_BINARYTOOL_H__6B8ECEAE_CC90_11D2_BB42_00E029219C3C__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)
|
||||
// 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__6B8ECEAE_CC90_11D2_BB42_00E029219C3C__INCLUDED_)
|
74
Rayman_X/cpa/Appli/BinaryTool2/inc/BinaryToolDlg.h
Normal file
74
Rayman_X/cpa/Appli/BinaryTool2/inc/BinaryToolDlg.h
Normal file
@@ -0,0 +1,74 @@
|
||||
// BinaryToolDlg.h : header file
|
||||
//
|
||||
|
||||
#if !defined(AFX_BINARYTOOLDLG_H__6B8ECEB0_CC90_11D2_BB42_00E029219C3C__INCLUDED_)
|
||||
#define AFX_BINARYTOOLDLG_H__6B8ECEB0_CC90_11D2_BB42_00E029219C3C__INCLUDED_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
|
||||
#include "Panel.h"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CBinaryToolDlg dialog
|
||||
|
||||
class CBinaryToolDlg : public CDialog
|
||||
{
|
||||
// Construction
|
||||
public:
|
||||
CBinaryToolDlg(CWnd* pParent = NULL); // standard constructor
|
||||
~CBinaryToolDlg();
|
||||
|
||||
// Dialog Data
|
||||
//{{AFX_DATA(CBinaryToolDlg)
|
||||
enum { IDD = IDD_BINARYTOOL_DIALOG };
|
||||
CTabCtrl m_TabControl;
|
||||
//}}AFX_DATA
|
||||
|
||||
void m_fn_vNotifyStartOfWork();
|
||||
void m_fn_vNotifyEndOfWork( BOOL _bKeepDisplayResultPanel );
|
||||
void m_fn_vCancelStopWorkInProgress();
|
||||
BOOL m_fn_bRefreshLevelList();
|
||||
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(CBinaryToolDlg)
|
||||
public:
|
||||
virtual BOOL DestroyWindow();
|
||||
protected:
|
||||
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
// Implementation
|
||||
protected:
|
||||
HICON m_hIcon;
|
||||
CString m_csDlgTitle;
|
||||
|
||||
// Generated message map functions
|
||||
//{{AFX_MSG(CBinaryToolDlg)
|
||||
virtual BOOL OnInitDialog();
|
||||
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
|
||||
afx_msg void OnPaint();
|
||||
afx_msg HCURSOR OnQueryDragIcon();
|
||||
afx_msg void OnSelchangeTabPanel(NMHDR* pNMHDR, LRESULT* pResult);
|
||||
afx_msg void OnQuit();
|
||||
afx_msg void OnClose();
|
||||
afx_msg void OnStopWorkInProgress();
|
||||
//}}AFX_MSG
|
||||
DECLARE_MESSAGE_MAP()
|
||||
|
||||
// For panels management
|
||||
CPanel *m_a_pPanels[10];
|
||||
int m_iNumberOfPanels;
|
||||
int m_iCurrentPanel;
|
||||
int m_iPanelBeforeStartOfWork;
|
||||
int m_iResultPanel;
|
||||
|
||||
void m_fn_vSetCurrentPanel( int _iNewPanel );
|
||||
virtual void OnOK();
|
||||
};
|
||||
|
||||
//{{AFX_INSERT_LOCATION}}
|
||||
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
|
||||
|
||||
#endif // !defined(AFX_BINARYTOOLDLG_H__6B8ECEB0_CC90_11D2_BB42_00E029219C3C__INCLUDED_)
|
61
Rayman_X/cpa/Appli/BinaryTool2/inc/GlobalData.h
Normal file
61
Rayman_X/cpa/Appli/BinaryTool2/inc/GlobalData.h
Normal file
@@ -0,0 +1,61 @@
|
||||
|
||||
#ifndef _GLOBALDATA_H_
|
||||
#define _GLOBALDATA_H_
|
||||
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
|
||||
#include "BinaryTool.h"
|
||||
#include "BinaryToolDlg.h"
|
||||
|
||||
typedef struct tdstGlobalData_
|
||||
{
|
||||
// Info on main window
|
||||
CBinaryToolDlg *p_oMainDlg;
|
||||
CEdit *p_oEditResults;
|
||||
|
||||
// Directory where Binary Tool was launched
|
||||
CString csStartupDirectory;
|
||||
|
||||
// Event set when user wants to stop a work in progress
|
||||
HANDLE hEventStop;
|
||||
BOOL bStopWork; // Same thing as EventStop (set and reset at the same time)
|
||||
|
||||
// User settings
|
||||
CString csBinDirectory; // Path of binary data directory (ex: x:\cpa\exe\main\Bindatas)
|
||||
CString csMainDirectory; // Path of main directory (ex: x:\cpa\exe\main)
|
||||
CString csExeName; // Name of game executable without path (ex: MainWinR.exe )
|
||||
BOOL bDebugVersion; // True if debug, false if release
|
||||
CString csTempTextureDirectory; // A temporary directory for texture bigfile.
|
||||
|
||||
// All possible executables (one per version (debug or release)
|
||||
CStringArray csExecutableNames;
|
||||
|
||||
// From version.ini
|
||||
CStringArray a_csVersionDirectories;
|
||||
|
||||
// From soundversion.ini
|
||||
CStringArray a_csSoundVersionDirectories;
|
||||
|
||||
// From game.dsc
|
||||
CStringArray a_csLevelNames;
|
||||
|
||||
// Binarized levels (array of booleans)
|
||||
CByteArray a_cLevelsSelectedForBinarization;
|
||||
CByteArray a_cBinarizedLevels;
|
||||
|
||||
// Used when binarizing :
|
||||
BOOL bCommonFilesAreCopied; // The files common to all levels have been copied (vignettes, options and such)
|
||||
BOOL bStopBinarizeOnError; // Stop if binarization fails on one map ?
|
||||
BOOL bAutoTestMaps; // Launch automatic test after binarize ?
|
||||
|
||||
// When spawning programs.
|
||||
BOOL bAutoDetectErrors; // Automaticaly close spawned programs on error.
|
||||
|
||||
} tdstGlobalData;
|
||||
|
||||
extern struct tdstGlobalData_ g_stTheGlobalData; // Defined in BinaryTool.cpp
|
||||
|
||||
#endif /* _GLOBALDATA_H_ */
|
60
Rayman_X/cpa/Appli/BinaryTool2/inc/Panel.h
Normal file
60
Rayman_X/cpa/Appli/BinaryTool2/inc/Panel.h
Normal file
@@ -0,0 +1,60 @@
|
||||
#if !defined(AFX_PANEL_H__89CC65A9_D186_11D2_BB48_00E029219C3C__INCLUDED_)
|
||||
#define AFX_PANEL_H__89CC65A9_D186_11D2_BB48_00E029219C3C__INCLUDED_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
// Panel.h : header file
|
||||
//
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CPanel dialog
|
||||
|
||||
class CPanel : public CDialog
|
||||
{
|
||||
// Construction
|
||||
public:
|
||||
CPanel(UINT nIDTemplate, CWnd* pParent = NULL); // standard constructor
|
||||
|
||||
// Dialog Data
|
||||
//{{AFX_DATA(CPanel)
|
||||
enum { IDD = IDD_ABOUTBOX };
|
||||
// NOTE: the ClassWizard will add data members here
|
||||
//}}AFX_DATA
|
||||
|
||||
TCHAR m_szTitle[64];
|
||||
|
||||
virtual BOOL Create( CWnd* pParentWnd );
|
||||
virtual void m_fn_vUpdateRegistry();
|
||||
virtual void m_fn_vEnableAllControls( BOOL bEnable );
|
||||
|
||||
// Methods To control departure from and arrival to a panel
|
||||
// Test if can leave this panel
|
||||
virtual BOOL m_fn_bCanChangePanel();
|
||||
// Called when we arrive in panel (just before displaying it).
|
||||
virtual void m_fn_vOnDisplayPanel();
|
||||
virtual void m_fn_vLevelListHasChanged( BOOL _bErrorWhileReadingGameDsc );
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(CPanel)
|
||||
protected:
|
||||
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
// Implementation
|
||||
protected:
|
||||
|
||||
// Generated message map functions
|
||||
//{{AFX_MSG(CPanel)
|
||||
// NOTE: the ClassWizard will add member functions here
|
||||
//}}AFX_MSG
|
||||
DECLARE_MESSAGE_MAP()
|
||||
|
||||
virtual void OnOk();
|
||||
};
|
||||
|
||||
//{{AFX_INSERT_LOCATION}}
|
||||
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
|
||||
|
||||
#endif // !defined(AFX_PANEL_H__89CC65A9_D186_11D2_BB48_00E029219C3C__INCLUDED_)
|
59
Rayman_X/cpa/Appli/BinaryTool2/inc/PanelBeforeBin.h
Normal file
59
Rayman_X/cpa/Appli/BinaryTool2/inc/PanelBeforeBin.h
Normal file
@@ -0,0 +1,59 @@
|
||||
#if !defined(AFX_PANELBEFOREBIN_H__6B8ECEB8_CC90_11D2_BB42_00E029219C3C__INCLUDED_)
|
||||
#define AFX_PANELBEFOREBIN_H__6B8ECEB8_CC90_11D2_BB42_00E029219C3C__INCLUDED_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
// PanelBeforeBin.h : header file
|
||||
//
|
||||
|
||||
#include "Panel.h"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CPanelBeforeBin dialog
|
||||
|
||||
class CPanelBeforeBin : public CPanel
|
||||
{
|
||||
// Construction
|
||||
public:
|
||||
CPanelBeforeBin(CWnd* pParent=NULL); // standard constructor
|
||||
|
||||
// Dialog Data
|
||||
//{{AFX_DATA(CPanelBeforeBin)
|
||||
enum { IDD = IDD_DIALOG_BeforeBinarization };
|
||||
CEdit m_oEditTempDirForTextures;
|
||||
//}}AFX_DATA
|
||||
|
||||
virtual BOOL Create( CWnd* pParentWnd );
|
||||
virtual void m_fn_vUpdateRegistry();
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(CPanelBeforeBin)
|
||||
protected:
|
||||
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
// Implementation
|
||||
protected:
|
||||
|
||||
// Generated message map functions
|
||||
//{{AFX_MSG(CPanelBeforeBin)
|
||||
afx_msg void OnMakeSoundBanks();
|
||||
virtual BOOL OnInitDialog();
|
||||
afx_msg void OnCopySound();
|
||||
afx_msg void OnMakeGF();
|
||||
afx_msg void OnBrowseTempTextureDirectory();
|
||||
afx_msg void OnMakeBigFile();
|
||||
afx_msg void OnMakeA3i();
|
||||
afx_msg void OnKillfocusEDITTempTextureDirectory();
|
||||
//}}AFX_MSG
|
||||
DECLARE_MESSAGE_MAP()
|
||||
|
||||
void m_fn_vValidateTempTextureDirectory();
|
||||
};
|
||||
|
||||
//{{AFX_INSERT_LOCATION}}
|
||||
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
|
||||
|
||||
#endif // !defined(AFX_PANELBEFOREBIN_H__6B8ECEB8_CC90_11D2_BB42_00E029219C3C__INCLUDED_)
|
116
Rayman_X/cpa/Appli/BinaryTool2/inc/PanelLevels.h
Normal file
116
Rayman_X/cpa/Appli/BinaryTool2/inc/PanelLevels.h
Normal file
@@ -0,0 +1,116 @@
|
||||
#if !defined(AFX_PANELLEVELS_H__90CBA234_D209_11D2_BB49_00E029219C3C__INCLUDED_)
|
||||
#define AFX_PANELLEVELS_H__90CBA234_D209_11D2_BB49_00E029219C3C__INCLUDED_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
// PanelLevels.h : header file
|
||||
//
|
||||
|
||||
#include "Panel.h"
|
||||
#include "util.h"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CListLevels window
|
||||
|
||||
class CListLevels : public CListBox
|
||||
{
|
||||
// Construction
|
||||
public:
|
||||
CListLevels();
|
||||
|
||||
// Attributes
|
||||
public:
|
||||
|
||||
// Operations
|
||||
public:
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(CListLevels)
|
||||
public:
|
||||
virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
// Implementation
|
||||
public:
|
||||
virtual ~CListLevels();
|
||||
|
||||
// Generated message map functions
|
||||
protected:
|
||||
//{{AFX_MSG(CListLevels)
|
||||
// NOTE - the ClassWizard will add and remove member functions here.
|
||||
//}}AFX_MSG
|
||||
|
||||
DECLARE_MESSAGE_MAP()
|
||||
};
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CPanelLevels dialog
|
||||
|
||||
class CPanelLevels : public CPanel
|
||||
{
|
||||
// Construction
|
||||
public:
|
||||
CPanelLevels(CWnd* pParent = NULL); // standard constructor
|
||||
|
||||
// Dialog Data
|
||||
//{{AFX_DATA(CPanelLevels)
|
||||
enum { IDD = IDD_DIALOG_Levels };
|
||||
CButton m_CheckAutoTest;
|
||||
CButton m_CheckStopOnError;
|
||||
CListBox m_ListLevels;
|
||||
//}}AFX_DATA
|
||||
|
||||
virtual BOOL Create( CWnd* pParentWnd );
|
||||
virtual void m_fn_vUpdateRegistry();
|
||||
virtual void m_fn_vLevelListHasChanged( BOOL _bErrorWhileReadingGameDsc );
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(CPanelLevels)
|
||||
public:
|
||||
virtual BOOL PreTranslateMessage(MSG* pMsg);
|
||||
protected:
|
||||
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
// Implementation
|
||||
protected:
|
||||
///CByteArray m_oSelectedLevels;
|
||||
|
||||
// To display a cross in front of selected levels.
|
||||
CDC m_oCrossDC;
|
||||
CBitmap m_oCrossBitmap;
|
||||
CBitmap m_oEmptyBoxBitmap;
|
||||
|
||||
// Generated message map functions
|
||||
//{{AFX_MSG(CPanelLevels)
|
||||
afx_msg void OnDrawItem(int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct);
|
||||
afx_msg void OnSelectAllLevels();
|
||||
afx_msg void OnClearAllLevels();
|
||||
afx_msg void OnBinarize();
|
||||
afx_msg void OnCHECKAutoTest();
|
||||
afx_msg void OnTestMaps();
|
||||
afx_msg void OnBUTTONRefreshLevelList();
|
||||
afx_msg void OnCHECKStopOnError();
|
||||
afx_msg void OnBUTTONEditGameDsc();
|
||||
//}}AFX_MSG
|
||||
DECLARE_MESSAGE_MAP()
|
||||
|
||||
BOOL m_fn_bOnLButtonDownListBoxLevels( MSG *pMsg );
|
||||
BOOL m_fn_bOnKeyDownListBoxLevels( MSG *pMsg );
|
||||
void m_fn_vOnDrawItemListBoxLevels( LPDRAWITEMSTRUCT lpDIS );
|
||||
virtual void OnOk();
|
||||
};
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//{{AFX_INSERT_LOCATION}}
|
||||
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
|
||||
|
||||
|
||||
#endif // !defined(AFX_PANELLEVELS_H__90CBA234_D209_11D2_BB49_00E029219C3C__INCLUDED_)
|
||||
|
||||
|
49
Rayman_X/cpa/Appli/BinaryTool2/inc/PanelResults.h
Normal file
49
Rayman_X/cpa/Appli/BinaryTool2/inc/PanelResults.h
Normal file
@@ -0,0 +1,49 @@
|
||||
#if !defined(AFX_PANELRESULTS_H__89CC65A8_D186_11D2_BB48_00E029219C3C__INCLUDED_)
|
||||
#define AFX_PANELRESULTS_H__89CC65A8_D186_11D2_BB48_00E029219C3C__INCLUDED_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
// PanelResults.h : header file
|
||||
//
|
||||
#include "Panel.h"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CPanelResults dialog
|
||||
|
||||
class CPanelResults : public CPanel
|
||||
{
|
||||
// Construction
|
||||
public:
|
||||
CPanelResults(CWnd* pParent = NULL); // standard constructor
|
||||
|
||||
// Dialog Data
|
||||
//{{AFX_DATA(CPanelResults)
|
||||
enum { IDD = IDD_DIALOG_Results };
|
||||
// NOTE: the ClassWizard will add data members here
|
||||
//}}AFX_DATA
|
||||
|
||||
virtual BOOL Create( CWnd* pParentWnd );
|
||||
virtual void m_fn_vUpdateRegistry();
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(CPanelResults)
|
||||
protected:
|
||||
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
// Implementation
|
||||
protected:
|
||||
|
||||
// Generated message map functions
|
||||
//{{AFX_MSG(CPanelResults)
|
||||
// NOTE: the ClassWizard will add member functions here
|
||||
//}}AFX_MSG
|
||||
DECLARE_MESSAGE_MAP()
|
||||
};
|
||||
|
||||
//{{AFX_INSERT_LOCATION}}
|
||||
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
|
||||
|
||||
#endif // !defined(AFX_PANELRESULTS_H__89CC65A8_D186_11D2_BB48_00E029219C3C__INCLUDED_)
|
72
Rayman_X/cpa/Appli/BinaryTool2/inc/PanelSettings.h
Normal file
72
Rayman_X/cpa/Appli/BinaryTool2/inc/PanelSettings.h
Normal file
@@ -0,0 +1,72 @@
|
||||
#if !defined(AFX_PANELSETTINGS_H__90CBA232_D209_11D2_BB49_00E029219C3C__INCLUDED_)
|
||||
#define AFX_PANELSETTINGS_H__90CBA232_D209_11D2_BB49_00E029219C3C__INCLUDED_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
// PanelSettings.h : header file
|
||||
//
|
||||
|
||||
#include "Panel.h"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CPanelSettings dialog
|
||||
|
||||
class CPanelSettings : public CPanel
|
||||
{
|
||||
// Construction
|
||||
public:
|
||||
CPanelSettings(CWnd* pParent = NULL); // standard constructor
|
||||
|
||||
// Dialog Data
|
||||
//{{AFX_DATA(CPanelSettings)
|
||||
enum { IDD = IDD_DIALOG_Settings };
|
||||
CButton m_CheckAutoDetectErrors;
|
||||
CEdit m_EditMainDirectory;
|
||||
CEdit m_EditBinDirectory;
|
||||
CEdit m_EditExeName;
|
||||
//}}AFX_DATA
|
||||
|
||||
BOOL Create( CWnd* pParentWnd );
|
||||
virtual void m_fn_vUpdateRegistry();
|
||||
BOOL m_fn_bCanChangePanel();
|
||||
void m_fn_vOnDisplayPanel();
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(CPanelSettings)
|
||||
protected:
|
||||
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
// Implementation
|
||||
protected:
|
||||
|
||||
// Generated message map functions
|
||||
//{{AFX_MSG(CPanelSettings)
|
||||
afx_msg void OnBrowseMainDirectory();
|
||||
afx_msg void OnBrowseBinaryDirectory();
|
||||
afx_msg void OnBrowseExeName();
|
||||
afx_msg void OnChangeMainDirectory();
|
||||
afx_msg void OnChangeBinaryDirectory();
|
||||
afx_msg void OnChangeExeName();
|
||||
afx_msg void OnRADIODebugOrRelease();
|
||||
afx_msg void OnDropFiles(HDROP hDropInfo);
|
||||
afx_msg void OnCHECKAutoDetectErrors();
|
||||
afx_msg void OnBUTTONMakeVersion();
|
||||
//}}AFX_MSG
|
||||
DECLARE_MESSAGE_MAP()
|
||||
|
||||
BOOL m_fn_bValidateMainDirectorySetting();
|
||||
BOOL m_fn_bValidateBinDirectorySetting();
|
||||
BOOL m_fn_bValidateGameExeSetting();
|
||||
|
||||
BOOL m_bMainDirectoryIsValid;
|
||||
BOOL m_bBinDirectoryIsValid;
|
||||
BOOL m_bGameExeIsValid;
|
||||
};
|
||||
|
||||
//{{AFX_INSERT_LOCATION}}
|
||||
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
|
||||
|
||||
#endif // !defined(AFX_PANELSETTINGS_H__90CBA232_D209_11D2_BB49_00E029219C3C__INCLUDED_)
|
23
Rayman_X/cpa/Appli/BinaryTool2/inc/Process.h
Normal file
23
Rayman_X/cpa/Appli/BinaryTool2/inc/Process.h
Normal file
@@ -0,0 +1,23 @@
|
||||
|
||||
#ifndef _PROCESS_H_
|
||||
#define _PROCESS_H_
|
||||
|
||||
#include "util.h"
|
||||
|
||||
// Launch a new process using CreateProcess and return immediatly
|
||||
// return TRUE if process was created normally or FALSE if not.
|
||||
// Also fill _p_Info with process informations (handle...)
|
||||
// Display a dialog box to the user in case of error on CreateProcess.
|
||||
BOOL fn_bSpawnProcess( char *_szExeName, char *_szCommandLine, LPPROCESS_INFORMATION _p_Info );
|
||||
void fn_vCloseProcessHandles( LPPROCESS_INFORMATION _p_stProcess );
|
||||
BOOL fn_bCloseSytemErrorDialogBox( char *_szExeName, BOOL bForceClose = FALSE );
|
||||
|
||||
tdeStatus fn_eWaitForMultipleProcesses( int _iNbProcesses, LPPROCESS_INFORMATION _pa_stInfo, LPCTSTR _szExeNames[], int *_p_iProcessesEnded );
|
||||
tdeStatus fn_eSpawnAndWaitForProcess( char *_szExeName, char *_szCommandLine, HANDLE _hEventStop = INVALID_HANDLE_VALUE );
|
||||
tdeStatus fn_eSpawnAndWaitForProcessWithInputEvents( char *_szExeName, char *_szCommandLine );
|
||||
tdeStatus fn_eSpawnAndWaitForProcessWithTimeout( char *_szExeName, char *_szCommandLine, DWORD dwMilliseconds = INFINITE );
|
||||
|
||||
tdeStatus fn_eSpawnThreadAndWaitWithInputEvents( AFX_THREADPROC _p_fn_uiThread, LPVOID _p_vParamForThread );
|
||||
|
||||
#endif
|
||||
|
15
Rayman_X/cpa/Appli/BinaryTool2/inc/Scripts.h
Normal file
15
Rayman_X/cpa/Appli/BinaryTool2/inc/Scripts.h
Normal file
@@ -0,0 +1,15 @@
|
||||
|
||||
#ifndef _SCRIPTS_H_
|
||||
#define _SCRIPTS_H_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
|
||||
// Init acp modules for script parsing.
|
||||
void fn_vInitScr();
|
||||
void fn_vDesinitScr();
|
||||
|
||||
BOOL fn_bReadGameDsc();
|
||||
|
||||
#endif // _SCRIPTS_H_
|
27
Rayman_X/cpa/Appli/BinaryTool2/inc/StdAfx.h
Normal file
27
Rayman_X/cpa/Appli/BinaryTool2/inc/StdAfx.h
Normal file
@@ -0,0 +1,27 @@
|
||||
// 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__6B8ECEB2_CC90_11D2_BB42_00E029219C3C__INCLUDED_)
|
||||
#define AFX_STDAFX_H__6B8ECEB2_CC90_11D2_BB42_00E029219C3C__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>
|
||||
#include <afxmt.h>
|
||||
#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__6B8ECEB2_CC90_11D2_BB42_00E029219C3C__INCLUDED_)
|
9
Rayman_X/cpa/Appli/BinaryTool2/inc/Tasks.h
Normal file
9
Rayman_X/cpa/Appli/BinaryTool2/inc/Tasks.h
Normal file
@@ -0,0 +1,9 @@
|
||||
#ifndef _TASKS_H_
|
||||
#define _TASKS_H_
|
||||
|
||||
tdeStatus fn_e_TASK_Binarize( CByteArray &a_cSelectedLevels );
|
||||
tdeStatus fn_e_TASK_TestBinarizedMaps( CByteArray &a_cBinarizedLevels );
|
||||
tdeStatus fn_e_TASK_Version();
|
||||
|
||||
|
||||
#endif // _TASKS_H_
|
10
Rayman_X/cpa/Appli/BinaryTool2/inc/Threads.h
Normal file
10
Rayman_X/cpa/Appli/BinaryTool2/inc/Threads.h
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
#ifndef _THREAD_H_
|
||||
#define _THREAD_H_
|
||||
|
||||
UINT fn_uiThreadBinarize( LPVOID _p_stParam );
|
||||
UINT fn_uiThreadMakeGFTextures( LPVOID _p_vParam );
|
||||
UINT fn_uiThreadMakeBigFileTextures( LPVOID _p_vParam );
|
||||
UINT fn_uiThreadAnims( LPVOID _p_vParam );
|
||||
|
||||
#endif
|
53
Rayman_X/cpa/Appli/BinaryTool2/inc/file.h
Normal file
53
Rayman_X/cpa/Appli/BinaryTool2/inc/file.h
Normal file
@@ -0,0 +1,53 @@
|
||||
|
||||
|
||||
#ifndef _FILE_H_
|
||||
#define _FILE_H_
|
||||
|
||||
#include "util.h"
|
||||
|
||||
tdeStatus fn_eCreateDirectory( const char *_szDirectory );
|
||||
|
||||
// Copy a file or a directory (no '\' at end of directory name !)
|
||||
// Source may contain wilcards. Dest must be a path to a directory !
|
||||
// If source is a directory, the copy is recursive.
|
||||
tdeStatus fn_eCopyFileOrDirectory( const char *_szSource, const char *_szDest );
|
||||
|
||||
// Copy some files to a directory. Function will also search for files in sub-dirs of source.
|
||||
// Source may contain wilcards. Dest must be a path to a directory !
|
||||
tdeStatus fn_eRecursiveFileCopy( const char *_szSource, const char *_szDest );
|
||||
|
||||
|
||||
// Moves file(s) or a directory (no '\' at end of directory name !)
|
||||
// Source may contain wilcards. Dest must be a path to a directory !
|
||||
tdeStatus fn_eMoveFileOrDirectory( const char *_szSource, const char *_szDest );
|
||||
|
||||
// Deletes file(s) or directory (no '\' at end of directory name !)
|
||||
// Source may contain wilcards.
|
||||
// If source is a directory, the delete is recursive.
|
||||
tdeStatus fn_eDeleteFileOrDirectory( const char *_szSource );
|
||||
|
||||
|
||||
typedef struct tdstCopyFileContext_
|
||||
{
|
||||
CString csMainDirectory;
|
||||
CString csBinDirectory;
|
||||
CString csLevelName;
|
||||
} tdstCopyFileContext;
|
||||
|
||||
// Execute copy/move/deletes/rename commands in given array
|
||||
// See file.cpp for exemples.
|
||||
// stContext contains strings used when replacing %bin%, %level%....
|
||||
tdeStatus fn_eTreatArrayOfFiles( char *_a_szFileCommands[], tdstCopyFileContext *_p_stContext );
|
||||
|
||||
// The arrays for fn_bTreatArrayOfFiles
|
||||
extern char *g_a_szCommonFiles[];
|
||||
extern char *g_a_szFilesAfterFirstPass[];
|
||||
extern char *g_a_szFilesAfterSecondPass[];
|
||||
extern char *g_a_szFixFilesAfterCRB[];
|
||||
extern char *g_a_szDeleteFixFilesAfterCRB[];
|
||||
extern char *g_a_szLevelFilesAfterCRB[];
|
||||
extern char *g_a_szFilesBeforeBinarize[];
|
||||
extern char *g_a_szDeleteFilesAfterBinarize[];
|
||||
|
||||
|
||||
#endif
|
53
Rayman_X/cpa/Appli/BinaryTool2/inc/panelafter.h
Normal file
53
Rayman_X/cpa/Appli/BinaryTool2/inc/panelafter.h
Normal file
@@ -0,0 +1,53 @@
|
||||
#if !defined(AFX_PANELAFTER_H__8AA7F79E_F23D_11D2_BB70_00E029219C3C__INCLUDED_)
|
||||
#define AFX_PANELAFTER_H__8AA7F79E_F23D_11D2_BB70_00E029219C3C__INCLUDED_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
// panelafter.h : header file
|
||||
//
|
||||
|
||||
#include "Panel.h"
|
||||
#include "util.h"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CPanelAfter dialog
|
||||
|
||||
class CPanelAfter : public CPanel
|
||||
{
|
||||
// Construction
|
||||
public:
|
||||
CPanelAfter(CWnd* pParent = NULL); // standard constructor
|
||||
|
||||
virtual BOOL Create( CWnd* pParentWnd );
|
||||
virtual void m_fn_vUpdateRegistry();
|
||||
|
||||
// Dialog Data
|
||||
//{{AFX_DATA(CPanelAfter)
|
||||
enum { IDD = IDD_DIALOG_AfterBinarization };
|
||||
CEdit m_EditSizeOfBigFile;
|
||||
CButton m_CheckDeleteRelocTables;
|
||||
//}}AFX_DATA
|
||||
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(CPanelAfter)
|
||||
protected:
|
||||
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
// Implementation
|
||||
protected:
|
||||
|
||||
// Generated message map functions
|
||||
//{{AFX_MSG(CPanelAfter)
|
||||
afx_msg void OnBUTTONGenerateBigFile();
|
||||
//}}AFX_MSG
|
||||
DECLARE_MESSAGE_MAP()
|
||||
};
|
||||
|
||||
//{{AFX_INSERT_LOCATION}}
|
||||
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
|
||||
|
||||
#endif // !defined(AFX_PANELAFTER_H__8AA7F79E_F23D_11D2_BB70_00E029219C3C__INCLUDED_)
|
55
Rayman_X/cpa/Appli/BinaryTool2/inc/util.h
Normal file
55
Rayman_X/cpa/Appli/BinaryTool2/inc/util.h
Normal file
@@ -0,0 +1,55 @@
|
||||
|
||||
#ifndef _UTIL_H_
|
||||
#define _UTIL_H_
|
||||
|
||||
typedef enum tdeStatus_
|
||||
{
|
||||
STATUS_C_OK,
|
||||
STATUS_C_Error,
|
||||
STATUS_C_UserBreak
|
||||
} tdeStatus;
|
||||
|
||||
|
||||
// Ask the user to choose a directory and return the selected directory.
|
||||
// Return an empty string if no dir selected.
|
||||
// Parameter is the string that will be displayed in dlg box (ie: "Choose directory" )
|
||||
CString fn_csBrowseDirectory( LPCTSTR _p_szTitle, LPCTSTR _p_szDefaultDir = NULL );
|
||||
|
||||
// Add a line of text in the CEdit control used for displaying results.
|
||||
// Line must be terminated by "\r\n" for carriage return.
|
||||
void fn_vOutputLine( const TCHAR *_p_szLine );
|
||||
|
||||
// Read version.ini file and update GlobalData
|
||||
BOOL fn_bReadVersionFile();
|
||||
|
||||
// Read SoundVersion.ini file and update GlobalData
|
||||
BOOL fn_bReadSoundVersionFile();
|
||||
|
||||
// Copy sound directories into bin directory
|
||||
UINT fn_uiThreadCopySoundDirectory( LPVOID _p_stParam );
|
||||
|
||||
// Update the file startprg.ini
|
||||
void fn_vUpdateStartPrg();
|
||||
|
||||
// Update the file startprg.ini
|
||||
void fn_vUpdateStartPrg_old();
|
||||
|
||||
// Disable use of bigfile for relocation tables (in startprg.ini)
|
||||
void fn_vDisableRelocTableBigFile();
|
||||
|
||||
|
||||
// Find a substring in szString1.
|
||||
// Comparaison is case INSENSITIVE.
|
||||
const char *stristr( const char *szString, const char *szSubString );
|
||||
|
||||
BOOL fn_bCheckFileExistanceInStartupDir( CString csFileName );
|
||||
BOOL fn_bValidateMainDirectorySetting();
|
||||
BOOL fn_bValidateBinDirectorySetting();
|
||||
BOOL fn_bValidateGameExeSetting();
|
||||
|
||||
void fn_vMakeSndParserCommandLine( char *szCommandLine );
|
||||
void fn_vGetShortExeName( char *_szShortExeName, char *_szLongExeName );
|
||||
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user