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,66 @@
[WinPref]
Main=( 496, 264,1111, 929)
[Name]
RawSpecific1=RawDPC
RawSpecific2=RawDN64
GameSpecific1=GameDPC
GameSpecific2=GameDN64
[General directories]
PathRawData=F:\_Test\RawData
PathRawSpecific1=F:\_Test\RawDPC
PathRawSpecific2=F:\_Test\RawDN64
PathGameData=F:\_Test\GameData
PathGameSpecific1=F:\_Test\GameDPC
PathGameSpecific2=F:\_Test\GameDN64
[GameData sub-directories]
DirNameTextures=
DirNameDefault=Default
[MainOptions]
Version=RAYMANII
UpdateLst=FALSE
IgnoreMdf=TRUE
[Options]
IgnoreSct=TRUE
IgnoreSpo=TRUE
IgnoreGmt=TRUE
IgnoreTex=TRUE
IgnoreMod=TRUE
IgnoreZoo=TRUE
[Conversion]
CopyAnims=FALSE
CopyTextures=FALSE
GenerateRLI=FALSE
UpdateGameDSC=FALSE
CreateBasicFamily=FALSE
[Erase]
EraseDuplicated=TRUE
EraseUnused=TRUE
[Family]
CommonFamily=FALSE
SpecificFamily=FALSE
AskFamily=TRUE
[SpecificFiles]
Family = TBL,PHY,CHL,ZOO
[Configurations]
ConfigDirs=ConfigDir1,ConfigDir2,ConfigDir3
ConfigSelects=ConfigSelect1,ConfigSelect2,ConfigSelect3
ConfigOptions=ConfigOption1,ConfigOption2
[CurrentConfigs]
DirMode=Standard
Directories=ConfigDir2
Selections=ConfigSelect1
Options=ConfigOption1

View File

@@ -0,0 +1,602 @@
# Microsoft Developer Studio Project File - Name="Win_M23D" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 5.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Application" 0x0101
CFG=Win_M23D - Win32 Debug
!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 "Win_M23D.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 "Win_M23D.mak" CFG="Win_M23D - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
!MESSAGE "Win_M23D - Win32 Release" (based on "Win32 (x86) Application")
!MESSAGE "Win_M23D - Win32 Debug" (based on "Win32 (x86) Application")
!MESSAGE
# Begin Project
# PROP Scc_ProjName ""$/cpa/Appli/Max23Dos/Win_M23D", SNKAAAAA"
# PROP Scc_LocalPath "."
CPP=cl.exe
MTL=midl.exe
RSC=rc.exe
!IF "$(CFG)" == "Win_M23D - Win32 Release"
# PROP BASE Use_MFC 6
# PROP BASE Use_Debug_Libraries 0
# PROP BASE Output_Dir "Release"
# PROP BASE Intermediate_Dir "Release"
# PROP BASE Target_Dir ""
# PROP Use_MFC 6
# PROP Use_Debug_Libraries 0
# PROP Output_Dir "Release"
# PROP Intermediate_Dir "Release"
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /MD /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_AFXDLL" /Yu"stdafx.h" /FD /c
# ADD CPP /nologo /G5 /MD /W3 /GX /O2 /I "x:\cpa\Public" /I "inc" /I "..\inc" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_AFXDLL" /FD /c
# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o NUL /win32
# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o NUL /win32
# ADD BASE RSC /l 0x409 /d "NDEBUG" /d "_AFXDLL"
# ADD RSC /l 0x409 /d "NDEBUG" /d "_AFXDLL"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 /nologo /subsystem:windows /machine:I386
# ADD LINK32 x:\Cpa\Lib\SCRP5_vr.lib x:\Cpa\Lib\ERMP5_vr.lib x:\Cpa\Lib\MMGP5_vr.lib winmm.lib ddraw.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:windows /machine:I386
!ELSEIF "$(CFG)" == "Win_M23D - Win32 Debug"
# PROP BASE Use_MFC 6
# PROP BASE Use_Debug_Libraries 1
# PROP BASE Output_Dir "Debug"
# PROP BASE Intermediate_Dir "Debug"
# PROP BASE Target_Dir ""
# PROP Use_MFC 6
# PROP Use_Debug_Libraries 1
# PROP Output_Dir "Debug"
# PROP Intermediate_Dir "Debug"
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_AFXDLL" /Yu"stdafx.h" /FD /c
# ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /I "x:\cpa\Public" /I "inc" /I "..\inc" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_AFXDLL" /FD /c
# SUBTRACT CPP /Fr
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o NUL /win32
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /o NUL /win32
# ADD BASE RSC /l 0x409 /d "_DEBUG" /d "_AFXDLL"
# ADD RSC /l 0x409 /d "_DEBUG" /d "_AFXDLL"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
# ADD LINK32 x:\Cpa\Lib\SCRP5_vd.lib x:\Cpa\Lib\ERMP5_vd.lib x:\Cpa\Lib\MMGP5_vd.lib winmm.lib ddraw.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:windows /profile /debug /machine:I386
!ENDIF
# Begin Target
# Name "Win_M23D - Win32 Release"
# Name "Win_M23D - Win32 Debug"
# Begin Group "Source Files"
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
# Begin Source File
SOURCE=..\src\A3dSave.c
# End Source File
# Begin Source File
SOURCE=..\src\Actors.c
# End Source File
# Begin Source File
SOURCE=..\src\Altimaps.c
# End Source File
# Begin Source File
SOURCE=..\Src\Anims.c
# End Source File
# Begin Source File
SOURCE=..\Src\Banks.c
# End Source File
# Begin Source File
SOURCE=..\src\Borders.c
# End Source File
# Begin Source File
SOURCE=..\src\ChlSave.c
# End Source File
# Begin Source File
SOURCE=..\Src\Classes.c
# End Source File
# Begin Source File
SOURCE=.\src\DlgAbout.cpp
# End Source File
# Begin Source File
SOURCE=.\src\DlgMain.cpp
# End Source File
# Begin Source File
SOURCE=.\src\DlgMain1.cpp
# End Source File
# Begin Source File
SOURCE=.\src\DlgMain2.cpp
# End Source File
# Begin Source File
SOURCE=.\src\DlgMain3.cpp
# End Source File
# Begin Source File
SOURCE=.\src\DlgMain4.cpp
# End Source File
# Begin Source File
SOURCE=.\src\DlgWarning.cpp
# End Source File
# Begin Source File
SOURCE=..\Src\Families.c
# End Source File
# Begin Source File
SOURCE=.\src\GIItem.cpp
# End Source File
# Begin Source File
SOURCE=.\src\GIType.cpp
# End Source File
# Begin Source File
SOURCE=.\src\GraphInter.cpp
# End Source File
# Begin Source File
SOURCE=.\inc\GraphInter.rc
!IF "$(CFG)" == "Win_M23D - Win32 Release"
!ELSEIF "$(CFG)" == "Win_M23D - Win32 Debug"
!ENDIF
# End Source File
# Begin Source File
SOURCE=.\src\IniData.cpp
# End Source File
# Begin Source File
SOURCE=..\Src\IpoSave.c
# End Source File
# Begin Source File
SOURCE=..\Src\Levels.c
# End Source File
# Begin Source File
SOURCE=..\src\LgtLoad.c
# End Source File
# Begin Source File
SOURCE=..\Src\main.c
# End Source File
# Begin Source File
SOURCE=.\src\MainFrm.cpp
# End Source File
# Begin Source File
SOURCE=..\src\Material.c
# End Source File
# Begin Source File
SOURCE=..\Src\Matrix.c
# End Source File
# Begin Source File
SOURCE=..\Src\matstack.c
# End Source File
# Begin Source File
SOURCE=..\src\Merge.c
# End Source File
# Begin Source File
SOURCE=..\src\ModLib.c
# End Source File
# Begin Source File
SOURCE=..\Src\ModLoad.c
# End Source File
# Begin Source File
SOURCE=..\Src\ModSave.c
# End Source File
# Begin Source File
SOURCE=..\src\Normals.c
# End Source File
# Begin Source File
SOURCE=..\Src\ObjLoad.c
# End Source File
# Begin Source File
SOURCE=..\src\ObjSave.c
# End Source File
# Begin Source File
SOURCE=..\Src\PhySave.c
# End Source File
# Begin Source File
SOURCE=..\src\PlgLoad.c
# End Source File
# Begin Source File
SOURCE=..\src\Rlisave.c
# End Source File
# Begin Source File
SOURCE=..\Src\SaveModifLst.c
# End Source File
# Begin Source File
SOURCE=..\Src\SctLoad.c
# End Source File
# Begin Source File
SOURCE=..\Src\SctSave.c
# End Source File
# Begin Source File
SOURCE=..\Src\SpoLoad.c
# End Source File
# Begin Source File
SOURCE=..\Src\SpoSave.c
# End Source File
# Begin Source File
SOURCE=..\Src\SrfSave.c
# End Source File
# Begin Source File
SOURCE=.\src\StdAfx.cpp
# End Source File
# Begin Source File
SOURCE=..\src\Submaps.c
# End Source File
# Begin Source File
SOURCE=..\src\Textures.c
# End Source File
# Begin Source File
SOURCE=..\src\VseLoad.c
# End Source File
# Begin Source File
SOURCE=..\Src\VseSave.c
# End Source File
# Begin Source File
SOURCE=..\src\ZooLoad.c
# End Source File
# Begin Source File
SOURCE=..\Src\ZooSave.c
# End Source File
# End Group
# Begin Group "Header Files"
# PROP Default_Filter "h;hpp;hxx;hm;inl"
# Begin Source File
SOURCE=..\inc\A3dSave.h
# End Source File
# Begin Source File
SOURCE=..\inc\Actors.h
# End Source File
# Begin Source File
SOURCE=..\inc\Altimaps.h
# End Source File
# Begin Source File
SOURCE=..\Inc\Anims.h
# End Source File
# Begin Source File
SOURCE=..\Inc\Banks.h
# End Source File
# Begin Source File
SOURCE=..\inc\Borders.h
# End Source File
# Begin Source File
SOURCE=..\inc\ChlSave.h
# End Source File
# Begin Source File
SOURCE=..\Inc\Classes.h
# End Source File
# Begin Source File
SOURCE=..\Inc\color.h
# End Source File
# Begin Source File
SOURCE=..\Inc\conventi.h
# End Source File
# Begin Source File
SOURCE=..\Inc\defines.h
# End Source File
# Begin Source File
SOURCE=.\inc\DlgAbout.h
# End Source File
# Begin Source File
SOURCE=.\inc\DlgMain.h
# End Source File
# Begin Source File
SOURCE=.\inc\DlgWarning.h
# End Source File
# Begin Source File
SOURCE=..\Inc\Element.h
# End Source File
# Begin Source File
SOURCE=..\Inc\ErrMlt.h
# End Source File
# Begin Source File
SOURCE=..\Inc\Families.h
# End Source File
# Begin Source File
SOURCE=..\Inc\Fmd.h
# End Source File
# Begin Source File
SOURCE=..\Inc\GeoObj.h
# End Source File
# Begin Source File
SOURCE=..\Inc\GeoSprit.h
# End Source File
# Begin Source File
SOURCE=.\inc\GIItem.h
# End Source File
# Begin Source File
SOURCE=.\inc\GIType.h
# End Source File
# Begin Source File
SOURCE=.\inc\GraphInter.h
# End Source File
# Begin Source File
SOURCE=.\inc\Help.h
# End Source File
# Begin Source File
SOURCE=.\inc\IniData.h
# End Source File
# Begin Source File
SOURCE=..\Inc\IpoSave.h
# End Source File
# Begin Source File
SOURCE=..\Inc\Levels.h
# End Source File
# Begin Source File
SOURCE=..\inc\LgtLoad.h
# End Source File
# Begin Source File
SOURCE=..\Inc\MacroMlt.h
# End Source File
# Begin Source File
SOURCE=.\inc\main.h
# End Source File
# Begin Source File
SOURCE=.\inc\MainFrm.h
# End Source File
# Begin Source File
SOURCE=..\Inc\Material.h
# End Source File
# Begin Source File
SOURCE=..\Inc\matrix.h
# End Source File
# Begin Source File
SOURCE=..\Inc\matstack.h
# End Source File
# Begin Source File
SOURCE=..\Inc\MemMlt.h
# End Source File
# Begin Source File
SOURCE=..\inc\Merge.h
# End Source File
# Begin Source File
SOURCE=..\inc\ModLib.h
# End Source File
# Begin Source File
SOURCE=..\Inc\ModLoad.h
# End Source File
# Begin Source File
SOURCE=..\Inc\ModSave.h
# End Source File
# Begin Source File
SOURCE=..\inc\Normals.h
# End Source File
# Begin Source File
SOURCE=..\Inc\ObjLoad.h
# End Source File
# Begin Source File
SOURCE=..\inc\ObjSave.h
# End Source File
# Begin Source File
SOURCE=..\Inc\PhySave.h
# End Source File
# Begin Source File
SOURCE=..\inc\PlgLoad.h
# End Source File
# Begin Source File
SOURCE=..\inc\Print.h
# End Source File
# Begin Source File
SOURCE=.\inc\Resource.h
# End Source File
# Begin Source File
SOURCE=..\inc\Rlisave.h
# End Source File
# Begin Source File
SOURCE=..\Inc\SaveModifLst.h
# End Source File
# Begin Source File
SOURCE=..\Inc\SctLoad.h
# End Source File
# Begin Source File
SOURCE=..\inc\SctObj.h
# End Source File
# Begin Source File
SOURCE=..\Inc\SctSave.h
# End Source File
# Begin Source File
SOURCE=..\Inc\SpoLoad.h
# End Source File
# Begin Source File
SOURCE=..\Inc\SpoSave.h
# End Source File
# Begin Source File
SOURCE=..\Inc\SprObj.h
# End Source File
# Begin Source File
SOURCE=..\Inc\SrfSave.h
# End Source File
# Begin Source File
SOURCE=.\inc\StdAfx.h
# End Source File
# Begin Source File
SOURCE=..\inc\Submaps.h
# End Source File
# Begin Source File
SOURCE=..\Inc\system.h
# End Source File
# Begin Source File
SOURCE=..\inc\Textures.h
# End Source File
# Begin Source File
SOURCE=..\inc\TypeDef.h
# End Source File
# Begin Source File
SOURCE=..\Inc\util.h
# End Source File
# Begin Source File
SOURCE=..\Inc\vertex.h
# End Source File
# Begin Source File
SOURCE=..\inc\VseLoad.h
# End Source File
# Begin Source File
SOURCE=..\Inc\VseSave.h
# End Source File
# Begin Source File
SOURCE=..\inc\ZooLoad.h
# End Source File
# Begin Source File
SOURCE=..\Inc\ZooSave.h
# End Source File
# End Group
# Begin Group "Resource Files"
# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;cnt;rtf;gif;jpg;jpeg;jpe"
# Begin Source File
SOURCE=.\res\croix.bmp
# End Source File
# Begin Source File
SOURCE=.\res\GraphInter.ico
# End Source File
# Begin Source File
SOURCE=.\res\mainicon.ico
# End Source File
# Begin Source File
SOURCE=.\inc\resource.hm
# End Source File
# End Group
# Begin Source File
SOURCE=.\ReadMe.txt
# End Source File
# End Target
# End Project

View File

@@ -0,0 +1,50 @@
/*=========================================================================
*
* DLGAbout.h - Header file for about dialog box class
*
* Version 1.0
* Revision date
*
*=======================================================================*/
#ifndef __DLGABOUT_H__
#define __DLGABOUT_H__
//--- Includes --------------------------------------------------------
#include "Resource.h"
//----------------------------------------------------------------------
/*
=======================================================================================
CAboutDlg dialog class
=======================================================================================
*/
class CAboutDlg : public CDialog
{
//data members
private:
// Construction
public:
CAboutDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CAboutDlg)
enum { IDD = IDD_DIALOGABOUT };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CAboutDlg)
virtual BOOL OnInitDialog();
afx_msg void OnDestroy();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#endif //__DLGABOUT_H__

View File

@@ -0,0 +1,617 @@
/*=========================================================================
*
* DlgMain.h - Header file for main window class
*
* Version 1.0
* Revision date
*
*=======================================================================*/
#ifndef __DLGMAIN_H__
#define __DLGMAIN_H__
//--- Includes --------------------------------------------------------
#include <shlobj.h>
#include "Resource.h"
#include "GIType.h"
//--- Global --------------------------------------------------------
extern int g_iResultIndex[100];
extern int g_iCommandIndex[1000];
extern char g_szInitialDirectory[_MAX_PATH];
extern int g_iNbConfDirs;
extern char g_szConfDirs[20][20];
extern int g_iNbConfOptions;
extern char g_szConfOptions[20][20];
extern int g_iNbConfSelects;
extern char g_szConfSelects[20][20];
extern char g_szAnimsObj[25][256];
extern char g_szBanksObj[25][256];
extern char g_szLevelsObj[25][256];
extern char g_szClassesObj[25][256];
extern char g_szFamiliesObj[25][256];
extern char g_szTexturesObj[25][256];
extern int g_iNbAnimsObj;
extern int g_iNbBanksObj;
extern int g_iNbLevelsObj;
extern int g_iNbClassesObj;
extern int g_iNbFamiliesObj;
extern int g_iNbTexturesObj;
extern BOOL g_bChangeComboDir;
extern int g_iCurrentIndexDir;
extern BOOL g_bChangeComboOption;
extern int g_iCurrentIndexOption;
extern BOOL g_bChangeComboSelect;
extern int g_iCurrentIndexSelect;
extern char g_szDirConfig[256];
extern char g_szSelectConfig[256];
extern char g_szOptionConfig[256];
extern char g_szRayman2[_MAX_PATH];
extern char g_szModifLst[_MAX_PATH];
extern char g_szEraseMdf[_MAX_PATH];
extern char g_szIgnoreZoo[_MAX_PATH];
extern char g_szIgnoreSct[_MAX_PATH];
extern char g_szIgnoreSpo[_MAX_PATH];
extern char g_szIgnoreGmt[_MAX_PATH];
extern char g_szIgnoreVmt[_MAX_PATH];
extern char g_szCopyAnims[_MAX_PATH];
extern char g_szCopyTextures[_MAX_PATH];
extern char g_szGenerateRLI[_MAX_PATH];
extern char g_szUpdateGameDSC[_MAX_PATH];
extern char g_szEraseDuplicated[_MAX_PATH];
extern char g_szEraseUnused[_MAX_PATH];
extern char g_szForceCommon[_MAX_PATH];
extern char g_szForceSpecific[_MAX_PATH];
extern char g_szCreateBasicFamily[_MAX_PATH];
//--- Functions --------------------------------------------------------
extern LRESULT CALLBACK Command(HWND hwnd, UINT msg, WPARAM wp, LPARAM lp);
extern void MLT_vSetDataSpecific1 ();
extern void MLT_vSetDataSpecific2 ();
/*
=======================================================================================
CDlgMain dialog class
=======================================================================================
*/
class CDlgMain : public CDialog
{
public:
// lists
CListBox *m_oListType;
CListBox *m_oListObject;
// command window
CRichEditCtrl m_oRichEditCom;
CHARFORMAT m_stCharFormatCom;
// result window
CRichEditCtrl m_oRichEditRes;
CHARFORMAT m_stCharFormatRes;
// the possible types in the first list box
GI_Type *m_p_oTypeAnims;
GI_Type *m_p_oTypeBanks;
GI_Type *m_p_oTypeClasses;
GI_Type *m_p_oTypeFamilies;
GI_Type *m_p_oTypeLevels;
GI_Type *m_p_oTypeTextures;
// the number of all selections in all list associated with the types
int m_iCountOfSelections;
int m_iInd;
// used for displaying a cross in front of an active object in the second list
BOOL m_bFirstShow;
CDC m_oCrossDC;
CBitmap m_oCrossBitmap;
BOOL m_bConversion;
BOOL m_bInit;
BOOL m_bRun;
int m_nIndexLast;
CStatic m_oVersion;
// window controls for resizing
// FIRST PANEL
UINT m_a_uiGroupButtons[5];
char m_cNbGroupButtons;
UINT m_a_uiEditControls[6];
char m_cNbEditControls;
UINT m_a_uiEditNameControls[4];
char m_cNbEditNameControls;
UINT m_a_uiBrowseButtons[12];
char m_cNbBrowseButtons;
UINT m_a_uiCustomConfigControls[7];
char m_cNbCustomConfigControls;
UINT m_a_uiCustomStaticControls[6];
char m_cNbCustomStaticControls;
UINT m_a_uiCustomEditControls[6];
char m_cNbCustomEditControls;
UINT m_a_uiMainButtons[3];
char m_cNbMainButtons;
// SECOND PANEL
UINT m_a_uiSelectButtons[2];
char m_cNbSelectButtons;
UINT m_a_uiClearButtons[2];
char m_cNbClearButtons;
UINT m_a_uiSelectConfigButtons[7];
char m_cNbSelectConfigButtons;
UINT m_a_uiConflictStaticButtons[5];
char m_cNbConflictStaticButtons;
UINT m_a_uiConflictMaxButtons[5];
char m_cNbConflictMaxButtons;
UINT m_a_uiConflictEdsButtons[5];
char m_cNbConflictEdsButtons;
UINT m_a_uiOptionButtons[5];
char m_cNbOptionButtons;
UINT m_a_uiEraseButtons[2];
char m_cNbEraseButtons;
UINT m_a_uiFamilyButtons[3];
char m_cNbFamilyButtons;
UINT m_a_uiOptionConfig[7];
char m_cNbOptionConfig;
// Construction
public:
CDlgMain(CWnd* pParent = NULL);
~CDlgMain();
// Dialog Data
//{{AFX_DATA(CDlgMain)
enum { IDD = IDD_DIALOGMAIN };
// panels
CTabCtrl m_oMainPanel;
CTabCtrl m_oConfigPanel;
// directory configs
CEdit m_oEditRegisterDir;
CEdit m_oEditCreateDir;
CButton m_oButtonRegisterDir;
CButton m_oButtonCreateDir;
CButton m_oButtonDeleteDir;
CButton m_oButtonSaveDir;
CComboBox m_oComboChooseDir;
// rawdata
CButton m_oCheckRawData;
CButton m_oCheckRawSP1;
CButton m_oCheckRawSP2;
CEdit m_oEditRawSp1;
CEdit m_oEditRawSp2;
// gamedata
CButton m_oCheckGameData;
CButton m_oCheckGameSP1;
CButton m_oCheckGameSP2;
CEdit m_oEditGameSp1;
CEdit m_oEditGameSp2;
// main options
CButton m_oCheckRayman2;
CButton m_oCheckModifLst;
CButton m_oCheckEraseMdf;
// selection buttons
CButton m_oSelectList;
CButton m_oSelectAll;
CButton m_oClearList;
CButton m_oClearAll;
// select configs buttons
CEdit m_oEditCreateSelect;
CEdit m_oEditRegisterSelect;
CButton m_oButtonRegisterSelect;
CButton m_oButtonCreateSelect;
CButton m_oButtonDeleteSelect;
CButton m_oButtonSaveSelect;
CComboBox m_oComboChooseSelect;
// conflict options
CButton m_oCheckZooMax;
CButton m_oCheckSctMax;
CButton m_oCheckSpoMax;
CButton m_oCheckGmtMax;
CButton m_oCheckVmtMax;
CButton m_oCheckZooEds;
CButton m_oCheckSctEds;
CButton m_oCheckSpoEds;
CButton m_oCheckGmtEds;
CButton m_oCheckVmtEds;
// conversion options
CButton m_oCheckCopyAnims;
CButton m_oCheckCopyTextures;
CButton m_oCheckGenerateRLI;
CButton m_oCheckUpdateGameDsc;
// erase options
CButton m_oCheckEraseDup;
CButton m_oCheckEraseUnused;
// family options
CButton m_oCheckAskFamily;
CButton m_oCheckCommon;
CButton m_oCheckSpecific;
// bank options
CButton m_oCheckCreateFamily;
// options configs
CEdit m_oEditCreateOption;
CEdit m_oEditRegisterOption;
CButton m_oButtonRegisterOption;
CButton m_oButtonCreateOption;
CButton m_oButtonDeleteOption;
CButton m_oButtonSaveOption;
CComboBox m_oComboChooseOption;
// convert button
CButton m_oConvert;
// progress bar
CProgressCtrl m_oProgress;
//}}AFX_DATA
public:
//==============================================================================================================
// DlgMain2.cpp : Main conversion functions
//==============================================================================================================
// main function
void m_fn_vConvertData();
// command line
void m_fn_vBuildCommandLine (char *szCommand);
// convert for each type
void m_fn_vConvertAnimations (char *sGameDir, char *sRaw, char *sGame, int *j, int *l);
void m_fn_vConvertBanks (char *sGameDir, char *sRaw, char *sGame, int *j, int *l);
void m_fn_vConvertClasses (char *sGameDir, char *sRaw, char *sGame, int *j, int *l);
void m_fn_vConvertFamilies (char *sGameDir, char *sRaw, char *sGame, int *j, int *l);
void m_fn_vConvertLevels (char *sGameDir, char *sRaw, char *sGame, int *j, int *l);
void m_fn_vConvertTextures (char *sGameDir, char *sRaw, char *sGame, int *j, int *l);
// family conversion
void m_fn_vPrepareCommonFamily (BOOL bForce, char sFile1[40][_MAX_PATH], BOOL *bContinue, int iIndex, int iProgress);
void m_fn_vPrepareSpecificFamily (BOOL bForce, char sFile1[40][_MAX_PATH], BOOL *bContinue, int iIndex);
// level conversion
void m_fn_vUpdateGameDSC (void);
static UINT ms_fn_vConvertData( void* ptr)
{
((CDlgMain*)ptr)->m_fn_vConvertData();
return 0;
};
// init all options
void m_fn_vInitAllOptions (char *p_szCommanLine, char *szAnims, char *szBanks, char *szClasses, char *szFamilies, char *szLevels, char *szTextures);
//==============================================================================================================
// DlgMain3.cpp : Dialog management functions
//==============================================================================================================
// warnings
BOOL m_fn_vTestIniDatas ();
BOOL m_fn_bWarningUser ();
void m_fn_vShowPartialWarning (BOOL bSet, char *szPath, char *_szMessage, BOOL * bDisplay, int iID, char *szDir);
// show controls according to main panel
void m_fn_TabC_vShowControlsPanelDir () ;
void m_fn_TabC_vShowControlsPanelSel () ;
void m_fn_TabC_vShowControlsPanelRes () ;
// Show or hide the buttons in the main panel
void m_fn_TabC_vChangeShowControlsPanelDir (BOOL bChange) ;
void m_fn_TabC_vChangeShowControlsPanelSel (BOOL bChange) ;
void m_fn_TabC_vChangeShowControlsPanelRes (BOOL bChange) ;
// disable or enable buttons
void m_fn_TabC_vEnableButtons () ;
void m_fn_TabC_vDisableAllButtons ();
void m_fn_TabC_vDisableSelButtons ();
// show controls acording to config panel
void m_fn_vShowControlsPanelCustom ();
void m_fn_vShowControlsPanelCurrent ();
// show or hide the buttons in the config panel
void m_fn_vChangeShowControlsPanelCurrent (BOOL bChange);
void m_fn_vChangeShowControlsPanelCustom (BOOL bChange);
// browse functions
void m_fn_vBrowseStartingFromDirectory (char *szPath, int *iResult) ;
void m_fn_vBrowseDirectory (char* szPath, int *p_iResult, ITEMIDLIST *p_stItemRoot);
// search for directories or and files
BOOL m_fn_bExistDirectories (char *szPath);
BOOL m_fn_bGetFiles (char *szFile, HANDLE *hHandle, WIN32_FIND_DATA *stFindFileData);
// get available types and data
void m_fn_vGetAllTypes ();
void m_fn_vGetDatas (char *szType, char *szPath);
void m_fn_vGetSetDatasInList (char *szAnims, char *szBanks, char *szClasses, char *szFamilies, char *szLevels, char *szTextures);
// create lists
int m_fn_iAddTestDirType (char *szFiles);
void m_fn_vCreateLists (CList<GI_Item *,GI_Item *> *_oListObject, char *szPath, char *szType, GI_Item * _p_oItem);
void m_fn_vSetTypeInList (GI_Type ** _p_oType, char *szType, int iNumber);
void m_fn_vAddType (GI_Type * p_oType, char *szReturn, char *szType, char *szDir, int *iNumber);
void m_fn_vAddAnim (void);
void m_fn_vAddAnims (void);
void m_fn_vAddBank (void);
void m_fn_vAddBanks (void);
void m_fn_vAddClass (void);
void m_fn_vAddClasses (void);
void m_fn_vAddFamily (void);
void m_fn_vAddFamilies (void);
void m_fn_vAddLevel (void);
void m_fn_vAddLevels (void);
void m_fn_vAddTexture (void);
void m_fn_vAddTextures (void);
// return the total number of objects in all lists
int m_fn_iGetAllObjects();
// update list boxes
void m_fn_vUpdateListBox (CList<GI_Item *,GI_Item *> *_oListObject, char *szPath, char *szType);
void m_fn_vUpdateAll ();
// draw items in list boxes
void m_fn_vOnDrawItemListBoxType (LPDRAWITEMSTRUCT lpDIS);
void m_fn_vOnDrawItemListBoxObject (LPDRAWITEMSTRUCT lpDIS);
// selection
BOOL m_fn_bOnChangeActivation (GI_Item *_p_oItem, int iIndexItem);
void m_fn_vChange (GI_Item *p_oItem, GI_Type *p_oType, BOOL bSet);
// selection of the items
void m_fn_vResetSelection ();
void m_fn_vSelectAll (BOOL bSet) ;
void m_fn_vSelectAllForType (BOOL bSet);
void m_fn_vSelectAllInList (GI_Type * _p_oType, BOOL bSet) ;
// enable/disable buttons in the second panel
void m_fn_vEnableButtons (BOOL bSet) ;
void m_fn_vEnableButtonAll ();
void m_fn_vEnableButtonConvert ();
// options
void m_fn_vSetOptions ();
void m_fn_vChangeCheck (int iId, int iId1, BOOL *bChange);
void m_fn_vChangeCheckButton (int iId, BOOL *bChange);
// free allocated memory
void m_fn_vFreeMemory ();
void m_fn_vFreeMemoryForType (GI_Type **_p_oType) ;
// read from the rich edit and write in the file Win_M23D.log
int m_fn_vWriteInFile (BOOL bTest);
// use file lists
void m_fn_vReadIniFile (char *szName, GI_Type *p_oType, BOOL bTwo);
BOOL m_fn_bSearchInFile (char *szName, char *szObject) ;
void m_fn_vSetFromFileList (char *szName, char *szObject);
void m_fn_vSelectDir (char *sDir, char *szName);
//==============================================================================================================
// DlgMain4.cpp : Configuration functions
//==============================================================================================================
// directories configs
void m_fn_vInitDirCombo ();
void m_fn_vSetDefaultDirConfig ();
void m_fn_vUpdateForDirConfig ();
void m_fn_vUpdateDirectories ();
void m_fn_vRegisterAllPaths (int iNumConfig);
// selections configs
void m_fn_vInitSelectCombo ();
void m_fn_vSetDefaultSelectConfig ();
void m_fn_vUpdateForSelectConfig ();
void m_fn_vUpdateSelectLists ();
void m_fn_vUpdateSelections ();
void m_fn_vRegisterSelections (int iNumConfig);
void m_fn_vUpdateSelectListForType (char *szType, char *szObjects, int *iNbObjects);
void m_fn_vUpdateSelectionForType (char *szType, int g_iNb );
void m_fn_vRegisterSelectionForType (char *szName, char *szType);
void m_fn_vReadCurrentSelection ();
// directories configs
void m_fn_vInitOptionCombo ();
void m_fn_vSetDefaultOptionConfig ();
void m_fn_vUpdateForOptionConfig ();
void m_fn_vRegisterAllOptions (int iNumConfig);
// Implementation
protected:
//==============================================================================================================
// DlgMain.cpp : Main Dialog functions
//==============================================================================================================
// Generated virtual function overrides
//{{AFX_VIRTUAL(CDlgMain)
virtual BOOL PreTranslateMessage(MSG* pMsg);
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
//}}AFX_VIRTUAL
// Generated message map functions
//{{AFX_MSG(CDlgMain)
// main functions
afx_msg BOOL OnInitDialog();
afx_msg void OnPaint();
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnSizing(UINT nSide, LPRECT lpRect);
afx_msg void OnDestroy();
afx_msg void OnClose();
afx_msg void OnQuit();
//==============================================================================================================
// DlgMain1.cpp : Main Dialog functions
//==============================================================================================================
// help
afx_msg void OnCheckHelp();
afx_msg void OnHelp();
afx_msg BOOL OnHelpInfo(HELPINFO* pHelpInfo) ;
// change panel
afx_msg void OnSelchangePanel(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnSelchangeTab(NMHDR* pNMHDR, LRESULT* pResult);
// rename directories
afx_msg void OnKillFocusGameSpecific1();
afx_msg void OnKillFocusGameSpecific2();
afx_msg void OnKillFocusRawSpecific1();
afx_msg void OnKillFocusRawSpecific2();
// choose directories
afx_msg void OnCheckGameData();
afx_msg void OnCheckGameSpecific1();
afx_msg void OnCheckGameSpecific2();
afx_msg void OnCheckRawData();
afx_msg void OnCheckRawSpecific1();
afx_msg void OnCheckRawSpecific2();
// browse directories
afx_msg void OnButtonBrowseGameData();
afx_msg void OnButtonBrowseGameSpecific1();
afx_msg void OnButtonBrowseGameSpecific2();
afx_msg void OnButtonBrowseRawData();
afx_msg void OnButtonBrowseRawSpecific1();
afx_msg void OnButtonBrowseRawSpecific2();
// directory configuration
afx_msg void OnCreateConfigDir();
afx_msg void OnRegisterConfigDir();
afx_msg void OnSaveConfigDir();
afx_msg void OnDeleteConfigDir();
afx_msg void OnChooseConfigDir();
afx_msg void OnKillFocusEditCreateConfigDir();
afx_msg void OnKillFocusEditRegisterConfigDir();
afx_msg void OnKillFocusComboChooseConfigDir();
// browse custom directories
afx_msg void OnButtonBrowseAnims();
afx_msg void OnButtonBrowseBanks();
afx_msg void OnButtonBrowseClasses();
afx_msg void OnButtonBrowseFamilies();
afx_msg void OnButtonBrowseLevels();
afx_msg void OnButtonBrowseTextures();
// main options
afx_msg void OnRayman2();
afx_msg void OnModifLst();
afx_msg void OnEraseMdf();
// listbox functions
afx_msg void OnSelchangeListType();
afx_msg BOOL OnLButtonDownListBoxObject(MSG *pMsg);
afx_msg void OnDrawItem(int nIDCtl, LPDRAWITEMSTRUCT lpDIS);
afx_msg void OnMeasureItem(int nIDCtl, LPMEASUREITEMSTRUCT lpMeasureItemStruct) ;
// selection buttons
afx_msg void OnSelectAll();
afx_msg void OnSelectList();
afx_msg void OnClearList();
afx_msg void OnClearAll();
// select config buttons
afx_msg void OnCreateConfigSelect();
afx_msg void OnRegisterConfigSelect();
afx_msg void OnSaveConfigSelect();
afx_msg void OnChooseConfigSelect();
afx_msg void OnDeleteConfigSelect();
afx_msg void OnKillFocusEditCreateConfigSelect();
afx_msg void OnKillFocusEditRegisterConfigSelect();
afx_msg void OnKillFocusComboChooseConfigSelect();
// convert button
afx_msg void OnConvert();
// ignore options
afx_msg void OnCheckZooMax();
afx_msg void OnCheckZooEds();
afx_msg void OnCheckSctMax();
afx_msg void OnCheckSctEds();
afx_msg void OnCheckSpoMax();
afx_msg void OnCheckSpoEds();
afx_msg void OnCheckVmtMax();
afx_msg void OnCheckVmtEds();
afx_msg void OnCheckGmtMax();
afx_msg void OnCheckGmtEds();
// conversion options
afx_msg void OnCopyAnims();
afx_msg void OnCopyTextures();
afx_msg void OnGenerateRLI();
afx_msg void OnUpdateGameDSC();
// erase options
afx_msg void OnEraseDuplicated();
afx_msg void OnEraseUnused();
// family options
afx_msg void OnForceCommon();
afx_msg void OnForceSpecific();
afx_msg void OnAskFamily();
// bank option
afx_msg void OnCreateBasicFamily();
// option configuration
afx_msg void OnCreateConfigOption();
afx_msg void OnRegisterConfigOption();
afx_msg void OnSaveConfigOption();
afx_msg void OnChooseConfigOption();
afx_msg void OnDeleteConfigOption();
afx_msg void OnKillFocusEditCreateConfigOption();
afx_msg void OnKillFocusEditRegisterConfigOption();
afx_msg void OnKillFocusComboChooseConfigOption();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
#endif //__DLGMAIN_H__

View File

@@ -0,0 +1,64 @@
/*=========================================================================
*
* DLGWarning.h - Header file for warning dialog box class
*
* Version 1.0
* Revision date
*
*=======================================================================*/
#ifndef __DLGWARNING_H__
#define __DLGWARNING_H__
//--- Includes --------------------------------------------------------
#include "Resource.h"
//----------------------------------------------------------------------
typedef enum tdeWarningMode_
{
E_ForceCommon,
E_ForceSpecific
}
tdeWarningMode;
/*
=======================================================================================
CDlgWarning dialog class
=======================================================================================
*/
class CDlgWarning : public CDialog
{
//data members
private:
char m_sMes[500];
char m_sOK[256];
char m_sCancel[256];
CStatic *m_oStatic;
// Construction
public:
CDlgWarning(CWnd* pParent = NULL); // standard constructor
void m_fn_vBuildTextMessage (tdeWarningMode eMode, char *sName);
// 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 void OnApplyAll();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#endif //__DLGWARNING_H__

View File

@@ -0,0 +1,39 @@
/*=========================================================================
*
* GIItem.h - Define the GI_Item class
*
* Version 1.0
* Revision date
*
*=======================================================================*/
#ifndef __GIITEM_H__
#define __GIITEM_H__
/*
=======================================================================================
GI_Item class
=======================================================================================
*/
class GI_Item
{
// datas
public:
// boolean for telling if the object is active or inactive
BOOL m_bActived;
// name of the object
char m_szName[50];
// methods
public:
//constructor
GI_Item(BOOL bAct, char *szName);
//destructor
~GI_Item();
//return the name of the object
char* m_fn_p_oGetName(void) { return m_szName; }
};
#endif // __GIITEM_H__

View File

@@ -0,0 +1,56 @@
/*=========================================================================
*
* GIType.h - Define the GI_Type class
*
* Version 1.0
* Revision date
*
*=======================================================================*/
#ifndef __GITYPE_H__
#define __GITYPE_H__
//--- Includes --------------------------------------------------------
#include <afxtempl.h>
#include "GIItem.h"
//----------------------------------------------------------------------
/*
=======================================================================================
GI_Type class
=======================================================================================
*/
class GI_Type
{
// datas
public:
// name of the type
char m_szName[50];
// number of selected objects for the type
int m_iSelected;
// the text color of the type in list box
COLORREF m_xTextColor;
// the list of objects associated with the type
CList<GI_Item *,GI_Item *> m_oList;
// methods
public:
// contructor
GI_Type(char *szName, int _iSelected, COLORREF m_xTextColor);
// destructor
~GI_Type();
// return the name of type
char* m_fn_p_oGetName(void) { return m_szName; }
// return the number of objects selected for that type
int m_fn_iGetSelected(void) { return m_iSelected; }
// set the number of selected objects
void m_fn_iSetName(int _iSelected) { m_iSelected=_iSelected; }
};
#endif // __GITYPE_H__

View File

@@ -0,0 +1,381 @@
; CLW file contains information for the MFC ClassWizard
[General Info]
Version=1
LastClass=CGraphInterApp
LastTemplate=CDialog
NewFileInclude1=#include "stdafx.h"
NewFileInclude2=#include "graphinter.h"
LastPage=0
ClassCount=4
Class1=CAboutDlg
Class2=CDlgMain
Class3=CGraphInterApp
Class4=CMainFrame
ResourceCount=10
Resource1=IDD_ABOUTBOX
Resource2=IDD_DIALOGWARNING
Resource3=IDD_DIALOGMAIN
Resource4=IDD_ABOUTBOX (English (U.S.))
Resource5=IDD_DIALOGABOUT
Resource6=IDD_DIALOGCONFIG
Resource7=IDR_ACCELERATOR1
Resource8=IDD_DIALOGABOUT (English (U.S.))
Resource9=IDD_DIALOGWARNING (English (U.S.))
Resource10=IDD_DIALOGMAIN (English (U.S.))
[CLS:CAboutDlg]
Type=0
BaseClass=CDialog
HeaderFile=DlgAbout.h
ImplementationFile=\cpa\Appli\Max23Dos\Win_M23D\src\DlgAbout.cpp
LastObject=CAboutDlg
Filter=M
[CLS:CDlgMain]
Type=0
BaseClass=CDialog
HeaderFile=DlgMain.h
ImplementationFile=\cpa\Appli\Max23Dos\Win_M23D\src\DlgMain.cpp
Filter=D
LastObject=IDC_BROWSE_ANIMS
[CLS:CGraphInterApp]
Type=0
BaseClass=CWinApp
HeaderFile=GraphInter.h
ImplementationFile=\cpa\Appli\Max23Dos\Win_M23D\src\GraphInter.cpp
LastObject=CGraphInterApp
[CLS:CMainFrame]
Type=0
BaseClass=CFrameWnd
HeaderFile=MainFrm.h
ImplementationFile=\cpa\Appli\Max23Dos\Win_M23D\src\MainFrm.cpp
Filter=T
LastObject=CMainFrame
VirtualFilter=fWC
[DLG:IDD_ABOUTBOX]
Type=1
Class=CAboutDlg
ControlCount=4
Control1=IDC_STATIC,static,1342177294
Control2=IDC_STATIC,static,1342308480
Control3=IDC_STATIC,static,1342308352
Control4=IDOK,button,1342373889
[DLG:IDD_DIALOGMAIN]
Type=1
Class=CDlgMain
ControlCount=111
Control1=IDC_GROUP_DIRECTORIES,button,1342177287
Control2=IDC_STATIC_RAWDATA,static,1342308352
Control3=IDC_CHECK_RAWDATA,button,1342373897
Control4=IDC_EDIT_RAWDATA,edit,1350633600
Control5=IDC_BROWSE_RAWDATA,button,1342242816
Control6=IDC_CHECK_RAWSPECIFIC1,button,1342242825
Control7=IDC_EDIT_RAWSPECIFIC1,edit,1350633600
Control8=IDC_BROWSE_RAWSPECIFIC1,button,1342242816
Control9=IDC_BROWSE_RAWSP1,button,1342242816
Control10=IDC_EDIT_RAWSP1,edit,1350631552
Control11=IDC_CHECK_RAWSPECIFIC2,button,1342242825
Control12=IDC_EDIT_RAWSPECIFIC2,edit,1350633600
Control13=IDC_BROWSE_RAWSPECIFIC2,button,1342242816
Control14=IDC_BROWSE_RAWSP2,button,1342242816
Control15=IDC_EDIT_RAWSP2,edit,1350631552
Control16=IDC_STATIC_GAMEDATA,static,1342308352
Control17=IDC_CHECK_GAMEDATA,button,1342308361
Control18=IDC_EDIT_GAMEDATA,edit,1350633600
Control19=IDC_BROWSE_GAMEDATA,button,1342242816
Control20=IDC_CHECK_GAMESPECIFIC1,button,1342177289
Control21=IDC_EDIT_GAMESPECIFIC1,edit,1350633600
Control22=IDC_BROWSE_GAMESPECIFIC1,button,1342242816
Control23=IDC_BROWSE_GAMESP1,button,1342242816
Control24=IDC_EDIT_GAMESP1,edit,1350631552
Control25=IDC_CHECK_GAMESPECIFIC2,button,1342177289
Control26=IDC_EDIT_GAMESPECIFIC2,edit,1350633600
Control27=IDC_BROWSE_GAMESPECIFIC2,button,1342242816
Control28=IDC_BROWSE_GAMESP2,button,1342242816
Control29=IDC_EDIT_GAMESP2,edit,1350631552
Control30=IDC_STATIC_ANIMS,static,1342308352
Control31=IDC_EDIT_ANIMS,edit,1350633600
Control32=IDC_BROWSE_ANIMS,button,1342242816
Control33=IDC_STATIC_BANKS,static,1342308352
Control34=IDC_EDIT_BANKS,edit,1350633600
Control35=IDC_BROWSE_BANKS,button,1342242816
Control36=IDC_STATIC_CLASSES,static,1342308352
Control37=IDC_EDIT_CLASSES,edit,1350633600
Control38=IDC_BROWSE_CLASSES,button,1342242816
Control39=IDC_STATIC_FAMILIES,static,1342308352
Control40=IDC_EDIT_FAMILIES,edit,1350633600
Control41=IDC_BROWSE_FAMILIES,button,1342242816
Control42=IDC_STATIC_LEVELS,static,1342308352
Control43=IDC_EDIT_LEVELS,edit,1350633600
Control44=IDC_BROWSE_LEVELS,button,1342242816
Control45=IDC_STATIC_TEXTURES,static,1342308352
Control46=IDC_EDIT_TEXTURES,edit,1350633600
Control47=IDC_BROWSE_TEXTURES,button,1342242816
Control48=IDC_GROUP_MAINOPTIONS,button,1342177287
Control49=IDC_CHECK_RAYMAN2,button,1342242819
Control50=IDC_CHECK_MODIFLST,button,1342242819
Control51=IDC_CHECK_ERASEMOD,button,1342242819
Control52=IDC_STATIC_LISTMESSAGE,static,1342308352
Control53=IDC_LISTBOX_TYPES,listbox,1352728915
Control54=IDC_LISTBOX_OBJECTS,listbox,1352862035
Control55=IDC_GROUP_IGNORE,button,1342177287
Control56=IDC_CHECK_IGNOREZOO,button,1342242819
Control57=IDC_CHECK_IGNORESCT,button,1342242819
Control58=IDC_CHECK_IGNORESPO,button,1342242819
Control59=IDC_CHECK_IGNOREGMT,button,1342242819
Control60=IDC_CHECK_IGNOREVMT,button,1342242819
Control61=IDC_GROUP_OPTIONS,button,1342177287
Control62=IDC_CHECK_COPYANIMS,button,1342242819
Control63=IDC_CHECK_COPYTEXTURES,button,1342242819
Control64=IDC_CHECK_GENERATERLI,button,1342242819
Control65=IDC_CHECK_UPDATEGAMEDSC,button,1342242819
Control66=IDC_GROUP_ERASE,button,1342177287
Control67=IDC_CHECK_ERASEDUPLICATED,button,1342242819
Control68=IDC_CHECK_ERASEUNUSED,button,1342242819
Control69=IDC_GROUP_FAMILIES,button,1342177287
Control70=IDC_CHECK_FORCECOMMON,button,1342242819
Control71=IDC_CHECK_FORCESPECIFIC,button,1342242819
Control72=IDC_CHECK_ASKFAMILY,button,1342242819
Control73=IDC_GROUP_BANK,button,1342177287
Control74=IDC_CHECK_BASICFAMILY,button,1342242819
Control75=IDC_CONFIG,button,1342242819
Control76=IDC_GROUP_SELECTION,button,1342177287
Control77=IDC_BUTTON_SELECTALL,button,1342242816
Control78=IDC_BUTTON_CLEARALL,button,1342242816
Control79=IDC_BUTTON_SELECTLIST,button,1342242816
Control80=IDC_BUTTON_CLEARLIST,button,1342242816
Control81=IDC_GROUP_FILELIST,button,1342177543
Control82=IDC_BUTTON_CLEARFILE,button,1342242816
Control83=IDC_BUTTON_ADDFILE,button,1342242816
Control84=IDC_BUTTON_BUILDFILE,button,1342242816
Control85=IDC_BUTTON_SELECTFILELIST,button,1342242816
Control86=IDC_BUTTON_CONVERT,button,1342242816
Control87=IDC_STATIC_COMMAND,static,1342308608
Control88=IDC_STATIC_COMMANDEDIT,static,1082134537
Control89=IDC_STATIC_RESULT,static,1342308352
Control90=IDC_STATIC_RESULTEDIT,static,1082130441
Control91=IDC_STATIC_PROGRESS,msctls_progress32,1350565888
Control92=IDC_STATIC_VERSION,static,1342308352
Control93=IDC_BUTTON_HELP,button,1342242816
Control94=IDC_BUTTON_QUIT,button,1342242816
Control95=IDC_PANEL,SysTabControl32,1342177280
Control96=IDC_TAB1,SysTabControl32,1342177280
Control97=IDC_REGISTER,button,1342242816
Control98=IDC_EDIT_REGISTER,edit,1350631552
Control99=IDC_SAVE,button,1342242816
Control100=IDC_COMBO1,combobox,1344339970
Control101=IDC_RENAME,button,1342242816
Control102=IDC_EDIT_RENAME,edit,1350631552
Control103=IDC_DELETE,button,1342242816
Control104=IDC_GROUP_CONFIG,button,1342177543
Control105=IDC_REGISTER1,button,1342242816
Control106=IDC_EDIT_REGISTER1,edit,1350631552
Control107=IDC_SAVE1,button,1342242816
Control108=IDC_COMBO11,combobox,1344339970
Control109=IDC_RENAME1,button,1342242816
Control110=IDC_EDIT_RENAME1,edit,1350631552
Control111=IDC_DELETE1,button,1342242816
[DLG:IDD_ABOUTBOX (English (U.S.))]
Type=1
ControlCount=4
Control1=IDC_STATIC,static,1342177294
Control2=IDC_STATIC,static,1342308480
Control3=IDC_STATIC,static,1342308352
Control4=IDOK,button,1342373889
[DLG:IDD_DIALOGMAIN (English (U.S.))]
Type=1
ControlCount=114
Control1=IDC_STATIC_RAWDATA,static,1342308353
Control2=IDC_EDIT_RAWSP1,edit,1350631552
Control3=IDC_EDIT_RAWSP2,edit,1350631552
Control4=IDC_CHECK_RAWDATA,button,1342373897
Control5=IDC_CHECK_RAWSPECIFIC1,button,1342242825
Control6=IDC_CHECK_RAWSPECIFIC2,button,1342242825
Control7=IDC_EDIT_RAWDATA,edit,1350633600
Control8=IDC_EDIT_RAWSPECIFIC1,edit,1350633600
Control9=IDC_EDIT_RAWSPECIFIC2,edit,1350633600
Control10=IDC_BROWSE_RAWDATA,button,1342242816
Control11=IDC_BROWSE_RAWSPECIFIC1,button,1342242816
Control12=IDC_BROWSE_RAWSPECIFIC2,button,1342242816
Control13=IDC_GROUP_SOURCEDIRECTORIES,button,1342177287
Control14=IDC_BUTTON_REGISTERCONFIGDIR,button,1342242816
Control15=IDC_EDIT_REGISTERCONFIGDIR,edit,1350631552
Control16=IDC_BUTTON_SAVECONFIGDIR,button,1342242816
Control17=IDC_COMBO_CONFIGDIR,combobox,1344339970
Control18=IDC_BUTTON_DELETECONFIGDIR,button,1342242816
Control19=IDC_PANELCONFIGS,SysTabControl32,1342177280
Control20=IDC_STATIC_ANIMS,static,1342308352
Control21=IDC_STATIC_BANKS,static,1342308352
Control22=IDC_STATIC_CLASSES,static,1342308352
Control23=IDC_STATIC_FAMILIES,static,1342308352
Control24=IDC_STATIC_LEVELS,static,1342308352
Control25=IDC_STATIC_TEXTURES,static,1342308352
Control26=IDC_EDIT_ANIMS,edit,1350633600
Control27=IDC_EDIT_BANKS,edit,1350633600
Control28=IDC_EDIT_CLASSES,edit,1350633600
Control29=IDC_EDIT_FAMILIES,edit,1350633600
Control30=IDC_EDIT_LEVELS,edit,1350633600
Control31=IDC_EDIT_TEXTURES,edit,1350633600
Control32=IDC_BROWSE_ANIMS,button,1342242816
Control33=IDC_BROWSE_BANKS,button,1342242816
Control34=IDC_BROWSE_CLASSES,button,1342242816
Control35=IDC_BROWSE_FAMILIES,button,1342242816
Control36=IDC_BROWSE_LEVELS,button,1342242816
Control37=IDC_BROWSE_TEXTURES,button,1342242816
Control38=IDC_STATIC_GAMEDATA,static,1342308352
Control39=IDC_EDIT_GAMESP1,edit,1350631552
Control40=IDC_EDIT_GAMESP2,edit,1350631552
Control41=IDC_CHECK_GAMEDATA,button,1342308361
Control42=IDC_CHECK_GAMESPECIFIC1,button,1342177289
Control43=IDC_CHECK_GAMESPECIFIC2,button,1342177289
Control44=IDC_EDIT_GAMEDATA,edit,1350633600
Control45=IDC_EDIT_GAMESPECIFIC1,edit,1350633600
Control46=IDC_EDIT_GAMESPECIFIC2,edit,1350633600
Control47=IDC_BROWSE_GAMEDATA,button,1342242816
Control48=IDC_BROWSE_GAMESPECIFIC1,button,1342242816
Control49=IDC_BROWSE_GAMESPECIFIC2,button,1342242816
Control50=IDC_GROUP_DESTDIRECTORIES,button,1342177287
Control51=IDC_CHECK_RAYMAN2,button,1342242819
Control52=IDC_CHECK_MODIFLST,button,1342242819
Control53=IDC_CHECK_ERASEMOD,button,1342242819
Control54=IDC_GROUP_MAINOPTIONS,button,1342177287
Control55=IDC_LISTBOX_TYPES,listbox,1352728915
Control56=IDC_LISTBOX_OBJECTS,listbox,1352862035
Control57=IDC_BUTTON_CLEARALL,button,1342242816
Control58=IDC_BUTTON_CLEARLIST,button,1342242816
Control59=IDC_BUTTON_SELECTALL,button,1342242816
Control60=IDC_BUTTON_SELECTLIST,button,1342242816
Control61=IDC_GROUP_SELECTION,button,1342177287
Control62=IDC_BUTTON_SELECTFILELIST,button,1342243584
Control63=IDC_BUTTON_BUILDFILE,button,1342242816
Control64=IDC_BUTTON_ADDFILE,button,1342242816
Control65=IDC_BUTTON_CLEARFILE,button,1342242816
Control66=IDC_GROUP_FILELIST,button,1342177543
Control67=IDC_BUTTON_CONVERT,button,1342242816
Control68=IDC_STATIC_ZOO,static,1342308352
Control69=IDC_CHECK_ZOO_MAX,button,1342308361
Control70=IDC_CHECK_ZOO_EDS,button,1342177289
Control71=IDC_STATIC_SCT,static,1342308352
Control72=IDC_CHECK_SCT_MAX,button,1342308361
Control73=IDC_CHECK_SCT_EDS,button,1342177289
Control74=IDC_STATIC_SPO,static,1342308352
Control75=IDC_CHECK_SPO_MAX,button,1342308361
Control76=IDC_CHECK_SPO_EDS,button,1342177289
Control77=IDC_STATIC_GMT,static,1342308352
Control78=IDC_CHECK_GMT_MAX,button,1342308361
Control79=IDC_CHECK_GMT_EDS,button,1342177289
Control80=IDC_STATIC_VMT,static,1342308352
Control81=IDC_CHECK_VMT_MAX,button,1342308361
Control82=IDC_CHECK_VMT_EDS,button,1342177289
Control83=IDC_GROUP_CONFLICT,button,1342177287
Control84=IDC_CHECK_COPYANIMS,button,1342242819
Control85=IDC_CHECK_COPYTEXTURES,button,1342242819
Control86=IDC_CHECK_GENERATERLI,button,1342242819
Control87=IDC_CHECK_UPDATEGAMEDSC,button,1342242819
Control88=IDC_GROUP_OPTIONS,button,1342177287
Control89=IDC_CHECK_ERASEDUPLICATED,button,1342259203
Control90=IDC_CHECK_ERASEUNUSED,button,1342242819
Control91=IDC_GROUP_ERASE,button,1342177287
Control92=IDC_CHECK_FORCECOMMON,button,1342242819
Control93=IDC_CHECK_FORCESPECIFIC,button,1342242819
Control94=IDC_CHECK_ASKFAMILY,button,1342242819
Control95=IDC_GROUP_FAMILIES,button,1342177287
Control96=IDC_CHECK_BASICFAMILY,button,1342242819
Control97=IDC_GROUP_BANK,button,1342177287
Control98=IDC_CHECK_USECONFIG,button,1342242819
Control99=IDC_BUTTON_REGISTERCONFIGOPTION,button,1342242816
Control100=IDC_EDIT_REGISTERCONFIGOPTION,edit,1350631552
Control101=IDC_BUTTON_SAVECONFIGOPTION,button,1342242816
Control102=IDC_COMBO_CONFIGOPTION,combobox,1344339970
Control103=IDC_BUTTON_DELETECONFIGOPTION,button,1342242816
Control104=IDC_GROUP_CONFIG,button,1342177543
Control105=IDC_STATIC_LISTMESSAGE,static,1342308352
Control106=IDC_STATIC_COMMAND,static,1342308608
Control107=IDC_STATIC_COMMANDEDIT,static,1082134537
Control108=IDC_STATIC_RESULT,static,1342308352
Control109=IDC_STATIC_RESULTEDIT,static,1082130441
Control110=IDC_STATIC_PROGRESS,msctls_progress32,1350565888
Control111=IDC_MAINPANEL,SysTabControl32,1342177280
Control112=IDC_STATIC_VERSION,static,1342308352
Control113=IDC_BUTTON_HELP,button,1342242816
Control114=IDC_BUTTON_QUIT,button,1342242816
[DLG:IDD_DIALOGABOUT]
Type=1
ControlCount=4
Control1=IDC_ABOUT_STATICICON,static,1342177294
Control2=IDC_ABOUT_STATICVERSION,static,1342308480
Control3=IDC_ABOUT_STATICCOPYRIGHT,static,1342308352
Control4=IDOK,button,1342373889
[DLG:IDD_DIALOGWARNING]
Type=1
ControlCount=4
Control1=IDOK,button,1342242817
Control2=IDCANCEL,button,1342242816
Control3=IDC_WARNING_STATICMESSAGE,static,1342308352
Control4=IDC_WARNING_CHECKAPPLYALL,button,1342242819
[DLG:IDD_DIALOGCONFIG]
Type=1
ControlCount=29
Control1=IDC_GROUP_CONFIG,button,1342177543
Control2=IDC_REGISTER1,button,1342242816
Control3=IDC_EDIT_REGISTER1,edit,1350631552
Control4=IDC_SAVE1,button,1342242816
Control5=IDC_COMBO11,combobox,1344339970
Control6=IDC_RENAME1,button,1342242816
Control7=IDC_EDIT_RENAME1,edit,1350631552
Control8=IDC_DELETE1,button,1342242816
Control9=IDC_GROUP_IGNORE1,button,1342177287
Control10=IDC_CHECK_IGNOREZOO1,button,1342242819
Control11=IDC_CHECK_IGNORESCT1,button,1342242819
Control12=IDC_CHECK_IGNORESPO1,button,1342242819
Control13=IDC_CHECK_IGNOREGMT1,button,1342242819
Control14=IDC_CHECK_IGNOREVMT1,button,1342242819
Control15=IDC_GROUP_OPTIONS1,button,1342177287
Control16=IDC_CHECK_COPYANIMS1,button,1342242819
Control17=IDC_CHECK_COPYTEXTURES1,button,1342242819
Control18=IDC_CHECK_GENERATERLI1,button,1342242819
Control19=IDC_CHECK_UPDATEGAMEDSC1,button,1342242819
Control20=IDC_GROUP_ERASE1,button,1342177287
Control21=IDC_CHECK_ERASEDUPLICATED1,button,1342242819
Control22=IDC_CHECK_ERASEUNUSED1,button,1342242819
Control23=IDC_GROUP_FAMILIES1,button,1342177287
Control24=IDC_CHECK_FORCECOMMON1,button,1342242819
Control25=IDC_CHECK_FORCESPECIFIC1,button,1342242819
Control26=IDC_CHECK_ASKFAMILY1,button,1342242819
Control27=IDC_GROUP_BANK1,button,1342177287
Control28=IDC_CHECK_BASICFAMILY1,button,1342242819
Control29=IDC_BUTTON_QUIT1,button,1342242816
[DLG:IDD_DIALOGABOUT (English (U.S.))]
Type=1
ControlCount=4
Control1=IDC_ABOUT_STATICICON,static,1342177294
Control2=IDC_ABOUT_STATICVERSION,static,1342308480
Control3=IDC_ABOUT_STATICCOPYRIGHT,static,1342308352
Control4=IDOK,button,1342373889
[DLG:IDD_DIALOGWARNING (English (U.S.))]
Type=1
ControlCount=4
Control1=IDOK,button,1342242817
Control2=IDCANCEL,button,1342242816
Control3=IDC_WARNING_STATICMESSAGE,static,1342308352
Control4=IDC_WARNING_CHECKAPPLYALL,button,1342242819
[ACL:IDR_ACCELERATOR1]
Type=1
Command1=ID_CONTEXT_HELP
CommandCount=1

View File

@@ -0,0 +1,50 @@
/*=========================================================================
*
* GraphInter.h - main header file for the graphic interface
*
* Version 1.0
* Revision date
*
*=======================================================================*/
#ifndef __GRAPHINTER_H__
#define __GRAPHINTER_H__
//--- Includes --------------------------------------------------------
#include "Resource.h"
//----------------------------------------------------------------------
/*
=======================================================================================
CGraphInterApp class
=======================================================================================
*/
class CGraphInterApp : public CWinApp
{
public:
CGraphInterApp();
void fn_vChangeContextHelpFile (char *szNewName);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CGraphInterApp)
public:
virtual BOOL InitInstance();
//}}AFX_VIRTUAL
// Implementation
//{{AFX_MSG(CGraphInterApp)
// 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()
};
#endif //__GRAPHINTER_H__

View File

@@ -0,0 +1,446 @@
//Microsoft Developer Studio generated resource script.
//
#include "resource.h"
// Generated Help ID header file
#define APSTUDIO_HIDDEN_SYMBOLS
#include "resource.hm"
#undef APSTUDIO_HIDDEN_SYMBOLS
#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
"#define _AFX_NO_SPLITTER_RESOURCES\r\n"
"#define _AFX_NO_OLE_RESOURCES\r\n"
"#define _AFX_NO_TRACKER_RESOURCES\r\n"
"#define _AFX_NO_PROPERTY_RESOURCES\r\n"
"\r\n"
"#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)\r\n"
"#ifdef _WIN32\r\n"
"LANGUAGE 9, 1\r\n"
"#pragma code_page(1252)\r\n"
"#endif\r\n"
"#include ""afxres.rc"" // Standard components\r\n"
"#include ""afxprint.rc"" // printing/print preview resources\r\n"
"#endif\0"
END
#endif // APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Bitmap
//
IDB_BITMAP_CROSS BITMAP DISCARDABLE "..\\res\\croix.bmp"
/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//
IDD_DIALOGABOUT DIALOG DISCARDABLE 0, 0, 217, 55
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "About Win_M23D"
FONT 8, "MS Sans Serif"
BEGIN
CONTROL "",IDC_ABOUT_STATICICON,"Static",SS_BITMAP,11,17,20,20
LTEXT "Win_M23D Version 7.0.0",IDC_ABOUT_STATICVERSION,40,10,
119,8,SS_NOPREFIX
LTEXT "Copyright (C) Ubi Soft - 1998",
IDC_ABOUT_STATICCOPYRIGHT,40,25,119,8
DEFPUSHBUTTON "OK",IDOK,178,7,32,14,WS_GROUP
END
IDD_DIALOGMAIN DIALOGEX 0, 0, 750, 558
STYLE WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME
CAPTION "Max23Dos Converting Tool"
FONT 8, "MS Sans Serif"
BEGIN
CTEXT "RawData",IDC_STATIC_RAWDATA,35,77,40,11,0,0,
HIDC_STATIC_RAWDATA
EDITTEXT IDC_EDIT_RAWSP1,30,94,47,14,ES_AUTOHSCROLL,0,
HIDC_EDIT_RAWSP1
EDITTEXT IDC_EDIT_RAWSP2,30,113,47,14,ES_AUTOHSCROLL,0,
HIDC_EDIT_RAWSP2
CONTROL "",IDC_CHECK_RAWDATA,"Button",BS_AUTORADIOBUTTON |
WS_GROUP | WS_TABSTOP,82,74,15,15,0,HIDC_CHECK_RAWDATA
CONTROL "",IDC_CHECK_RAWSPECIFIC1,"Button",BS_AUTORADIOBUTTON |
WS_TABSTOP,82,93,15,15,0,HIDC_CHECK_RAWSPECIFIC1
CONTROL "",IDC_CHECK_RAWSPECIFIC2,"Button",BS_AUTORADIOBUTTON |
WS_TABSTOP,82,112,15,15,0,HIDC_CHECK_RAWSPECIFIC2
EDITTEXT IDC_EDIT_RAWDATA,101,74,100,13,ES_AUTOHSCROLL |
ES_READONLY,0,HIDC_EDIT_RAWDATA
EDITTEXT IDC_EDIT_RAWSPECIFIC1,101,93,100,13,ES_AUTOHSCROLL |
ES_READONLY,0,HIDC_EDIT_RAWSPECIFIC1
EDITTEXT IDC_EDIT_RAWSPECIFIC2,101,113,100,13,ES_AUTOHSCROLL |
ES_READONLY,0,HIDC_EDIT_RAWSPECIFIC2
PUSHBUTTON "...",IDC_BROWSE_RAWDATA,226,74,17,13,0,0,
HIDC_BROWSE_RAWDATA
PUSHBUTTON "...",IDC_BROWSE_RAWSPECIFIC1,226,94,17,13,0,0,
HIDC_BROWSE_RAWSPECIFIC1
PUSHBUTTON "...",IDC_BROWSE_RAWSPECIFIC2,226,113,17,13,0,0,
HIDC_BROWSE_RAWSPECIFIC2
GROUPBOX "Source directories",IDC_GROUP_SOURCEDIRECTORIES,19,28,
254,143,0,0,HIDC_GROUP_SOURCEDIRECTORIES
PUSHBUTTON "Save As ...",IDC_BUTTON_REGISTERCONFIGDIR,383,64,65,14,
0,0,HIDC_BUTTON_REGISTERCONFIGDIR
EDITTEXT IDC_EDIT_REGISTERCONFIGDIR,339,64,75,14,ES_AUTOHSCROLL,0,
HIDC_EDIT_REGISTERCONFIGDIR
COMBOBOX IDC_COMBO_CONFIGDIR,383,82,65,100,CBS_DROPDOWN |
WS_VSCROLL | WS_TABSTOP,0,HIDC_COMBO_CONFIGDIR
PUSHBUTTON "Create new",IDC_BUTTON_CREATECONFIGDIR,383,98,65,14,0,0,
HIDC_BUTTON_CREATECONFIGDIR
EDITTEXT IDC_EDIT_CREATECONFIGDIR,339,98,75,14,ES_AUTOHSCROLL,0,
HIDC_EDIT_CREATECONFIGDIR
PUSHBUTTON "Save ",IDC_BUTTON_SAVECONFIGDIR,383,116,65,14,0,0,
HIDC_BUTTON_SAVECONFIGDIR
PUSHBUTTON "Delete ",IDC_BUTTON_DELETECONFIGDIR,383,134,65,14,0,0,
HIDC_BUTTON_DELETECONFIGDIR
CONTROL "Tab2",IDC_PANELCONFIGS,"SysTabControl32",0x0,339,26,159,
17
LTEXT " Anims",IDC_STATIC_ANIMS,469,64,36,13,0,0,
HIDC_STATIC_ANIMS
LTEXT " Banks",IDC_STATIC_BANKS,469,79,36,13,0,0,
HIDC_STATIC_BANKS
LTEXT " Classes",IDC_STATIC_CLASSES,469,94,36,13,0,0,
HIDC_STATIC_CLASSES
LTEXT " Families",IDC_STATIC_FAMILIES,469,109,36,13,0,0,
HIDC_STATIC_FAMILIES
LTEXT " Levels",IDC_STATIC_LEVELS,469,124,36,13,0,0,
HIDC_STATIC_LEVELS
LTEXT " Textures",IDC_STATIC_TEXTURES,469,139,36,13,0,0,
HIDC_STATIC_TEXTURES
EDITTEXT IDC_EDIT_ANIMS,511,62,165,13,ES_AUTOHSCROLL |
ES_READONLY,0,HIDC_EDIT_ANIMS
EDITTEXT IDC_EDIT_BANKS,511,77,165,13,ES_AUTOHSCROLL |
ES_READONLY,0,HIDC_EDIT_BANKS
EDITTEXT IDC_EDIT_CLASSES,511,92,165,13,ES_AUTOHSCROLL |
ES_READONLY,0,HIDC_EDIT_CLASSES
EDITTEXT IDC_EDIT_FAMILIES,511,107,165,13,ES_AUTOHSCROLL |
ES_READONLY,0,HIDC_EDIT_FAMILIES
EDITTEXT IDC_EDIT_LEVELS,511,122,165,13,ES_AUTOHSCROLL |
ES_READONLY,0,HIDC_EDIT_LEVELS
EDITTEXT IDC_EDIT_TEXTURES,511,137,165,13,ES_AUTOHSCROLL |
ES_READONLY,0,HIDC_EDIT_TEXTURES
PUSHBUTTON "...",IDC_BROWSE_ANIMS,679,62,17,13,0,0,
HIDC_BROWSE_ANIMS
PUSHBUTTON "...",IDC_BROWSE_BANKS,679,77,17,13,0,0,
HIDC_BROWSE_BANKS
PUSHBUTTON "...",IDC_BROWSE_CLASSES,679,92,17,13,0,0,
HIDC_BROWSE_CLASSES
PUSHBUTTON "...",IDC_BROWSE_FAMILIES,679,107,17,13,0,0,
HIDC_BROWSE_FAMILIES
PUSHBUTTON "...",IDC_BROWSE_LEVELS,679,122,17,13,0,0,
HIDC_BROWSE_LEVELS
PUSHBUTTON "...",IDC_BROWSE_TEXTURES,679,137,17,13,0,0,
HIDC_BROWSE_TEXTURES
LTEXT "GameData",IDC_STATIC_GAMEDATA,34,207,38,12,0,0,
HIDC_STATIC_GAMEDATA
EDITTEXT IDC_EDIT_GAMESP1,29,226,49,14,ES_AUTOHSCROLL,0,
HIDC_EDIT_GAMESP1
EDITTEXT IDC_EDIT_GAMESP2,27,248,49,12,ES_AUTOHSCROLL,0,
HIDC_EDIT_GAMESP2
CONTROL "",IDC_CHECK_GAMEDATA,"Button",BS_AUTORADIOBUTTON |
WS_GROUP,81,204,15,15,0,HIDC_CHECK_GAMEDATA
CONTROL "",IDC_CHECK_GAMESPECIFIC1,"Button",BS_AUTORADIOBUTTON,
81,225,15,15,0,HIDC_CHECK_GAMESPECIFIC1
CONTROL "",IDC_CHECK_GAMESPECIFIC2,"Button",BS_AUTORADIOBUTTON,
81,246,15,15,0,HIDC_CHECK_GAMESPECIFIC2
EDITTEXT IDC_EDIT_GAMEDATA,97,204,100,13,ES_AUTOHSCROLL |
ES_READONLY,0,HIDC_EDIT_GAMEDATA
EDITTEXT IDC_EDIT_GAMESPECIFIC1,97,225,100,13,ES_AUTOHSCROLL |
ES_READONLY,0,HIDC_EDIT_GAMESPECIFIC1
EDITTEXT IDC_EDIT_GAMESPECIFIC2,97,246,100,13,ES_AUTOHSCROLL |
ES_READONLY,0,HIDC_EDIT_GAMESPECIFIC2
PUSHBUTTON "...",IDC_BROWSE_GAMEDATA,231,204,17,13,0,0,
HIDC_BROWSE_GAMEDATA
PUSHBUTTON "...",IDC_BROWSE_GAMESPECIFIC1,232,225,17,13,0,0,
HIDC_BROWSE_GAMESPECIFIC1
PUSHBUTTON "...",IDC_BROWSE_GAMESPECIFIC2,232,246,17,13,0,0,
HIDC_BROWSE_GAMESPECIFIC2
GROUPBOX "Destination directories",IDC_GROUP_DESTDIRECTORIES,19,
185,254,87,0,0,HIDC_GROUP_DESTDIRECTORIES
CONTROL "Rayman2",IDC_CHECK_RAYMAN2,"Button",BS_AUTOCHECKBOX |
WS_TABSTOP,43,298,110,15,0,HIDC_CHECK_RAYMAN2
CONTROL "Update ModifLst.txt",IDC_CHECK_MODIFLST,"Button",
BS_AUTOCHECKBOX | WS_TABSTOP,43,314,110,15,0,
HIDC_CHECK_MODIFLST
CONTROL "Erase MDF files",IDC_CHECK_ERASEMOD,"Button",
BS_AUTOCHECKBOX | WS_TABSTOP,43,330,110,15,0,
HIDC_CHECK_ERASEMOD
GROUPBOX "General Options",IDC_GROUP_MAINOPTIONS,19,284,251,68,0,
0,HIDC_GROUP_MAINOPTIONS
LISTBOX IDC_LISTBOX_TYPES,401,210,77,62,LBS_SORT |
LBS_OWNERDRAWFIXED | LBS_HASSTRINGS |
LBS_NOINTEGRALHEIGHT | WS_VSCROLL | WS_TABSTOP,0,
HIDC_LISTBOX_TYPES
LISTBOX IDC_LISTBOX_OBJECTS,485,210,94,286,LBS_SORT |
LBS_OWNERDRAWFIXED | LBS_HASSTRINGS |
LBS_NOINTEGRALHEIGHT | LBS_EXTENDEDSEL | WS_VSCROLL |
WS_GROUP | WS_TABSTOP,0,HIDC_LISTBOX_OBJECTS
PUSHBUTTON "Save As ...",IDC_BUTTON_REGISTERCONFIGSELECT,403,291,60,
14,0,0,HIDC_BUTTON_REGISTERCONFIGSELECT
EDITTEXT IDC_EDIT_REGISTERCONFIGSELECT,370,291,65,14,
ES_AUTOHSCROLL,0,HIDC_EDIT_REGISTERCONFIGSELECT
COMBOBOX IDC_COMBO_CONFIGSELECT,403,309,60,100,CBS_DROPDOWN |
WS_VSCROLL | WS_TABSTOP,0,HIDC_COMBO_CONFIGSELECT
PUSHBUTTON "Create New",IDC_BUTTON_CREATECONFIGSELECT,403,325,60,14,
0,0,HIDC_BUTTON_CREATECONFIGSELECT
EDITTEXT IDC_EDIT_CREATECONFIGSELECT,370,325,65,14,ES_AUTOHSCROLL,
0,HIDC_EDIT_CREATECONFIGSELECT
PUSHBUTTON "Save",IDC_BUTTON_SAVECONFIGSELECT,403,343,60,14,0,0,
HIDC_BUTTON_SAVECONFIGSELECT
PUSHBUTTON "Delete",IDC_BUTTON_DELETECONFIGSELECT,403,361,60,14,0,0,
HIDC_BUTTON_DELETECONFIGSELECT
GROUPBOX "Selection Configs",IDC_GROUP_SELECTIONCONFIG,397,279,73,
105,BS_LEFT,0,HIDC_GROUP_SELECTIONCONFIG
PUSHBUTTON "Select All",IDC_BUTTON_SELECTALL,405,399,50,12,0,0,
HIDC_BUTTON_SELECTALL
PUSHBUTTON "Select List",IDC_BUTTON_SELECTLIST,405,415,50,12,0,0,
HIDC_BUTTON_SELECTLIST
PUSHBUTTON "Clear All",IDC_BUTTON_CLEARALL,405,436,50,12,0,0,
HIDC_BUTTON_CLEARALL
PUSHBUTTON "Clear List",IDC_BUTTON_CLEARLIST,406,451,50,12,0,0,
HIDC_BUTTON_CLEARLIST
GROUPBOX "Selection",IDC_GROUP_SELECTION,397,389,73,82,0,0,
HIDC_GROUP_SELECTION
PUSHBUTTON "Convert",IDC_BUTTON_CONVERT,406,475,55,15,0,0,
HIDC_BUTTON_CONVERT
PUSHBUTTON "Create New",IDC_BUTTON_CREATECONFIGOPTION,588,199,60,14,
0,0,HIDC_BUTTON_CREATECONFIGOPTION
EDITTEXT IDC_EDIT_CREATECONFIGOPTION,588,205,60,14,ES_AUTOHSCROLL,
0,HIDC_EDIT_CREATECONFIGOPTION
PUSHBUTTON "Save",IDC_BUTTON_SAVECONFIGOPTION,653,199,35,14,0,0,
HIDC_BUTTON_SAVECONFIGOPTION
PUSHBUTTON "Delete",IDC_BUTTON_DELETECONFIGOPTION,696,198,35,14,0,0,
HIDC_BUTTON_DELETECONFIGOPTION
PUSHBUTTON "Save As ...",IDC_BUTTON_REGISTERCONFIGOPTION,605,180,60,
14,0,0,HIDC_BUTTON_REGISTERCONFIGOPTION
EDITTEXT IDC_EDIT_REGISTERCONFIGOPTION,595,180,60,14,
ES_AUTOHSCROLL,0,HIDC_EDIT_REGISTERCONFIGOPTION
COMBOBOX IDC_COMBO_CONFIGOPTION,669,180,65,100,CBS_DROPDOWN |
WS_VSCROLL | WS_TABSTOP,0,HIDC_COMBO_CONFIGOPTION
GROUPBOX "Options Configs",IDC_GROUP_OPTIONCONFIG,585,169,153,50,
BS_LEFT,0,HIDC_GROUP_OPTIONCONFIG
LTEXT "Zones / Collisions",IDC_STATIC_ZOO,593,239,57,8,0,0,
HIDC_STATIC_ZOO
CONTROL "",IDC_CHECK_ZOO_MAX,"Button",BS_AUTORADIOBUTTON |
WS_GROUP,693,239,16,8,0,HIDC_CHECK_ZOO_MAX
CONTROL "",IDC_CHECK_ZOO_EDS,"Button",BS_AUTORADIOBUTTON,713,239,
11,8,0,HIDC_CHECK_ZOO_EDS
LTEXT "Sector Parameters",IDC_STATIC_SCT,593,252,59,8,0,0,
HIDC_STATIC_SCT
CONTROL "",IDC_CHECK_SCT_MAX,"Button",BS_AUTORADIOBUTTON |
WS_GROUP,693,252,16,8,0,HIDC_CHECK_SCT_MAX
CONTROL "",IDC_CHECK_SCT_EDS,"Button",BS_AUTORADIOBUTTON,713,252,
11,8,0,HIDC_CHECK_SCT_EDS
LTEXT "Super Objects Flags",IDC_STATIC_SPO,593,266,64,8,0,0,
HIDC_STATIC_SPO
CONTROL "",IDC_CHECK_SPO_MAX,"Button",BS_AUTORADIOBUTTON |
WS_GROUP,693,266,16,8,0,HIDC_CHECK_SPO_MAX
CONTROL "",IDC_CHECK_SPO_EDS,"Button",BS_AUTORADIOBUTTON,713,266,
12,8,0,HIDC_CHECK_SPO_EDS
LTEXT "Material Interactive Properties",IDC_STATIC_GMT,593,279,
94,8,0,0,HIDC_STATIC_GMT
CONTROL "",IDC_CHECK_GMT_MAX,"Button",BS_AUTORADIOBUTTON |
WS_GROUP,693,279,16,8,0,HIDC_CHECK_GMT_MAX
CONTROL "",IDC_CHECK_GMT_EDS,"Button",BS_AUTORADIOBUTTON,713,279,
11,8,0,HIDC_CHECK_GMT_EDS
LTEXT "Material Visual Properties",IDC_STATIC_VMT,593,292,80,8,
0,0,HIDC_STATIC_VMT
CONTROL "",IDC_CHECK_VMT_MAX,"Button",BS_AUTORADIOBUTTON |
WS_GROUP,693,292,16,8,0,HIDC_CHECK_VMT_MAX
CONTROL "",IDC_CHECK_VMT_EDS,"Button",BS_AUTORADIOBUTTON,713,292,
11,8,0,HIDC_CHECK_VMT_EDS
GROUPBOX "Conflict information : 3DSmax Editors ",
IDC_GROUP_CONFLICT,586,226,150,81,0,0,
HIDC_GROUP_CONFLICT
CONTROL "Copy Anims",IDC_CHECK_COPYANIMS,"Button",
BS_AUTOCHECKBOX | WS_TABSTOP,591,322,80,15,0,
HIDC_CHECK_COPYANIMS
CONTROL "Copy Textures",IDC_CHECK_COPYTEXTURES,"Button",
BS_AUTOCHECKBOX | WS_TABSTOP,591,335,80,15,0,
HIDC_CHECK_COPYTEXTURES
CONTROL "Generate Blend RLI",IDC_CHECK_GENERATERLI,"Button",
BS_AUTOCHECKBOX | WS_TABSTOP,591,348,80,15,0,
HIDC_CHECK_GENERATERLI
CONTROL "Update Game.DSC",IDC_CHECK_UPDATEGAMEDSC,"Button",
BS_AUTOCHECKBOX | WS_TABSTOP,591,359,80,15,0,
HIDC_CHECK_UPDATEGAMEDSC
CONTROL "Create basic family",IDC_CHECK_BASICFAMILY,"Button",
BS_AUTOCHECKBOX | WS_TABSTOP,591,372,83,15,0,
HIDC_CHECK_BASICFAMILY
GROUPBOX "Options",IDC_GROUP_OPTIONS,586,314,150,74,0,0,
HIDC_GROUP_OPTIONS
CONTROL "Invalid Faces",IDC_CHECK_ERASEDUPLICATED,"Button",
BS_AUTOCHECKBOX | BS_NOTIFY | WS_TABSTOP,591,407,101,14,
0,HIDC_CHECK_ERASEDUPLICATED
CONTROL "Unused Points",IDC_CHECK_ERASEUNUSED,"Button",
BS_AUTOCHECKBOX | WS_TABSTOP,591,418,99,14,0,
HIDC_CHECK_ERASEUNUSED
GROUPBOX "Erase automatically",IDC_GROUP_ERASE,586,399,150,38,0,0,
HIDC_GROUP_ERASE
CONTROL "Force Common",IDC_CHECK_FORCECOMMON,"Button",
BS_AUTOCHECKBOX | WS_TABSTOP,592,452,101,15,0,
HIDC_CHECK_FORCECOMMON
CONTROL "Force Specific",IDC_CHECK_FORCESPECIFIC,"Button",
BS_AUTOCHECKBOX | WS_TABSTOP,592,463,101,15,0,
HIDC_CHECK_FORCESPECIFIC
CONTROL "Ask for each family",IDC_CHECK_ASKFAMILY,"Button",
BS_AUTOCHECKBOX | WS_TABSTOP,592,474,101,15,0,
HIDC_CHECK_ASKFAMILY
GROUPBOX "Options for families",IDC_GROUP_FAMILIES,587,444,150,51,
0,0,HIDC_GROUP_FAMILIES
LTEXT "There are no datas to convert! \n\n Please select another source directory, \n or another source configuration...",
IDC_STATIC_LISTMESSAGE,398,173,177,31,0,0,
HIDC_STATIC_LISTMESSAGE
LTEXT "Commands",IDC_STATIC_COMMAND,7,359,63,11,SS_NOTIFY,0,
HIDC_STATIC_COMMAND
CONTROL "",IDC_STATIC_COMMANDEDIT,"Static",SS_WHITEFRAME |
SS_SUNKEN | NOT WS_VISIBLE | WS_BORDER,7,372,219,47,0,
HIDC_STATIC_COMMANDEDIT
LTEXT "Result",IDC_STATIC_RESULT,7,434,63,11,0,0,
HIDC_STATIC_RESULT
CONTROL "",IDC_STATIC_RESULTEDIT,"Static",SS_WHITEFRAME | NOT
WS_VISIBLE | WS_BORDER,7,448,269,89,0,
HIDC_STATIC_RESULTEDIT
CONTROL "",IDC_STATIC_PROGRESS,"msctls_progress32",WS_BORDER,7,
542,87,15,0,HIDC_STATIC_PROGRESS
CONTROL "Tab1",IDC_MAINPANEL,"SysTabControl32",0x0,7,7,148,16
LTEXT "Win_M23D Version",IDC_STATIC_VERSION,460,518,100,14,0,0,
HIDC_STATIC_VERSION
PUSHBUTTON "Help",IDC_BUTTON_HELP,566,518,50,14,0,0,
HIDC_BUTTON_HELP
PUSHBUTTON "Quit",IDC_BUTTON_QUIT,624,518,50,14,0,0,
HIDC_BUTTON_QUIT
END
IDD_DIALOGWARNING DIALOG DISCARDABLE 0, 0, 186, 95
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Family Conversion : Specific / Common"
FONT 8, "MS Sans Serif"
BEGIN
DEFPUSHBUTTON "OK",IDOK,7,74,80,14
PUSHBUTTON "Cancel",IDCANCEL,99,74,80,14
LTEXT "",IDC_WARNING_STATICMESSAGE,7,7,172,44
CONTROL "Apply to all families",IDC_WARNING_CHECKAPPLYALL,"Button",
BS_AUTOCHECKBOX | WS_TABSTOP,64,57,75,10
END
/////////////////////////////////////////////////////////////////////////////
//
// DESIGNINFO
//
#ifdef APSTUDIO_INVOKED
GUIDELINES DESIGNINFO DISCARDABLE
BEGIN
IDD_DIALOGABOUT, DIALOG
BEGIN
LEFTMARGIN, 7
RIGHTMARGIN, 210
TOPMARGIN, 7
BOTTOMMARGIN, 48
END
IDD_DIALOGMAIN, DIALOG
BEGIN
LEFTMARGIN, 7
TOPMARGIN, 7
END
IDD_DIALOGWARNING, DIALOG
BEGIN
LEFTMARGIN, 7
RIGHTMARGIN, 179
TOPMARGIN, 7
BOTTOMMARGIN, 88
END
END
#endif // APSTUDIO_INVOKED
#endif // English (U.S.) resources
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
// 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
/////////////////////////////////////////////////////////////////////////////
//
// Icon
//
// Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems.
IDI_MAINICON ICON DISCARDABLE "..\\res\\mainicon.ico"
#endif // French (France) resources
/////////////////////////////////////////////////////////////////////////////
#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//
#define _AFX_NO_SPLITTER_RESOURCES
#define _AFX_NO_OLE_RESOURCES
#define _AFX_NO_TRACKER_RESOURCES
#define _AFX_NO_PROPERTY_RESOURCES
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
#ifdef _WIN32
LANGUAGE 9, 1
#pragma code_page(1252)
#endif
#include "afxres.rc" // Standard components
#include "afxprint.rc" // printing/print preview resources
#endif
/////////////////////////////////////////////////////////////////////////////
#endif // not APSTUDIO_INVOKED

View File

@@ -0,0 +1,31 @@
/*=========================================================================
*
* Help.h - link the HLP file with the application
*
* Version 1.0
* Revision date
*
*=======================================================================*/
#ifndef __HELP_H__
#define __HELP_H__
//--- Defines --------------------------------------------------------
// Help file name
#define C_szCxtHelpFile "M23D_Cxt.hlp"
#define C_szMainHelpFile "M23D.hlp"
// topic IDs for main panels
#define ID_USAGE_PATHS 320
#define ID_USAGE_SELECTION 350
#define ID_USAGE_CONVERSION 370
// define IDs for config panels
#define HID_MAINPANEL 0x80660418
#define HID_PANELCONFIGS 0x80660419
#define HID_RICHEDIT_RESULT 0x80660836
#define HID_RICHEDIT_COMMAND 0x8066083b
#endif __HELP_H__

View File

@@ -0,0 +1,202 @@
/*=========================================================================
*
* IniData.h - general functions for saving, loading
*
* Version 1.0
* Revision date
*
*=======================================================================*/
#ifndef __INIDATA_H__
#define __INIDATA_H__
//--- Defines --------------------------------------------------------
// constants for main window min size
#define C_iMainWindowWidth 615
#define C_iMainWindowHeight 665
// File .ini
#define C_szIniFile "GIData.ini"
#define C_szIniConfDirFile "ConfDirs.ini"
#define C_szIniConfSelectFile "ConfSelects.ini"
#define C_szIniConfOptionFile "ConfOptions.ini"
//--- Structures --------------------------------------------------------
typedef struct tdstInitialValue_
{
char szTempGameData[MAX_PATH]; // temporary path for the game data path
char szTempRawData[MAX_PATH]; // temporary path for the rawdata path
char szTempTextures[MAX_PATH]; // temporary path for the textures sub-directory
char szTempDefault[MAX_PATH]; // temporary path for the default sub-directory
char szTempVersion[MAX_PATH]; // temporary path for the version
char szTempModifLst[MAX_PATH]; // temporary path for the ModifLst
char szTempGameSpecific1[MAX_PATH]; // temporary path for the game Specific1 path
char szTempGameSpecific2[MAX_PATH]; // temporary path for the game Specific2 path
char szTempRawSpecific1[MAX_PATH]; // temporary path for the raw Specific1 path
char szTempRawSpecific2[MAX_PATH]; // temporary path for the raw Specific2 path
char szTempFamily[MAX_PATH]; // temporary path for the family directory
char szTempRawSp1[MAX_PATH]; // temporary path for the Raw Sp1 name
char szTempRawSp2[MAX_PATH]; // temporary path for the Raw Sp2 name
char szTempGameSp1[MAX_PATH]; // temporary path for the Game Sp1 name
char szTempGameSp2[MAX_PATH]; // temporary path for the Game Sp2 name
char szTempConfDirs[MAX_PATH]; // temporary path for the config directories
char szTempConfSelects[MAX_PATH]; // temporary path for the config selections
char szTempConfOptions[MAX_PATH]; // temporary path for the config options
char szGameData[MAX_PATH]; // name of game data path
char szRawData[MAX_PATH]; // name of raw data path
char szTextures[MAX_PATH]; // name of textures path
char szDefault[MAX_PATH]; // name of default path
char szVersion[MAX_PATH]; // name of version path
char szModifLst[MAX_PATH]; // name of ModifLst path
char szGameSpecific1[MAX_PATH]; // name of game Specific1 path
char szGameSpecific2[MAX_PATH]; // name of game Specific2 path
char szRawSpecific1[MAX_PATH]; // name of raw Specific1 path
char szRawSpecific2[MAX_PATH]; // name of raw Specific2 path
char szFamily[MAX_PATH]; // name of family directory
char szRawSp1[MAX_PATH]; // name of Raw Sp1
char szRawSp2[MAX_PATH]; // name of Raw Sp2
char szGameSp1[MAX_PATH]; // name of Game Sp1
char szGameSp2[MAX_PATH]; // name of Game Sp2
char szConfDirs[MAX_PATH]; // name of config for directories
char szConfSelects[MAX_PATH]; // name of config for selections
char szConfOptions[MAX_PATH]; // name of config for options
}
tdstInitialValue;
typedef struct tdstInitialDirValue_
{
char szTempAnims[MAX_PATH];
char szTempBanks[MAX_PATH];
char szTempClasses[MAX_PATH];
char szTempFamilies[MAX_PATH];
char szTempLevels[MAX_PATH];
char szTempTextures[MAX_PATH];
char szAnims[MAX_PATH];
char szBanks[MAX_PATH];
char szClasses[MAX_PATH];
char szFamilies[MAX_PATH];
char szLevels[MAX_PATH];
char szTextures[MAX_PATH];
}
tdstInitialDirValue;
typedef struct tdstInitialSelectValue_
{
char szAnims[MAX_PATH];
char szBanks[MAX_PATH];
char szClasses[MAX_PATH];
char szFamilies[MAX_PATH];
char szLevels[MAX_PATH];
char szTextures[MAX_PATH];
}
tdstInitialSelectValue;
typedef struct tdstInitialOptionValue_
{
char szIgnoreZoo[MAX_PATH];
char szIgnoreSct[MAX_PATH];
char szIgnoreSpo[MAX_PATH];
char szIgnoreGmt[MAX_PATH];
char szIgnoreTex[MAX_PATH];
char szCopyAnims[MAX_PATH];
char szCopyTextures[MAX_PATH];
char szGenerateRLI[MAX_PATH];
char szUpdateGameDSC[MAX_PATH];
char szCreateBasicFamily[MAX_PATH];
char szEraseDuplicated[MAX_PATH];
char szEraseUnused[MAX_PATH];
char szCommonFamily[MAX_PATH];
char szSpecificFamily[MAX_PATH];
char szAskFamily[MAX_PATH];
}
tdstInitialOptionValue;
typedef struct tdstWindowsPosSize_
{
RECT stMainPos; // window dimension
}
tdstWindowsPosSize;
//--- Globals --------------------------------------------------------
extern tdstWindowsPosSize g_stWinPosSize; // program options
extern tdstInitialValue g_stInitialData; // initial data
extern tdstInitialDirValue g_stInitialDirData; // initial data
extern tdstInitialSelectValue g_stInitialSelectData; // initial data
extern tdstInitialOptionValue g_stInitialOptionData; // initial data
extern char g_szIniFile[MAX_PATH]; // ini file
extern char g_szIniConfDirFile[MAX_PATH]; // ini file
extern char g_szIniConfSelectFile[MAX_PATH]; // ini file
extern char g_szIniConfOptionFile[MAX_PATH]; // ini file
//--- Statics --------------------------------------------------------
static COLORREF gs_a_xLineColor[5] = { RGB(0,155,0), RGB(0,0,0), RGB(0,155,0), RGB(0,0,255), RGB(255,0,0), };
//--- Functions --------------------------------------------------------
// set the paths
void fn_IniData_vSetGameData (char *_szPath);
void fn_IniData_vSetGameSpecific1 (char *_szPath);
void fn_IniData_vSetGameSpecific2 (char *_szPath);
void fn_IniData_vSetRawData (char *_szPath);
void fn_IniData_vSetRawSpecific1 (char *_szPath);
void fn_IniData_vSetRawSpecific2 (char *_szPath);
// set the names
void fn_IniData_vSetRawSp1 (char *_szPath);
void fn_IniData_vSetRawSp2 (char *_szPath);
void fn_IniData_vSetGameSp1 (char *_szPath);
void fn_IniData_vSetGameSp2 (char *_szPath);
// obtaining all the datas in the .ini file
void fn_IniData_vGetDatasFromFile (BOOL _bFirst);
// directory config
void fn_IniData_vGetDatasFromConfigDirsFile (BOOL _bFirst, char *szTag);
void fn_IniData_vSetConfigDirNames (char *_szPath);
void fn_IniData_vSetConfigDirPath (char* szConf, char *szDirName, char *_szPath );
// select configs
void fn_IniData_vGetDatasFromConfigSelectFile (BOOL _bFirst, char *szTag);
void fn_IniData_vSetSelectConfigNames (char *_szPath);
void fn_IniData_vSetSelectConfigValues (char *szName, char *szType, char *szPath);
// option configs
void fn_IniData_vGetDatasFromConfigOptionsFile (BOOL _bFirst, char *szTag);
void fn_IniData_vSetOptionConfigNames (char *_szPath);
void fn_IniData_vSetOptionConfigValues (BOOL bSetIgnore, char *szName, char *szNew);
// window position
void fn_IniData_vGetWindowPosSize (void);
void fn_IniData_vWriteWindowPosSize (void);
void fn_IniData_vStudyRect (char *_szString, RECT *_p_stRect);
// rich edit
void fn_ComRes_vDeleteLines (CRichEditCtrl *_oRichEdit);
void fn_ComRes_vWriteLine (char *szLine, char cLineType ,CRichEditCtrl* _oRichEdit, CHARFORMAT* _stCharFormat);
#endif //__INIDATA_H__

View File

@@ -0,0 +1,59 @@
/*=========================================================================
*
* MainFrm.h - interface of the CMainFrame class
*
* Version 1.0
* Revision date
*
*=======================================================================*/
#ifndef __MAINFRM_H__
#define __MAINFRM_H__
/*
=======================================================================================
CMainFrame class
=======================================================================================
*/
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()
};
#endif // __MAINFRM_H__

View File

@@ -0,0 +1,151 @@
//{{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file.
// Used by GraphInter.rc
//
#define IDD_DIALOGABOUT 100
#define IDD_DIALOGWARNING 101
#define IDD_DIALOGMAIN 102
#define IDC_RICHEDIT_RESULT 103
#define IDC_RICHEDIT_COMMAND 104
#define IDR_MAINFRAME 128
#define IDB_BITMAP_CROSS 132
#define IDI_MAINICON 135
#define IDC_ABOUT_STATICVERSION 1000
#define IDC_ABOUT_STATICCOPYRIGHT 1001
#define IDC_ABOUT_STATICICON 1002
#define IDC_WARNING_CHECKAPPLYALL 1003
#define IDC_WARNING_STATICMESSAGE 1004
#define IDC_MAINPANEL 1010
#define IDC_STATIC_VERSION 1011
#define IDC_BUTTON_HELP 1012
#define IDC_BUTTON_QUIT 1013
#define IDC_GROUP_SOURCEDIRECTORIES 1015
#define IDC_PANELCONFIGS 1016
#define IDC_STATIC_RAWDATA 1020
#define IDC_EDIT_RAWSP1 1023
#define IDC_EDIT_RAWSP2 1024
#define IDC_CHECK_RAWDATA 1025
#define IDC_CHECK_RAWSPECIFIC1 1026
#define IDC_CHECK_RAWSPECIFIC2 1027
#define IDC_EDIT_RAWDATA 1028
#define IDC_EDIT_RAWSPECIFIC1 1029
#define IDC_EDIT_RAWSPECIFIC2 1030
#define IDC_BROWSE_RAWDATA 1031
#define IDC_BROWSE_RAWSPECIFIC1 1032
#define IDC_BROWSE_RAWSPECIFIC2 1033
#define IDC_EDIT_REGISTERCONFIGDIR 1040
#define IDC_BUTTON_REGISTERCONFIGDIR 1041
#define IDC_BUTTON_CREATECONFIGDIR 1042
#define IDC_EDIT_CREATECONFIGDIR 1043
#define IDC_BUTTON_SAVECONFIGDIR 1044
#define IDC_COMBO_CONFIGDIR 1045
#define IDC_BUTTON_DELETECONFIGDIR 1046
#define IDC_STATIC_ANIMS 1050
#define IDC_STATIC_BANKS 1051
#define IDC_STATIC_CLASSES 1052
#define IDC_STATIC_FAMILIES 1053
#define IDC_STATIC_LEVELS 1054
#define IDC_STATIC_TEXTURES 1055
#define IDC_EDIT_ANIMS 1056
#define IDC_EDIT_BANKS 1057
#define IDC_EDIT_CLASSES 1058
#define IDC_EDIT_FAMILIES 1059
#define IDC_EDIT_LEVELS 1060
#define IDC_EDIT_TEXTURES 1061
#define IDC_BROWSE_ANIMS 1062
#define IDC_BROWSE_BANKS 1063
#define IDC_BROWSE_CLASSES 1064
#define IDC_BROWSE_FAMILIES 1065
#define IDC_BROWSE_LEVELS 1066
#define IDC_BROWSE_TEXTURES 1067
#define IDC_GROUP_DESTDIRECTORIES 1070
#define IDC_STATIC_GAMEDATA 1071
#define IDC_EDIT_GAMESP1 1072
#define IDC_EDIT_GAMESP2 1073
#define IDC_CHECK_GAMEDATA 1076
#define IDC_CHECK_GAMESPECIFIC1 1077
#define IDC_CHECK_GAMESPECIFIC2 1078
#define IDC_EDIT_GAMEDATA 1079
#define IDC_EDIT_GAMESPECIFIC1 1080
#define IDC_EDIT_GAMESPECIFIC2 1081
#define IDC_BROWSE_GAMEDATA 1082
#define IDC_BROWSE_GAMESPECIFIC1 1083
#define IDC_BROWSE_GAMESPECIFIC2 1084
#define IDC_GROUP_MAINOPTIONS 1090
#define IDC_CHECK_RAYMAN2 1091
#define IDC_CHECK_MODIFLST 1092
#define IDC_CHECK_ERASEMOD 1093
#define IDC_STATIC_LISTMESSAGE 2000
#define IDC_LISTBOX_TYPES 2001
#define IDC_LISTBOX_OBJECTS 2002
#define IDC_GROUP_SELECTION 2005
#define IDC_BUTTON_SELECTALL 2006
#define IDC_BUTTON_SELECTLIST 2007
#define IDC_BUTTON_CLEARLIST 2008
#define IDC_BUTTON_CLEARALL 2009
#define IDC_GROUP_SELECTIONCONFIG 2010
#define IDC_BUTTON_REGISTERCONFIGSELECT 2011
#define IDC_EDIT_REGISTERCONFIGSELECT 2012
#define IDC_BUTTON_CREATECONFIGSELECT 2013
#define IDC_EDIT_CREATECONFIGSELECT 2014
#define IDC_BUTTON_SAVECONFIGSELECT 2015
#define IDC_COMBO_CONFIGSELECT 2016
#define IDC_BUTTON_DELETECONFIGSELECT 2017
#define IDC_BUTTON_CONVERT 2018
#define IDC_GROUP_CONFLICT 2020
#define IDC_STATIC_ZOO 2025
#define IDC_STATIC_SCT 2026
#define IDC_STATIC_SPO 2027
#define IDC_STATIC_GMT 2028
#define IDC_STATIC_VMT 2029
#define IDC_CHECK_ZOO_MAX 2030
#define IDC_CHECK_SCT_MAX 2031
#define IDC_CHECK_SPO_MAX 2032
#define IDC_CHECK_GMT_MAX 2033
#define IDC_CHECK_VMT_MAX 2034
#define IDC_CHECK_ZOO_EDS 2035
#define IDC_CHECK_SCT_EDS 2036
#define IDC_CHECK_SPO_EDS 2037
#define IDC_CHECK_GMT_EDS 2038
#define IDC_CHECK_VMT_EDS 2039
#define IDC_GROUP_OPTIONS 2040
#define IDC_CHECK_COPYANIMS 2041
#define IDC_CHECK_COPYTEXTURES 2042
#define IDC_CHECK_GENERATERLI 2043
#define IDC_CHECK_UPDATEGAMEDSC 2044
#define IDC_CHECK_BASICFAMILY 2045
#define IDC_GROUP_ERASE 2050
#define IDC_CHECK_ERASEDUPLICATED 2051
#define IDC_CHECK_ERASEUNUSED 2052
#define IDC_GROUP_FAMILIES 2055
#define IDC_CHECK_FORCECOMMON 2056
#define IDC_CHECK_FORCESPECIFIC 2057
#define IDC_CHECK_ASKFAMILY 2058
#define IDC_GROUP_CONFIG 2060
#define IDC_GROUP_OPTIONCONFIG 2060
#define IDC_BUTTON_REGISTERCONFIGOPTION 2062
#define IDC_EDIT_REGISTERCONFIGOPTION 2063
#define IDC_BUTTON_CREATECONFIGOPTION 2064
#define IDC_EDIT_CREATECONFIGOPTION 2065
#define IDC_COMBO_CONFIGOPTION 2066
#define IDC_BUTTON_SAVECONFIGOPTION 2067
#define IDC_BUTTON_DELETECONFIGOPTION 2068
#define IDC_STATIC_RESULT 2100
#define IDC_STATIC_RESULTEDIT 2101
#define IDC_STATIC_COMMAND 2105
#define IDC_STATIC_COMMANDEDIT 2106
#define IDC_STATIC_PROGRESS 2110
#define IDM_OPENHELP 2200
#define IDM_ABOUTBOX 2201
// Next default values for new objects
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_3D_CONTROLS 1
#define _APS_NEXT_RESOURCE_VALUE 137
#define _APS_NEXT_COMMAND_VALUE 32771
#define _APS_NEXT_CONTROL_VALUE 3033
#define _APS_NEXT_SYMED_VALUE 101
#endif
#endif

View 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_)

View File

@@ -0,0 +1,79 @@
/*=========================================================================
*
* Main.h - globals
*
* Version 1.0
* Revision date
*
*=======================================================================*/
#ifndef __MAIN_H__
#define __MAIN_H__
//--- Includes --------------------------------------------------------
#include "typedef.h"
//----------------------------------------------------------------------
#ifdef _WINDOWS
/********************************************************/
#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
/********************************************************/
#endif //_WINDOWS
//--- Typedefs ---------------------------------------------------------
typedef enum { C_Anim, C_Family, C_Bank, C_Level, C_Classe , C_Texture} MLT_tdeCategory;
//--- Globals ---------------------------------------------------------
// current version
extern char g_fVersion[9];
extern BOOL g_bVersionN64;
// modes
extern BOOL g_bOneAnimMode, g_bAnimMode;
extern BOOL g_bOneBankMode, g_bBankMode;
extern BOOL g_bOneClassMode, g_bClassMode;
extern BOOL g_bOneLevelMode, g_bLevelMode;
extern BOOL g_bOneFamilyMode, g_bFamilyMode;
extern BOOL g_bOneTextureMode, g_bTextureMode;
// data
extern MLT_tdeCategory g_cCategoryType;
extern xString g_sAnim[100];
extern xString g_sBank[100];
extern xString g_sClass[100];
extern xString g_sLevel[100];
extern xString g_sFamily[100];
extern xString g_sTexture[100];
extern long g_lAnimNum;
extern long g_lBankNum;
extern long g_lClassNum;
extern long g_lLevelNum;
extern long g_lFamilyNum;
extern long g_lTextureNum;
// directories
extern xString g_sInitialDir;
extern xString g_sRawData;
extern xString g_sGameData;
#ifdef _WINDOWS
/********************************************************/
#ifdef __cplusplus
}
#endif // __cplusplus
/********************************************************/
#endif //_WINDOWS
#endif //__MAIN_H__

View File

@@ -0,0 +1,141 @@
// Microsoft Developer Studio generated Help ID include file.
// Used by GraphInter.rc
//
#define HIDC_STATIC_VERSION 0x806603f3 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_BUTTON_HELP 0x806603f4 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_BUTTON_QUIT 0x806603f5 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_GROUP_SOURCEDIRECTORIES 0x806603f7 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_STATIC_RAWDATA 0x806603fc // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_EDIT_RAWSP1 0x806603ff // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_EDIT_RAWSP2 0x80660400 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_CHECK_RAWDATA 0x80660401 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_CHECK_RAWSPECIFIC1 0x80660402 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_CHECK_RAWSPECIFIC2 0x80660403 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_EDIT_RAWDATA 0x80660404 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_EDIT_RAWSPECIFIC1 0x80660405 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_EDIT_RAWSPECIFIC2 0x80660406 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_BROWSE_RAWDATA 0x80660407 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_BROWSE_RAWSPECIFIC1 0x80660408 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_BROWSE_RAWSPECIFIC2 0x80660409 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_BUTTON_CREATECONFIGDIR 0x80660410 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_EDIT_CREATECONFIGDIR 0x80660411 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_BUTTON_REGISTERCONFIGDIR 0x80660412 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_EDIT_REGISTERCONFIGDIR 0x80660413 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_BUTTON_SAVECONFIGDIR 0x80660414 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_COMBO_CONFIGDIR 0x80660415 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_BUTTON_DELETECONFIGDIR 0x80660416 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_STATIC_ANIMS 0x8066041a // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_STATIC_BANKS 0x8066041b // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_STATIC_CLASSES 0x8066041c // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_STATIC_FAMILIES 0x8066041d // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_STATIC_LEVELS 0x8066041e // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_STATIC_TEXTURES 0x8066041f // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_EDIT_ANIMS 0x80660420 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_EDIT_BANKS 0x80660421 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_EDIT_CLASSES 0x80660422 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_EDIT_FAMILIES 0x80660423 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_EDIT_LEVELS 0x80660424 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_EDIT_TEXTURES 0x80660425 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_BROWSE_ANIMS 0x80660426 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_BROWSE_BANKS 0x80660427 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_BROWSE_CLASSES 0x80660428 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_BROWSE_FAMILIES 0x80660429 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_BROWSE_LEVELS 0x8066042a // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_BROWSE_TEXTURES 0x8066042b // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_GROUP_DESTDIRECTORIES 0x8066042e // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_STATIC_GAMEDATA 0x8066042f // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_EDIT_GAMESP1 0x80660430 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_EDIT_GAMESP2 0x80660431 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_CHECK_GAMEDATA 0x80660434 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_CHECK_GAMESPECIFIC1 0x80660435 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_CHECK_GAMESPECIFIC2 0x80660436 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_EDIT_GAMEDATA 0x80660437 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_EDIT_GAMESPECIFIC1 0x80660438 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_EDIT_GAMESPECIFIC2 0x80660439 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_BROWSE_GAMEDATA 0x8066043a // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_BROWSE_GAMESPECIFIC1 0x8066043b // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_BROWSE_GAMESPECIFIC2 0x8066043c // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_GROUP_MAINOPTIONS 0x80660442 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_CHECK_RAYMAN2 0x80660443 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_CHECK_MODIFLST 0x80660444 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_CHECK_ERASEMOD 0x80660445 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_STATIC_LISTMESSAGE 0x806607d0 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_LISTBOX_TYPES 0x806607d1 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_LISTBOX_OBJECTS 0x806607d2 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_GROUP_SELECTION 0x806607d5 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_BUTTON_SELECTALL 0x806607d6 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_BUTTON_SELECTLIST 0x806607d7 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_BUTTON_CLEARLIST 0x806607d8 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_BUTTON_CLEARALL 0x806607d9 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_GROUP_SELECTIONCONFIG 0x806607da // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_BUTTON_CREATECONFIGSELECT 0x806607db // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_EDIT_CREATECONFIGSELECT 0x806607dc // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_BUTTON_REGISTERCONFIGSELECT 0x806607dd // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_EDIT_REGISTERCONFIGSELECT 0x806607de // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_COMBO_CONFIGSELECT 0x806607df // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_BUTTON_SAVECONFIGSELECT 0x806607e0 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_BUTTON_DELETECONFIGSELECT 0x806607e1 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_BUTTON_CONVERT 0x806607e2 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_GROUP_CONFLICT 0x806607e4 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_STATIC_ZOO 0x806607e9 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_STATIC_SCT 0x806607ea // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_STATIC_SPO 0x806607eb // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_STATIC_GMT 0x806607ec // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_STATIC_VMT 0x806607ed // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_CHECK_ZOO_MAX 0x806607ee // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_CHECK_SCT_MAX 0x806607ef // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_CHECK_SPO_MAX 0x806607f0 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_CHECK_GMT_MAX 0x806607f1 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_CHECK_VMT_MAX 0x806607f2 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_CHECK_ZOO_EDS 0x806607f3 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_CHECK_SCT_EDS 0x806607f4 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_CHECK_SPO_EDS 0x806607f5 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_CHECK_GMT_EDS 0x806607f6 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_CHECK_VMT_EDS 0x806607f7 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_GROUP_OPTIONS 0x806607f8 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_CHECK_COPYANIMS 0x806607f9 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_CHECK_COPYTEXTURES 0x806607fa // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_CHECK_GENERATERLI 0x806607fb // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_CHECK_UPDATEGAMEDSC 0x806607fc // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_CHECK_BASICFAMILY 0x806607fd // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_GROUP_ERASE 0x806607fe // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_CHECK_ERASEDUPLICATED 0x806607ff // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_CHECK_ERASEUNUSED 0x80660800 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_GROUP_FAMILIES 0x80660801 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_CHECK_FORCECOMMON 0x80660802 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_CHECK_FORCESPECIFIC 0x80660803 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_CHECK_ASKFAMILY 0x80660804 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_GROUP_OPTIONCONFIG 0x80660807 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_BUTTON_CREATECONFIGOPTION 0x80660809 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_EDIT_CREATECONFIGOPTION 0x8066080a // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_BUTTON_REGISTERCONFIGOPTION 0x8066080b // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_EDIT_REGISTERCONFIGOPTION 0x8066080c // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_COMBO_CONFIGOPTION 0x8066080d // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_BUTTON_SAVECONFIGOPTION 0x8066080e // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_BUTTON_DELETECONFIGOPTION 0x8066080f // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_STATIC_RESULT 0x80660834 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_STATIC_RESULTEDIT 0x80660835 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_STATIC_COMMAND 0x80660839 // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_STATIC_COMMANDEDIT 0x8066083a // IDD_DIALOGMAIN [English (U.S.)]
#define HIDC_STATIC_PROGRESS 0x8066083e // IDD_DIALOGMAIN [English (U.S.)]

View File

@@ -0,0 +1,5 @@
SCC = This is a Source Code Control file
[Win_M23D.dsp]
SCC_Aux_Path = "\\srvprojets-ma\Rayman4_DS\Versions\Rayman4DS\Tools"
SCC_Project_Name = "$/CPA/Appli/Max23Dos/Win_M23D", MOAAAAAA

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 766 B

View File

@@ -0,0 +1,83 @@
/*=========================================================================
*
* DLGAbout.cpp - implementation of about dialog box class
*
* Version 1.0
* Revision date
*
*=======================================================================*/
#include "stdafx.h"
#include "DlgAbout.h"
/*
=======================================================================================
CAboutDlg dialog
=======================================================================================
*/
/****************************************************************************
* Description: constructor
*
* Parameters: pParent : parent window
*---------------------------------------------------------------------------
* Revision date: Author:
*****************************************************************************/
CAboutDlg::CAboutDlg(CWnd* pParent /*=NULL*/) : CDialog(CAboutDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CAboutDlg)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
/****************************************************************************
* Description: message map
*
* Parameters:
*---------------------------------------------------------------------------
* Revision date: Author:
*****************************************************************************/
BEGIN_MESSAGE_MAP(CAboutDlg, CDialog)
//{{AFX_MSG_MAP(CAboutDlg)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/*
=======================================================================================
CAboutDlg message handlers
=======================================================================================
*/
/****************************************************************************
* Description: WM_INITDIALOG
*
* Parameters:
*---------------------------------------------------------------------------
* Revision date: Author:
*****************************************************************************/
BOOL CAboutDlg::OnInitDialog()
{
CDialog::OnInitDialog();
return TRUE;
}
/****************************************************************************
* Description: WM_DESTROY
*
* Parameters:
*---------------------------------------------------------------------------
* Revision date: Author:
*****************************************************************************/
void CAboutDlg::OnDestroy()
{
CDialog::OnDestroy();
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,864 @@
/*=========================================================================
*
* DlgMain4.cpp - implementation file for main window class
* Configuration functions
*
* Version 1.0
* Revision date
*
*=======================================================================*/
#include <io.h>
#include <fcntl.h>
#include "stdafx.h"
#include "DlgMain.h"
#include "system.h"
#include "print.h"
#include "IniData.h"
//---------------------------------------------------------------------------
//==================================================//
// DIRECTORIES CONFIGS //
//==================================================//
/****************************************************************************
* Description:
*---------------------------------------------------------------------------
* Revision date: Author:
*****************************************************************************/
void CDlgMain::m_fn_vInitDirCombo ()
{
xString sIdent;
char *p_Char1;
int i, j=0;
// init directory combo
strcpy(g_szConfDirs[0], "Default");
strcpy(sIdent, g_stInitialData.szConfDirs);
if (strcmp(sIdent, ""))
{
p_Char1=sIdent;
j=1;
while( (*p_Char1 != ',') && (*p_Char1 != 0))
{
i=0;
while( (*p_Char1 != ',') && (*p_Char1 != 0))
{
g_szConfDirs[j][i]=*p_Char1;
p_Char1++;
i++;
}
g_szConfDirs[j][i] = '\0';
if (*p_Char1 == 0) break;
p_Char1++;
j++;
}
g_iNbConfDirs = j+1;
}
else
g_iNbConfDirs = 1;
for (i=0; i<g_iNbConfDirs; i++)
m_oComboChooseDir.AddString(_T(g_szConfDirs[i]));
if (!strcmp(g_szDirConfig, ""))
{
// find current config
GetPrivateProfileString("CurrentConfigs", "Directories", "", sIdent, 100, g_szIniFile);
i = m_oComboChooseDir.FindStringExact(-1, sIdent);
g_iCurrentIndexDir = (i != -1) ? i : 0;
m_oComboChooseDir.SetCurSel(g_iCurrentIndexDir);
// directory config
GetPrivateProfileString( "CurrentConfigs", "DirMode", "Standard", sIdent, 10, g_szIniFile );
g_bStandardConfig = stricmp(sIdent, "Custom");
}
else
{
g_bStandardConfig = !strcmp(g_szDirConfig, "Default");
i = m_oComboChooseDir.FindStringExact(-1, g_szDirConfig);
g_iCurrentIndexDir = (i != -1) ? i : 0;
m_oComboChooseDir.SetCurSel(g_iCurrentIndexDir);
}
m_fn_vUpdateForDirConfig();
}
/****************************************************************************
* Description: Set the default directory configuration
*---------------------------------------------------------------------------
* Revision date: Author:
*****************************************************************************/
void CDlgMain::m_fn_vSetDefaultDirConfig()
{
xString sRaw;
switch (g_iRaw)
{
case 0:
strcpy(sRaw, g_stInitialData.szRawData);
break;
case 1:
strcpy(sRaw, g_stInitialData.szRawSpecific1);
break;
case 2:
strcpy(sRaw, g_stInitialData.szRawSpecific2);
break;
}
sprintf(g_stInitialDirData.szAnims, "%s\\World\\Graphics\\Anims", sRaw);
sprintf(g_stInitialDirData.szBanks, "%s\\World\\Graphics\\Objects\\Banks", sRaw);
sprintf(g_stInitialDirData.szClasses, "%s\\World\\Graphics\\Objects\\Classes", sRaw);
sprintf(g_stInitialDirData.szFamilies, "%s\\World\\Families", sRaw);
sprintf(g_stInitialDirData.szLevels, "%s\\World\\Levels", sRaw);
sprintf(g_stInitialDirData.szTextures, "%s\\World\\Textures", sRaw);
m_fn_vUpdateDirectories() ;
m_fn_vResetSelection();
}
/****************************************************************************
* Description: set the window text for the types and the global variables for types
*---------------------------------------------------------------------------
* Revision date: Author:
*****************************************************************************/
void CDlgMain::m_fn_vUpdateForDirConfig()
{
char szDir1[_MAX_PATH];
// update directory panel
m_oConfigPanel.SetCurSel((g_bStandardConfig) ? 0 : 1);
g_iCurrentIndexDir = m_oComboChooseDir.GetCurSel();
if (g_iCurrentIndexDir)
{
if (strcmp(g_stInitialData.szConfDirs, ""))
{
GetCurrentDirectory( MAX_PATH, szDir1 );
SetCurrentDirectory( g_szInitialDirectory );
//read the Configs.ini file
fn_IniData_vGetDatasFromConfigDirsFile( TRUE, g_szConfDirs[g_iCurrentIndexDir] );
m_fn_vUpdateDirectories() ;
SetCurrentDirectory( szDir1 );
m_fn_vResetSelection();
}
}
else
m_fn_vSetDefaultDirConfig();
}
/****************************************************************************
* Description: set the window text for the types and the global variables for types
*---------------------------------------------------------------------------
* Revision date: Author:
*****************************************************************************/
void CDlgMain::m_fn_vUpdateDirectories()
{
GetDlgItem(IDC_EDIT_ANIMS)->SetWindowText(g_stInitialDirData.szAnims);
GetDlgItem(IDC_EDIT_BANKS)->SetWindowText(g_stInitialDirData.szBanks);
GetDlgItem(IDC_EDIT_CLASSES)->SetWindowText(g_stInitialDirData.szClasses);
GetDlgItem(IDC_EDIT_FAMILIES)->SetWindowText(g_stInitialDirData.szFamilies);
GetDlgItem(IDC_EDIT_LEVELS)->SetWindowText(g_stInitialDirData.szLevels);
GetDlgItem(IDC_EDIT_TEXTURES)->SetWindowText(g_stInitialDirData.szTextures);
strcpy(g_szAnims, g_stInitialDirData.szAnims);
strcpy(g_szBanks, g_stInitialDirData.szBanks);
strcpy(g_szClasses, g_stInitialDirData.szClasses);
strcpy(g_szFamilies, g_stInitialDirData.szFamilies);
strcpy(g_szLevels, g_stInitialDirData.szLevels);
strcpy(g_szTextures, g_stInitialDirData.szTextures);
}
/****************************************************************************
* Description:
*---------------------------------------------------------------------------
* Revision date: Author:
*****************************************************************************/
void CDlgMain::m_fn_vRegisterAllPaths (int iNumConfig)
{
fn_IniData_vSetConfigDirPath( g_szConfDirs[iNumConfig], "Anims", g_szAnims);
fn_IniData_vSetConfigDirPath( g_szConfDirs[iNumConfig], "Banks", g_szBanks);
fn_IniData_vSetConfigDirPath( g_szConfDirs[iNumConfig], "Classes", g_szClasses);
fn_IniData_vSetConfigDirPath( g_szConfDirs[iNumConfig], "Families", g_szFamilies);
fn_IniData_vSetConfigDirPath( g_szConfDirs[iNumConfig], "Levels", g_szLevels);
fn_IniData_vSetConfigDirPath( g_szConfDirs[iNumConfig], "Textures", g_szTextures);
}
//==================================================//
// SELECTIONS CONFIGS //
//==================================================//
/****************************************************************************
* Description:
*---------------------------------------------------------------------------
* Revision date: Author:
*****************************************************************************/
void CDlgMain::m_fn_vInitSelectCombo ()
{
xString sIdent;
char *p_Char1;
int i, j=0;
// init selection combo
strcpy(g_szConfSelects[0], "Default");
strcpy(sIdent, g_stInitialData.szConfSelects);
if (strcmp(sIdent, ""))
{
p_Char1=sIdent;
j=1;
while( (*p_Char1 != ',') && (*p_Char1 != 0))
{
i=0;
while( (*p_Char1 != ',') && (*p_Char1 != 0))
{
g_szConfSelects[j][i]=*p_Char1;
p_Char1++;
i++;
}
g_szConfSelects[j][i] = '\0';
if (*p_Char1 == 0) break;
p_Char1++;
j++;
}
g_iNbConfSelects = j+1;
}
else
g_iNbConfSelects = 1;
for (i=0; i<g_iNbConfSelects; i++)
m_oComboChooseSelect.AddString(_T(g_szConfSelects[i]));
// find current config
if (!strcmp(g_szSelectConfig, ""))
GetPrivateProfileString("CurrentConfigs", "Selections", "", sIdent, 100, g_szIniFile);
else
strcpy(sIdent, g_szSelectConfig);
i = m_oComboChooseSelect.FindStringExact(-1, sIdent);
g_iCurrentIndexSelect = (i != -1) ? i : 0;
m_oComboChooseSelect.SetCurSel(g_iCurrentIndexSelect);
m_fn_vUpdateForSelectConfig();
}
/****************************************************************************
* Description: Set the default selection configuration
*---------------------------------------------------------------------------
* Revision date: Author:
*****************************************************************************/
void CDlgMain::m_fn_vSetDefaultSelectConfig()
{
m_fn_vResetSelection();
}
/****************************************************************************
* Description:
*---------------------------------------------------------------------------
* Revision date: Author:
*****************************************************************************/
void CDlgMain::m_fn_vUpdateForSelectConfig()
{
OnClearAll();
g_iNbAnimsObj = 0;
g_iNbBanksObj = 0;
g_iNbClassesObj = 0;
g_iNbFamiliesObj = 0;
g_iNbLevelsObj = 0;
g_iNbTexturesObj = 0;
g_bChangeComboSelect = FALSE;
if (strcmp(g_stInitialData.szConfSelects, ""))
{
GI_Type *p_oType;
xString szDir1;
GetCurrentDirectory( MAX_PATH, szDir1 );
SetCurrentDirectory( g_szInitialDirectory );
g_iCurrentIndexSelect = m_oComboChooseSelect.GetCurSel();
if (g_iCurrentIndexSelect)
{
//read the ConfigControls.ini file
fn_IniData_vGetDatasFromConfigSelectFile( TRUE, g_szConfSelects[g_iCurrentIndexSelect] );
//update the selection
m_fn_vUpdateSelectLists();
m_fn_vUpdateSelections();
}
else
m_fn_vSetDefaultSelectConfig();
// update buttons state
m_fn_vEnableButtonAll();
m_fn_vEnableButtonConvert();
// update type list
m_oListType->SetCurSel(0);
OnSelchangeListType() ;
// update selection buttons
p_oType = (m_oListType->GetCount() > 0) ? (GI_Type *)m_oListType->GetItemData(0) : NULL;
m_oSelectList.EnableWindow(p_oType && (p_oType->m_iSelected!=m_oListObject->GetCount()));
m_oClearList.EnableWindow(p_oType && (p_oType->m_iSelected>0));
// update object list
m_oListObject->Invalidate(TRUE);
SetCurrentDirectory( szDir1 );
}
}
/****************************************************************************
* Description: set all objects
*
* Parameters:
*---------------------------------------------------------------------------
* Revision date: Author:
*****************************************************************************/
void CDlgMain::m_fn_vUpdateSelectLists()
{
m_fn_vUpdateSelectListForType("Anims", g_stInitialSelectData.szAnims, &g_iNbAnimsObj);
m_fn_vUpdateSelectListForType("Banks", g_stInitialSelectData.szBanks, &g_iNbBanksObj);
m_fn_vUpdateSelectListForType("Classes", g_stInitialSelectData.szClasses, &g_iNbClassesObj);
m_fn_vUpdateSelectListForType("Families", g_stInitialSelectData.szFamilies, &g_iNbFamiliesObj);
m_fn_vUpdateSelectListForType("Levels", g_stInitialSelectData.szLevels, &g_iNbLevelsObj);
m_fn_vUpdateSelectListForType("Textures", g_stInitialSelectData.szTextures, &g_iNbTexturesObj);
}
/****************************************************************************
* Description: Select all types
*---------------------------------------------------------------------------
* Revision date: Author:
*****************************************************************************/
void CDlgMain::m_fn_vUpdateSelections()
{
m_fn_vUpdateSelectionForType("Anims", g_iNbAnimsObj);
m_fn_vUpdateSelectionForType("Banks", g_iNbBanksObj);
m_fn_vUpdateSelectionForType("Classes", g_iNbClassesObj);
m_fn_vUpdateSelectionForType("Families", g_iNbFamiliesObj);
m_fn_vUpdateSelectionForType("Levels", g_iNbLevelsObj);
m_fn_vUpdateSelectionForType("Textures", g_iNbTexturesObj);
}
/****************************************************************************
* Description: set all selections and types from the second panel
*---------------------------------------------------------------------------
* Revision date: Author:
*****************************************************************************/
void CDlgMain::m_fn_vRegisterSelections (int iNumConfig)
{
m_fn_vRegisterSelectionForType(g_szConfSelects[iNumConfig], "Anims");
m_fn_vRegisterSelectionForType(g_szConfSelects[iNumConfig], "Banks");
m_fn_vRegisterSelectionForType(g_szConfSelects[iNumConfig], "Classes");
m_fn_vRegisterSelectionForType(g_szConfSelects[iNumConfig], "Families");
m_fn_vRegisterSelectionForType(g_szConfSelects[iNumConfig], "Levels");
m_fn_vRegisterSelectionForType(g_szConfSelects[iNumConfig], "Textures");
}
/****************************************************************************
* Description: update the selection list for the given type
*
* Parameters: szObjects : the string with all the objects separated by ,
* szType : type
* iNbObjects : the number of the objects for the type
*---------------------------------------------------------------------------
* Revision date: Author:
*****************************************************************************/
void CDlgMain::m_fn_vUpdateSelectListForType (char *szType, char *szObjects, int *iNbObjects)
{
int i, j;
char *p_Char1, sIdent[256];
strcpy(sIdent, szObjects);
if (strcmp(sIdent, ""))
{
p_Char1=sIdent;
j=0;
while( (*p_Char1 != ',') && (*p_Char1 != 0))
{
i=0;
while( (*p_Char1 != ',') && (*p_Char1 != 0))
{
if (!stricmp(szType, "Anims"))
g_szAnimsObj[j][i]=*p_Char1;
if (!stricmp(szType, "Banks"))
g_szBanksObj[j][i]=*p_Char1;
if (!stricmp(szType, "Classes"))
g_szClassesObj[j][i]=*p_Char1;
if (!stricmp(szType, "Families"))
g_szFamiliesObj[j][i]=*p_Char1;
if (!stricmp(szType, "Levels"))
g_szLevelsObj[j][i]=*p_Char1;
if (!stricmp(szType, "Textures"))
g_szTexturesObj[j][i]=*p_Char1;
p_Char1++;
i++;
}
if (!stricmp(szType, "Anims"))
g_szAnimsObj[j][i]='\0';
if (!stricmp(szType, "Banks"))
g_szBanksObj[j][i]='\0';
if (!stricmp(szType, "Classes"))
g_szClassesObj[j][i]='\0';
if (!stricmp(szType, "Families"))
g_szFamiliesObj[j][i]='\0';
if (!stricmp(szType, "Levels"))
g_szLevelsObj[j][i]='\0';
if (!stricmp(szType, "Textures"))
g_szTexturesObj[j][i]='\0';
if (*p_Char1 == 0) break;
p_Char1++;
j++;
}
*iNbObjects = j+1;
}
}
/****************************************************************************
* Description: Select the objects for the type
*
* Parameters: szType : type
* g_iNb : number of objects
*---------------------------------------------------------------------------
* Revision date: Author:
*****************************************************************************/
void CDlgMain::m_fn_vUpdateSelectionForType (char *szType, int g_iNb )
{
int j;
int i, iIndex;
GI_Item *p_oItem;
GI_Type *p_oType;
iIndex= m_oListType->FindStringExact( -1, szType );
if (iIndex != CB_ERR)
{
m_oListType->SetCurSel(iIndex);
p_oType = (GI_Type *)m_oListType->GetItemData( iIndex );
OnSelchangeListType() ;
j=0;
for (i=0; i<g_iNb; i++)
{
if (!stricmp(szType, "Anims"))
iIndex= m_oListObject->FindStringExact( -1, g_szAnimsObj[i] );
if (!stricmp(szType, "Banks"))
iIndex= m_oListObject->FindStringExact( -1, g_szBanksObj[i] );
if (!stricmp(szType, "Classes"))
iIndex= m_oListObject->FindStringExact( -1, g_szClassesObj[i] );
if (!stricmp(szType, "Families"))
iIndex= m_oListObject->FindStringExact( -1, g_szFamiliesObj[i] );
if (!stricmp(szType, "Levels"))
iIndex= m_oListObject->FindStringExact( -1, g_szLevelsObj[i] );
if (!stricmp(szType, "Textures"))
iIndex= m_oListObject->FindStringExact( -1, g_szTexturesObj[i] );
if (iIndex == LB_ERR)
{ j++;
continue;
}
p_oItem = (GI_Item *)m_oListObject->GetItemData( iIndex );
if (!p_oItem->m_bActived)
{
p_oType->m_iSelected++;
m_iCountOfSelections++;
}
p_oItem->m_bActived = TRUE;
}
}
}
/****************************************************************************
* Description: Get the selection list for the given type
*
* Parameters: szType : name of configuration
* szName : type
*---------------------------------------------------------------------------
* Revision date: Author:
*****************************************************************************/
void CDlgMain::m_fn_vRegisterSelectionForType (char *szName, char *szType)
{
xString szPath;
strcpy(szPath, "");
// read the current selection
m_fn_vReadCurrentSelection();
if (!stricmp(szType, "Anims") && g_iNbAnimsObj)
{
for (int i=0; i<g_iNbAnimsObj-1; i++)
{ strcat(szPath, g_szAnimsObj[i]);
if (g_iNbAnimsObj != 1) strcat(szPath, ",");
}
if (g_iNbAnimsObj != -1) strcat(szPath, g_szAnimsObj[g_iNbAnimsObj-1]);
}
if (!stricmp(szType, "Banks") && g_iNbBanksObj)
{
for (int i=0; i<g_iNbBanksObj-1; i++)
{ strcat(szPath, g_szBanksObj[i]);
if (g_iNbBanksObj != 1) strcat(szPath, ",");
}
if (g_iNbBanksObj != -1) strcat(szPath, g_szBanksObj[g_iNbBanksObj-1]);
}
if (!stricmp(szType, "Classes") && g_iNbClassesObj)
{
for (int i=0; i<g_iNbClassesObj-1; i++)
{ strcat(szPath, g_szClassesObj[i]);
if (g_iNbClassesObj != 1) strcat(szPath, ",");
}
if (g_iNbClassesObj != -1) strcat(szPath, g_szClassesObj[g_iNbClassesObj-1]);
}
if (!stricmp(szType, "Families") && g_iNbFamiliesObj)
{
for (int i=0; i<g_iNbFamiliesObj-1; i++)
{ strcat(szPath, g_szFamiliesObj[i]);
if (g_iNbFamiliesObj != 1) strcat(szPath, ",");
}
if (g_iNbFamiliesObj != -1) strcat(szPath, g_szFamiliesObj[g_iNbFamiliesObj-1]);
}
if (!stricmp(szType, "Levels") && g_iNbLevelsObj)
{
for (int i=0; i<g_iNbLevelsObj-1; i++)
{ strcat(szPath, g_szLevelsObj[i]);
if (g_iNbLevelsObj != 1) strcat(szPath, ",");
}
if (g_iNbLevelsObj != -1) strcat(szPath, g_szLevelsObj[g_iNbLevelsObj-1]);
}
if (!stricmp(szType, "Textures") && g_iNbTexturesObj)
{
for (int i=0; i<g_iNbTexturesObj-1; i++)
{ strcat(szPath, g_szTexturesObj[i]);
if (g_iNbTexturesObj != 1) strcat(szPath, ",");
}
if (g_iNbTexturesObj != -1) strcat(szPath, g_szTexturesObj[g_iNbTexturesObj-1]);
}
fn_IniData_vSetSelectConfigValues( szName, szType, szPath );
}
/****************************************************************************
* Description: Read the current selection and update the lists
*
* Parameters:
*---------------------------------------------------------------------------
* Revision date: Author:
*****************************************************************************/
void CDlgMain::m_fn_vReadCurrentSelection ()
{
int i;
g_iNbAnimsObj=0;
g_iNbBanksObj=0;
g_iNbClassesObj=0;
g_iNbFamiliesObj=0;
g_iNbLevelsObj=0;
g_iNbTexturesObj=0;
// anims
if (m_p_oTypeAnims && m_p_oTypeAnims->m_iSelected)
{
for (i=0; i<m_p_oTypeAnims->m_oList.GetCount(); i++)
{
GI_Item * p_oItem = m_p_oTypeAnims->m_oList.RemoveHead();
if (p_oItem->m_bActived)
{ strcpy(g_szAnimsObj[g_iNbAnimsObj], p_oItem->m_fn_p_oGetName());
g_iNbAnimsObj++;
}
m_p_oTypeAnims->m_oList.AddTail(p_oItem);
}
}
// banks
if (m_p_oTypeBanks && m_p_oTypeBanks->m_iSelected)
{
for (i=0; i<m_p_oTypeBanks->m_oList.GetCount(); i++)
{
GI_Item * p_oItem = m_p_oTypeBanks->m_oList.RemoveHead();
if (p_oItem->m_bActived)
{ strcpy(g_szBanksObj[g_iNbBanksObj], p_oItem->m_fn_p_oGetName());
g_iNbBanksObj++;
}
m_p_oTypeBanks->m_oList.AddTail(p_oItem);
}
}
// classes
if (m_p_oTypeClasses && m_p_oTypeClasses->m_iSelected)
{
for (i=0; i<m_p_oTypeClasses->m_oList.GetCount(); i++)
{
GI_Item * p_oItem = m_p_oTypeClasses->m_oList.RemoveHead();
if (p_oItem->m_bActived)
{ strcpy(g_szClassesObj[g_iNbClassesObj], p_oItem->m_fn_p_oGetName());
g_iNbClassesObj++;
}
m_p_oTypeClasses->m_oList.AddTail(p_oItem);
}
}
// families
if (m_p_oTypeFamilies && m_p_oTypeFamilies->m_iSelected)
{
for (i=0; i<m_p_oTypeFamilies->m_oList.GetCount(); i++)
{
GI_Item * p_oItem = m_p_oTypeFamilies->m_oList.RemoveHead();
if (p_oItem->m_bActived)
{ strcpy(g_szFamiliesObj[g_iNbFamiliesObj], p_oItem->m_fn_p_oGetName());
g_iNbFamiliesObj++;
}
m_p_oTypeFamilies->m_oList.AddTail(p_oItem);
}
}
// levels
if (m_p_oTypeLevels && m_p_oTypeLevels->m_iSelected)
{
for (i=0; i<m_p_oTypeLevels->m_oList.GetCount(); i++)
{
GI_Item * p_oItem = m_p_oTypeLevels->m_oList.RemoveHead();
if (p_oItem->m_bActived)
{ strcpy(g_szLevelsObj[g_iNbLevelsObj], p_oItem->m_fn_p_oGetName());
g_iNbLevelsObj++;
}
m_p_oTypeLevels->m_oList.AddTail(p_oItem);
}
}
// textures
if (m_p_oTypeTextures && m_p_oTypeTextures->m_iSelected)
{
for (i=0; i<m_p_oTypeTextures->m_oList.GetCount(); i++)
{
GI_Item * p_oItem = m_p_oTypeTextures->m_oList.RemoveHead();
if (p_oItem->m_bActived)
{ strcpy(g_szTexturesObj[g_iNbTexturesObj], p_oItem->m_fn_p_oGetName());
g_iNbTexturesObj++;
}
m_p_oTypeTextures->m_oList.AddTail(p_oItem);
}
}
}
//==================================================//
// OPTIONS CONFIGS //
//==================================================//
/****************************************************************************
* Description:
*---------------------------------------------------------------------------
* Revision date: Author:
*****************************************************************************/
void CDlgMain::m_fn_vInitOptionCombo ()
{
xString sIdent;
char *p_Char1;
int i, j=0;
// init option combo
strcpy(g_szConfOptions[0], "Default");
strcpy(sIdent, g_stInitialData.szConfOptions);
if (strcmp(sIdent, ""))
{
p_Char1=sIdent;
j=1;
while( (*p_Char1 != ',') && (*p_Char1 != 0))
{
i=0;
while( (*p_Char1 != ',') && (*p_Char1 != 0))
{
g_szConfOptions[j][i]=*p_Char1;
p_Char1++;
i++;
}
g_szConfOptions[j][i] = '\0';
if (*p_Char1 == 0) break;
p_Char1++;
j++;
}
g_iNbConfOptions = j+1;
}
else
g_iNbConfOptions = 1;
for (i=0; i<g_iNbConfOptions; i++)
m_oComboChooseOption.AddString(_T(g_szConfOptions[i]));
// find current config
if (!strcmp(g_szOptionConfig, ""))
GetPrivateProfileString("CurrentConfigs", "Options", "", sIdent, 100, g_szIniFile);
else
strcpy(sIdent, g_szOptionConfig);
i = m_oComboChooseOption.FindStringExact(-1, sIdent);
g_iCurrentIndexOption = (i != -1) ? i : 0;
m_oComboChooseOption.SetCurSel(g_iCurrentIndexOption);
m_fn_vUpdateForOptionConfig();
}
/****************************************************************************
* Description:
*---------------------------------------------------------------------------
* Revision date: Author:
*****************************************************************************/
void CDlgMain::m_fn_vSetDefaultOptionConfig()
{
char szOption[10];
// conflict options
if (!strcmp(g_szIgnoreZoo, ""))
GetPrivateProfileString( "Options", "IgnoreZoo", "TRUE", szOption, 10, g_szIniFile );
else
strcpy(szOption, strcmp(g_szIgnoreZoo, "1") ? "FALSE" : "TRUE");
g_bIgnoreZoo = stricmp(szOption, "FALSE");
if (!strcmp(g_szIgnoreSct, ""))
GetPrivateProfileString( "Options", "IgnoreSct", "TRUE", szOption, 10, g_szIniFile );
else
strcpy(szOption, strcmp(g_szIgnoreSct, "1") ? "FALSE" : "TRUE");
g_bIgnoreSct = stricmp(szOption, "FALSE");
if (!strcmp(g_szIgnoreSpo, ""))
GetPrivateProfileString( "Options", "IgnoreSpo", "TRUE", szOption, 10, g_szIniFile );
else
strcpy(szOption, strcmp(g_szIgnoreSpo, "1") ? "FALSE" : "TRUE");
g_bIgnoreSpo = stricmp(szOption, "FALSE");
if (!strcmp(g_szIgnoreGmt, ""))
GetPrivateProfileString( "Options", "IgnoreGmt", "TRUE", szOption, 10, g_szIniFile );
else
strcpy(szOption, strcmp(g_szIgnoreGmt, "1") ? "FALSE" : "TRUE");
g_bIgnoreGmt = stricmp(szOption, "FALSE");
if (!strcmp(g_szIgnoreVmt, ""))
GetPrivateProfileString( "Options", "IgnoreTex", "TRUE", szOption, 10, g_szIniFile );
else
strcpy(szOption, strcmp(g_szIgnoreVmt, "1") ? "FALSE" : "TRUE");
g_bIgnoreTex = stricmp(szOption, "FALSE");
// conversion options
if (!strcmp(g_szCopyAnims, ""))
GetPrivateProfileString( "Conversion", "CopyAnims", "TRUE", szOption, 10, g_szIniFile );
else
strcpy(szOption, strcmp(g_szCopyAnims, "1") ? "FALSE" : "TRUE");
g_bCopyAnims = stricmp(szOption, "FALSE");
if (!strcmp(g_szCopyTextures, ""))
GetPrivateProfileString( "Conversion", "CopyTextures", "TRUE", szOption, 10, g_szIniFile );
else
strcpy(szOption, strcmp(g_szCopyTextures, "1") ? "FALSE" : "TRUE");
g_bCopyTextures = stricmp(szOption, "FALSE");
if (!strcmp(g_szGenerateRLI, ""))
GetPrivateProfileString( "Conversion", "GenerateRLI", "TRUE", szOption, 10, g_szIniFile );
else
strcpy(szOption, strcmp(g_szGenerateRLI, "1") ? "FALSE" : "TRUE");
g_bGenerateRLI = stricmp(szOption, "FALSE");
if (!strcmp(g_szUpdateGameDSC, ""))
GetPrivateProfileString( "Conversion", "UpdateGameDSC", "TRUE", szOption, 10, g_szIniFile );
else
strcpy(szOption, strcmp(g_szUpdateGameDSC, "1") ? "FALSE" : "TRUE");
g_bUpdateGameDSC = stricmp(szOption, "FALSE");
if (!strcmp(g_szCreateBasicFamily, ""))
GetPrivateProfileString( "Conversion", "CreateBasicFamily", "TRUE", szOption, 10, g_szIniFile );
else
strcpy(szOption, strcmp(g_szCreateBasicFamily, "1") ? "FALSE" : "TRUE");
g_bCreateBasicFamily = !stricmp(szOption, "TRUE");
// erase options
if (!strcmp(g_szEraseDuplicated, ""))
GetPrivateProfileString( "Erase", "EraseDuplicated", "TRUE", szOption, 10, g_szIniFile );
else
strcpy(szOption, strcmp(g_szEraseDuplicated, "1") ? "FALSE" : "TRUE");
g_bEraseDuplicated = !stricmp(szOption, "TRUE");
if (!strcmp(g_szEraseUnused, ""))
GetPrivateProfileString( "Erase", "EraseUnused", "TRUE", szOption, 10, g_szIniFile );
else
strcpy(szOption, strcmp(g_szEraseUnused, "1") ? "FALSE" : "TRUE");
g_bEraseUnused = !stricmp(szOption, "TRUE");
// family options
if (!strcmp(g_szForceCommon, ""))
GetPrivateProfileString( "Family", "CommonFamily", "TRUE", szOption, 10, g_szIniFile );
else
strcpy(szOption, strcmp(g_szForceCommon, "1") ? "FALSE" : "TRUE");
g_bCommonFamily = stricmp(szOption, "FALSE");
if (!strcmp(g_szForceSpecific, ""))
GetPrivateProfileString( "Family", "SpecificFamily", "TRUE", szOption, 10, g_szIniFile );
else
strcpy(szOption, strcmp(g_szForceSpecific, "1") ? "FALSE" : "TRUE");
g_bSpecificFamily = stricmp(szOption, "FALSE");
GetPrivateProfileString( "Family", "AskFamily", "TRUE", szOption, 10, g_szIniFile );
g_bAskFamily = stricmp(szOption, "FALSE");
m_fn_vSetOptions();
}
/****************************************************************************
* Description:
*---------------------------------------------------------------------------
* Revision date: Author:
*****************************************************************************/
void CDlgMain::m_fn_vUpdateForOptionConfig()
{
g_bChangeComboOption = FALSE;
if (strcmp(g_stInitialData.szConfOptions, ""))
{
xString szDir1;
GetCurrentDirectory( MAX_PATH, szDir1 );
SetCurrentDirectory( g_szInitialDirectory );
g_iCurrentIndexOption = m_oComboChooseOption.GetCurSel();
if (g_iCurrentIndexOption)
{
//read the ConfigControls.ini file
fn_IniData_vGetDatasFromConfigOptionsFile(TRUE, g_szConfOptions[g_iCurrentIndexOption]);
m_fn_vSetOptions();
}
else
m_fn_vSetDefaultOptionConfig();
SetCurrentDirectory( szDir1 );
}
}
/****************************************************************************
* Description: set all options and types from the second panel
*---------------------------------------------------------------------------
* Revision date: Author:
*****************************************************************************/
void CDlgMain::m_fn_vRegisterAllOptions (int iNumConfig)
{
fn_IniData_vSetOptionConfigValues( g_bIgnoreZoo, "IgnoreZoo", g_szConfOptions[iNumConfig]);
fn_IniData_vSetOptionConfigValues( g_bIgnoreSct, "IgnoreSct", g_szConfOptions[iNumConfig]);
fn_IniData_vSetOptionConfigValues( g_bIgnoreSpo, "IgnoreSpo", g_szConfOptions[iNumConfig]);
fn_IniData_vSetOptionConfigValues( g_bIgnoreGmt, "IgnoreGmt", g_szConfOptions[iNumConfig]);
fn_IniData_vSetOptionConfigValues( g_bIgnoreTex, "IgnoreTex", g_szConfOptions[iNumConfig]);
fn_IniData_vSetOptionConfigValues( g_bCopyAnims, "CopyAnims", g_szConfOptions[iNumConfig]);
fn_IniData_vSetOptionConfigValues( g_bCopyTextures, "CopyTextures", g_szConfOptions[iNumConfig]);
fn_IniData_vSetOptionConfigValues( g_bGenerateRLI, "GenerateRLI", g_szConfOptions[iNumConfig]);
fn_IniData_vSetOptionConfigValues( g_bUpdateGameDSC, "UpdateGameDSC", g_szConfOptions[iNumConfig]);
fn_IniData_vSetOptionConfigValues( g_bCreateBasicFamily, "CreateBasicFamily", g_szConfOptions[iNumConfig]);
fn_IniData_vSetOptionConfigValues( g_bEraseDuplicated, "EraseDuplicated", g_szConfOptions[iNumConfig]);
fn_IniData_vSetOptionConfigValues( g_bEraseUnused, "EraseUnused", g_szConfOptions[iNumConfig]);
fn_IniData_vSetOptionConfigValues( g_bSpecificFamily, "SpecificFamily", g_szConfOptions[iNumConfig]);
fn_IniData_vSetOptionConfigValues( g_bCommonFamily, "CommonFamily", g_szConfOptions[iNumConfig]);
fn_IniData_vSetOptionConfigValues( g_bAskFamily, "AskFamily", g_szConfOptions[iNumConfig]);
}

View File

@@ -0,0 +1,141 @@
/*=========================================================================
*
* DLGWarning.cpp - implementation file for warning dialog box class
*
* Version 1.0
* Revision date
*
*=======================================================================*/
#include "stdafx.h"
#include "DlgWarning.h"
#include "print.h"
/*
=======================================================================================
CDlgWarning dialog
=======================================================================================
*/
/****************************************************************************
* Description: constructor
*
* Parameters: pParent : parent window
*---------------------------------------------------------------------------
* Revision date: Author:
*****************************************************************************/
CDlgWarning::CDlgWarning(CWnd* pParent /*=NULL*/) : CDialog(CDlgWarning::IDD, pParent)
{
//{{AFX_DATA_INIT(CDlgWarning)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
/****************************************************************************
* Description: message map
*
* Parameters:
*---------------------------------------------------------------------------
* Revision date: Author:
*****************************************************************************/
BEGIN_MESSAGE_MAP(CDlgWarning, CDialog)
//{{AFX_MSG_MAP(CDlgWarning)
ON_BN_CLICKED(IDC_WARNING_CHECKAPPLYALL, OnApplyAll)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/*
=======================================================================================
CDlgWarning message handlers
=======================================================================================
*/
/****************************************************************************
* Description: WM_INITDIALOG
*
* Parameters:
*---------------------------------------------------------------------------
* Revision date: Author:
*****************************************************************************/
BOOL CDlgWarning::OnInitDialog()
{
CDialog::OnInitDialog();
if (!g_bApplyAll)
((CButton *)GetDlgItem(IDC_WARNING_CHECKAPPLYALL))->SetCheck(0);
else
((CButton *)GetDlgItem(IDC_WARNING_CHECKAPPLYALL))->SetCheck(1);
m_oStatic=(CStatic *)GetDlgItem(IDC_WARNING_STATICMESSAGE);
m_oStatic->SetWindowText(m_sMes);
GetDlgItem(IDOK)->SetWindowText(m_sOK);
GetDlgItem(IDCANCEL)->SetWindowText(m_sCancel);
return TRUE;
}
/****************************************************************************
* Description: WM_DESTROY
*
* Parameters:
*---------------------------------------------------------------------------
* Revision date: Author:
*****************************************************************************/
void CDlgWarning::OnDestroy()
{
CDialog::OnDestroy();
}
/****************************************************************************
* Description: Handle function for message BN_CLICKED on ApplyAll button
*
* Parameters:
*---------------------------------------------------------------------------
* Revision date: Author:
*****************************************************************************/
void CDlgWarning::OnApplyAll()
{
g_bApplyAll = ((CButton *)GetDlgItem(IDC_WARNING_CHECKAPPLYALL))->GetCheck();
}
/****************************************************************************
* Description: Build the text of the warning message
*
* Parameters:
*---------------------------------------------------------------------------
* Revision date: Author:
*****************************************************************************/
void CDlgWarning::m_fn_vBuildTextMessage (tdeWarningMode eMode, char *sName)
{
switch (eMode)
{
case E_ForceCommon :
strcpy(m_sMes, "Some specific files already exist for the family ");
strcat(m_sMes, sName);
strcat(m_sMes, ".\nAre you sure you want to convert it as a common one? \n");
strcat(m_sMes, "There is a risk of incoherence.");
strcpy(m_sOK, "Force Common");
strcpy(m_sCancel, "Cancel Conversion");
break;
case E_ForceSpecific :
strcpy(m_sMes, "The family ");
strcat(m_sMes, sName);
strcat(m_sMes, " was a common one. \n\n Do you want it to become a specific one?");
strcpy(m_sOK, "Force Specific");
strcpy(m_sCancel, "Keep Common");
break;
}
}

View File

@@ -0,0 +1,37 @@
/*=========================================================================
*
* GIItem.cpp - Implementation of the GI_Item class
*
* Version 1.0
* Revision date
*
*=======================================================================*/
#include "stdafx.h"
#include "GIItem.h"
/****************************************************************************
* Description: constructor
*
* Parameters: bAct : activation flag
* szName : name of the item
*---------------------------------------------------------------------------
* Revision date: Author:
*****************************************************************************/
GI_Item::GI_Item (BOOL bAct, char *szName)
{
m_bActived = bAct;
strcpy(m_szName, szName);
}
/****************************************************************************
* Description: destructor
*
* Parameters:
*---------------------------------------------------------------------------
* Revision date: Author:
*****************************************************************************/
GI_Item::~GI_Item()
{
}

View File

@@ -0,0 +1,39 @@
/*=========================================================================
*
* GIType.cpp - Implementation of the GI_Type class
*
* Version 1.0
* Revision date
*
*=======================================================================*/
#include "stdafx.h"
#include "GIType.h"
/****************************************************************************
* Description: constructor
*
* Parameters: szName : name of the item
* _iSelected : selection flag
* _xTextColor : color of the item
*---------------------------------------------------------------------------
* Revision date: Author:
*****************************************************************************/
GI_Type::GI_Type(char *szName, int _iSelected, COLORREF _xTextColor)
{
strcpy(m_szName, szName);
m_iSelected = _iSelected;
m_xTextColor = _xTextColor;
}
/****************************************************************************
* Description: destructor
*
* Parameters:
*---------------------------------------------------------------------------
* Revision date: Author:
*****************************************************************************/
GI_Type::~GI_Type()
{
}

View File

@@ -0,0 +1,229 @@
/*=========================================================================
*
* GraphInter.cpp - main implementation file for the graphic interface
*
* Version 1.0
* Revision date
*
*=======================================================================*/
#include "stdafx.h"
#include "GraphInter.h"
#include "print.h"
#include "DlgMain.h"
#include "IniData.h"
#include "Help.h"
//--- Global statics --------------------------------------------------------
// The one and only CGraphInterApp object
CGraphInterApp theApp;
// CGraphInterApp initialization
CRichEditCtrl* p_oRichEditRes;
CHARFORMAT* p_stCharFormatRes;
CRichEditCtrl* p_oRichEditCom;
CHARFORMAT* p_stCharFormatCom;
CWinThread* p_ThMain;
//--------------------------------------------------------------------
/****************************************************************************
* Description: message map
*
* Parameters:
*---------------------------------------------------------------------------
* Revision date: Author:
*****************************************************************************/
BEGIN_MESSAGE_MAP(CGraphInterApp, CWinApp)
//{{AFX_MSG_MAP(CGraphInterApp)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/****************************************************************************
* Description: constructor
*
* Parameters:
*---------------------------------------------------------------------------
* Revision date: Author:
*****************************************************************************/
CGraphInterApp::CGraphInterApp()
{
// TODO: add construction code here,
// Place all significant initialization in InitInstance
}
/****************************************************************************
* Description: init the application instance
*
* Parameters:
*---------------------------------------------------------------------------
* Revision date: Author:
*****************************************************************************/
BOOL CGraphInterApp::InitInstance()
{
char szHelpFile[256];
AfxEnableControlContainer();
// Standard initialization
// If you are not using these features and wish to reduce the size
// of your final executable, you should remove from the following
// the specific initialization routines you do not need.
#ifdef _AFXDLL
Enable3dControls(); // Call this when using MFC in a shared DLL
#else
Enable3dControlsStatic(); // Call this when linking to MFC statically
#endif
// compute the name of the context help file
GetCurrentDirectory(256, szHelpFile);
strcat(szHelpFile, "\\");
strcat(szHelpFile, C_szCxtHelpFile);
// update the current context help file
fn_vChangeContextHelpFile(szHelpFile);
// create the dialog for the application
CDlgMain dlg;
m_pMainWnd = &dlg;
p_oRichEditCom = &dlg.m_oRichEditCom;
p_stCharFormatCom = &dlg.m_stCharFormatCom;
p_oRichEditRes = &dlg.m_oRichEditRes;
p_stCharFormatRes = &dlg.m_stCharFormatRes;
int nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
// TODO: Place code here to handle when the dialog is
// dismissed with OK
}
else if (nResponse == IDCANCEL)
{
// TODO: Place code here to handle when the dialog is
// dismissed with Cancel
}
// Since the dialog has been closed, return FALSE so that we exit the
// application, rather than start the application's message pump.
return FALSE;
}
/****************************************************************************
* Description: update the name of the context help file
*
* Parameters: _szString : string to display
* _Line : type of the line (normal, warning, error)
*---------------------------------------------------------------------------
* Revision date: Author:
*****************************************************************************/
void CGraphInterApp::fn_vChangeContextHelpFile (char *szNewName)
{
free((void*)m_pszHelpFilePath);
m_pszHelpFilePath=_tcsdup(_T(szNewName));
}
/****************************************************************************
* Description: display a string in the result window
*
* Parameters: _szString : string to display
* _Line : type of the line (normal, warning, error)
*---------------------------------------------------------------------------
* Revision date: Author:
*****************************************************************************/
void fn_vAfxOutputStringRes( char* _szString, char _Line)
{
fn_ComRes_vWriteLine( _szString, _Line ,p_oRichEditRes, p_stCharFormatRes);
}
/****************************************************************************
* Description: display a string in the command window
*
* Parameters: _szString : string to display
* _Line : type of the line (normal, warning, error)
*---------------------------------------------------------------------------
* Revision date: Author:
*****************************************************************************/
void fn_vAfxOutputStringCom( char* _szString, char _Line)
{
char szSingleLine[256];
char *p_szNextCom, *p_szCurrentCom;
char *p_szNextLine, *p_szCurrentLine;
BOOL bTitle, bLastLine, bLastCom = FALSE;
int iLineIndex = 0, iCommandIndex = 0;
p_szCurrentCom = _szString;
while (p_szCurrentCom)
{
// update pointers
p_szNextCom = strstr(p_szCurrentCom+2, "##");
p_szCurrentLine = p_szCurrentCom+2;
// update flags
bTitle = TRUE;
bLastCom = (p_szNextCom == NULL);
bLastLine = FALSE;
while (p_szCurrentLine)
{
// update command index
g_iCommandIndex[iLineIndex] = iCommandIndex;
p_szNextLine = strchr(p_szCurrentLine+1, '-');
if (!p_szNextLine)
{
bLastLine = TRUE;
if (!p_szNextCom)
p_szNextLine = p_szCurrentLine + strlen(p_szCurrentLine);
else
p_szNextLine = p_szNextCom;
}
else if (!bLastCom && (p_szNextLine > p_szNextCom))
{
bLastLine = TRUE;
p_szNextLine = p_szNextCom;
}
int nLenght = p_szNextLine - p_szCurrentLine;
memset(szSingleLine, 0, 256);
strcpy(szSingleLine, (bTitle ? " " : " "));
strncat(szSingleLine, p_szCurrentLine, nLenght);
if (szSingleLine[strlen(szSingleLine) - 1] != '\n')
strcat(szSingleLine+nLenght, "\n");
if (bTitle)
fn_ComRes_vWriteLine( szSingleLine, C_ComRes_cTitleLine ,p_oRichEditCom, p_stCharFormatCom);
else
fn_ComRes_vWriteLine( szSingleLine, C_ComRes_cNormalLine ,p_oRichEditCom, p_stCharFormatCom);
p_szCurrentLine = bLastLine ? NULL : p_szNextLine;
iLineIndex++;
bTitle = FALSE;
}
g_iCommandIndex[iLineIndex] = iCommandIndex;
p_szCurrentCom = p_szNextCom;
iCommandIndex++;
}
// fn_ComRes_vWriteLine( _szString, _Line ,p_oRichEditCom, p_stCharFormatCom);
}

View File

@@ -0,0 +1,829 @@
/*=========================================================================
*
* IniData.cpp - general functions for saving, loading
*
* Version 1.0
* Revision date
*
*=======================================================================*/
#include <io.h>
#include <sys/stat.h>
#include "stdafx.h"
#include "IniData.h"
#include "print.h"
//--- Global defines --------------------------------------------------------
tdstWindowsPosSize g_stWinPosSize;
tdstInitialValue g_stInitialData;
tdstInitialDirValue g_stInitialDirData;
tdstInitialSelectValue g_stInitialSelectData;
tdstInitialOptionValue g_stInitialOptionData;
char g_szIniFile[MAX_PATH];
char g_szIniConfDirFile[MAX_PATH];
char g_szIniConfSelectFile[MAX_PATH];
char g_szIniConfOptionFile[MAX_PATH];
//--- Global Statics --------------------------------------------------------
tdstInitialValue g_stDefaultData = // default value for data
{
"d:\\GameData", // default temp path for game data(computed)
"d:\\RawData", // default temp path for raw data(computed)
"Textures", // default temp path for Textures(computed)
"Default", // default temp path for Default(computed)
"Rayman", // default temp for Version(computed)
"Update ModifLst.txt", // default temp for ModifLst(computed)
"", // default temp path for game specific1(computed)
"", // default temp path for game specific2(computed)
"", // default temp path for raw specific1(computed)
"", // default temp path for raw specific2(computed)
"", // default temp path for family(computed)
"RawSpecific1", // default temp name for raw specific1(computed)
"RawSpecific2", // default temp name for raw specific2(computed)
"GameSpecific1", // default temp name for game specific1(computed)
"GameSpecific2", // default temp name for game specific2(computed)
"",
"",
"none", // default game data path (computed if none)
"none", // default raw data path (computed if none)
"none", // default Textures path (computed if none)
"none", // default Default path (computed if none)
"none", // default Version (computed if none)
"none", // default ModifLst (computed if none)
"none", // default game data specific1 (computed if none)
"none", // default game data specific2 (computed if none)
"none", // default raw data specific1 (computed if none)
"none", // default raw data specific1 (computed if none)
"none", // default path for family (computed if none)
"none", // default name for raw specific1 (computed if none)
"none", // default name for raw specific2 (computed if none)
"none", // default name for game specific1 (computed if none)
"none", // default name for game specific2 (computed if none)
"none",
"none",
};
tdstInitialDirValue g_stDefaultDirData =
{
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
};
tdstInitialOptionValue g_stDefaultOptionData =
{
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
};
tdstInitialSelectValue g_stDefaultSelectData =
{
"",
"",
"",
"",
"",
"",
};
//--- Macros -----------------------------------------------------------
// Macro to bound size of a rect
#define M_vVerifyRect( _p_stRect, _iMinWidth, _iMinHeight )\
{\
if (_p_stRect->right - _p_stRect->left + 1 < _iMinWidth )\
_p_stRect->right = _p_stRect->left + _iMinWidth ;\
if (_p_stRect->bottom - _p_stRect->top + 1 < _iMinHeight )\
_p_stRect->bottom = _p_stRect->top + _iMinHeight;\
}
//--------------------------------------------------------------------
/****************************************************************************
* Description: write the path for Game Data Directory in the .ini file
*
* Parameters: _szPath : path to write
*---------------------------------------------------------------------------
* Revision date: Author:
*****************************************************************************/
void fn_IniData_vSetGameData( char *_szPath )
{
if (_access( g_szIniFile, 2) == -1)
_chmod ( g_szIniFile, _S_IWRITE );
WritePrivateProfileString( "General directories", "PathGameData", _szPath, g_szIniFile );
}
/****************************************************************************
* Description: write the path for Game Specific1 Directory in the .ini file
*
* Parameters: _szPath : path to write
*---------------------------------------------------------------------------
* Revision date: Author:
*****************************************************************************/
void fn_IniData_vSetGameSpecific1( char *_szPath )
{
if (_access( g_szIniFile, 2) == -1)
_chmod ( g_szIniFile, _S_IWRITE );
WritePrivateProfileString( "General directories", "PathGameSpecific1", _szPath, g_szIniFile );
}
/****************************************************************************
* Description: write the path for Game Specific2 Directory in the .ini file
*
* Parameters: _szPath : path to write
*---------------------------------------------------------------------------
* Revision date: Author:
*****************************************************************************/
void fn_IniData_vSetGameSpecific2( char *_szPath )
{
if (_access( g_szIniFile, 2) == -1)
_chmod ( g_szIniFile, _S_IWRITE );
WritePrivateProfileString( "General directories", "PathGameSpecific2", _szPath, g_szIniFile );
}
/****************************************************************************
* Description: write the path for Raw Data Directory in the .ini file
*
* Parameters: _szPath : path to write
*---------------------------------------------------------------------------
* Revision date: Author:
*****************************************************************************/
void fn_IniData_vSetRawData( char *_szPath )
{
if (_access( g_szIniFile, 2) == -1)
_chmod ( g_szIniFile, _S_IWRITE );
WritePrivateProfileString( "General directories", "PathRawData", _szPath, g_szIniFile );
}
/****************************************************************************
* Description: write the path for Raw Specific1 Directory in the .ini file
*
* Parameters: _szPath : path to write
*---------------------------------------------------------------------------
* Revision date: Author:
*****************************************************************************/
void fn_IniData_vSetRawSpecific1( char *_szPath )
{
if (_access( g_szIniFile, 2) == -1)
_chmod ( g_szIniFile, _S_IWRITE );
WritePrivateProfileString( "General directories", "PathRawSpecific1", _szPath, g_szIniFile );
}
/****************************************************************************
* Description: write the path for Raw Specific2 Directory in the .ini file
*
* Parameters: _szPath : path to write
*---------------------------------------------------------------------------
* Revision date: Author:
*****************************************************************************/
void fn_IniData_vSetRawSpecific2( char *_szPath )
{
if (_access( g_szIniFile, 2) == -1)
_chmod ( g_szIniFile, _S_IWRITE );
WritePrivateProfileString( "General directories", "PathRawSpecific2", _szPath, g_szIniFile );
}
/****************************************************************************
* Description: Set the entry in the .ini file for the RawSpecific1
*
* Parameters: _szPath : name to write
*---------------------------------------------------------------------------
* Revision date: Author:
*****************************************************************************/
void fn_IniData_vSetRawSp1( char *_szPath )
{
if (_access( g_szIniFile, 2) == -1)
_chmod ( g_szIniFile, _S_IWRITE );
WritePrivateProfileString( "Name", "RawSpecific1", _szPath, g_szIniFile );
}
/****************************************************************************
* Description: Set the entry in the .ini file for the RawSpecific2
*
* Parameters: _szPath : name to write
*---------------------------------------------------------------------------
* Revision date: Author:
*****************************************************************************/
void fn_IniData_vSetRawSp2( char *_szPath )
{
if (_access( g_szIniFile, 2) == -1)
_chmod ( g_szIniFile, _S_IWRITE );
WritePrivateProfileString( "Name", "RawSpecific2", _szPath, g_szIniFile );
}
/****************************************************************************
* Description: Set the entry in the .ini file for the GameSpecific1
*
* Parameters: _szPath : name to write
*---------------------------------------------------------------------------
* Revision date: Author:
*****************************************************************************/
void fn_IniData_vSetGameSp1( char *_szPath )
{
if (_access( g_szIniFile, 2) == -1)
_chmod ( g_szIniFile, _S_IWRITE );
WritePrivateProfileString( "Name", "GameSpecific1", _szPath, g_szIniFile );
}
/****************************************************************************
* Description: Set the entry in the .ini file for the GameSpecific2
*
* Parameters: _szPath : name to write
*---------------------------------------------------------------------------
* Revision date: Author:
*****************************************************************************/
void fn_IniData_vSetGameSp2( char *_szPath )
{
if (_access( g_szIniFile, 2) == -1)
_chmod ( g_szIniFile, _S_IWRITE );
WritePrivateProfileString( "Name", "GameSpecific2", _szPath, g_szIniFile );
}
/****************************************************************************
* Description: Get all datas saved in the .ini file
*
* Parameters: _bFirst : intialisation file
*---------------------------------------------------------------------------
* Revision date: Author:
*****************************************************************************/
void fn_IniData_vGetDatasFromFile( BOOL _bFirst )
{
if (_bFirst)
{
GetCurrentDirectory( MAX_PATH, g_szIniFile );
if (g_szIniFile[strlen(g_szIniFile) - 1] != '\\')
strcat( g_szIniFile, "\\");
strcat( g_szIniFile, C_szIniFile );
// set all ini data with default data
memcpy( &g_stInitialData, &g_stDefaultData, sizeof( tdstInitialValue ) );
}
// get the informations for name of the executable, local path, game data, rawdata, textures and default directories
GetPrivateProfileString( "Name", "RawSpecific1", g_stDefaultData.szRawSp1, g_stInitialData.szRawSp1, MAX_PATH, g_szIniFile );
GetPrivateProfileString( "Name", "RawSpecific2", g_stDefaultData.szRawSp2, g_stInitialData.szRawSp2, MAX_PATH, g_szIniFile );
GetPrivateProfileString( "Name", "GameSpecific1", g_stDefaultData.szGameSp1, g_stInitialData.szGameSp1, MAX_PATH, g_szIniFile );
GetPrivateProfileString( "Name", "GameSpecific2", g_stDefaultData.szGameSp2, g_stInitialData.szGameSp2, MAX_PATH, g_szIniFile );
GetPrivateProfileString( "General directories", "PathRawData", g_stDefaultData.szRawData, g_stInitialData.szRawData, MAX_PATH, g_szIniFile );
GetPrivateProfileString( "General directories", "PathRawSpecific1", g_stDefaultData.szRawSpecific1, g_stInitialData.szRawSpecific1, MAX_PATH, g_szIniFile );
GetPrivateProfileString( "General directories", "PathRawSpecific2", g_stDefaultData.szRawSpecific2, g_stInitialData.szRawSpecific2, MAX_PATH, g_szIniFile );
GetPrivateProfileString( "General directories", "PathGameData", g_stDefaultData.szGameData, g_stInitialData.szGameData, MAX_PATH, g_szIniFile );
GetPrivateProfileString( "General directories", "PathGameSpecific1", g_stDefaultData.szGameSpecific1, g_stInitialData.szGameSpecific1, MAX_PATH, g_szIniFile );
GetPrivateProfileString( "General directories", "PathGameSpecific2", g_stDefaultData.szGameSpecific2, g_stInitialData.szGameSpecific2, MAX_PATH, g_szIniFile );
GetPrivateProfileString( "MainOptions", "Version", g_stDefaultData.szVersion, g_stInitialData.szVersion, MAX_PATH, g_szIniFile );
GetPrivateProfileString( "SpecificFiles", "Family", g_stDefaultData.szFamily, g_stInitialData.szFamily, MAX_PATH, g_szIniFile );
GetPrivateProfileString( "Configurations", "ConfigDirs", g_stDefaultData.szConfDirs, g_stInitialData.szConfDirs, MAX_PATH, g_szIniFile );
GetPrivateProfileString( "Configurations", "ConfigSelects", g_stDefaultData.szConfSelects, g_stInitialData.szConfSelects, MAX_PATH, g_szIniFile );
GetPrivateProfileString( "Configurations", "ConfigOptions", g_stDefaultData.szConfOptions, g_stInitialData.szConfOptions, MAX_PATH, g_szIniFile );
// set executable name, local path, Game Data path, RawData path, Textures path, Default path
HANDLE hHandle;
WIN32_FIND_DATA stFindFileData;
memset(&stFindFileData,0,sizeof(stFindFileData));
hHandle = FindFirstFile(g_szIniFile, &stFindFileData);
//return a boolean for telling if some files *.* exists in the directory or not
if( hHandle == INVALID_HANDLE_VALUE)
{ char _szMessage[50];
sprintf(_szMessage, "The %s file does not exist, so the datas will be taken from the Default structure!", g_szIniFile);
AfxMessageBox( _szMessage, MB_OK | MB_ICONSTOP );
}
FindClose(hHandle);
if (strcmp( g_stInitialData.szGameData, g_stDefaultData.szGameData) == 0)
strcpy( g_stInitialData.szGameData, g_stInitialData.szTempGameData);
if (strcmp( g_stInitialData.szRawData, g_stDefaultData.szRawData) == 0)
strcpy( g_stInitialData.szRawData, g_stInitialData.szTempRawData);
if (strcmp( g_stInitialData.szTextures, g_stDefaultData.szTextures) == 0)
strcpy( g_stInitialData.szTextures, g_stInitialData.szTempTextures);
if (strcmp( g_stInitialData.szDefault, g_stDefaultData.szDefault) == 0)
strcpy( g_stInitialData.szDefault, g_stInitialData.szTempDefault);
if (strcmp( g_stInitialData.szVersion, g_stDefaultData.szVersion) == 0)
strcpy( g_stInitialData.szVersion, g_stInitialData.szTempVersion);
if (strcmp( g_stInitialData.szModifLst, g_stDefaultData.szModifLst) == 0)
strcpy( g_stInitialData.szModifLst, g_stInitialData.szTempModifLst);
if (strcmp( g_stInitialData.szGameSpecific1, g_stDefaultData.szGameSpecific1) == 0)
strcpy( g_stInitialData.szGameSpecific1, g_stInitialData.szTempGameSpecific1);
if (strcmp( g_stInitialData.szGameSpecific2, g_stDefaultData.szGameSpecific2) == 0)
strcpy( g_stInitialData.szGameSpecific2, g_stInitialData.szTempGameSpecific2);
if (strcmp( g_stInitialData.szRawSpecific1, g_stDefaultData.szRawSpecific1) == 0)
strcpy( g_stInitialData.szRawSpecific1, g_stInitialData.szTempRawSpecific1);
if (strcmp( g_stInitialData.szRawSpecific2, g_stDefaultData.szRawSpecific2) == 0)
strcpy( g_stInitialData.szRawSpecific2, g_stInitialData.szTempRawSpecific2);
if (strcmp( g_stInitialData.szFamily, g_stDefaultData.szFamily) == 0)
strcpy( g_stInitialData.szFamily, g_stInitialData.szTempFamily);
if (strcmp( g_stInitialData.szRawSp1, g_stDefaultData.szRawSp1) == 0)
strcpy( g_stInitialData.szRawSp1, g_stInitialData.szTempRawSp1);
if (strcmp( g_stInitialData.szRawSp2, g_stDefaultData.szRawSp2) == 0)
strcpy( g_stInitialData.szRawSp2, g_stInitialData.szTempRawSp2);
if (strcmp( g_stInitialData.szGameSp1, g_stDefaultData.szGameSp1) == 0)
strcpy( g_stInitialData.szGameSp1, g_stInitialData.szTempGameSp1);
if (strcmp( g_stInitialData.szGameSp2, g_stDefaultData.szGameSp2) == 0)
strcpy( g_stInitialData.szGameSp2, g_stInitialData.szTempGameSp2);
if (strcmp( g_stInitialData.szConfDirs, g_stDefaultData.szConfDirs) == 0)
strcpy( g_stInitialData.szConfDirs, g_stInitialData.szTempConfDirs);
if (strcmp( g_stInitialData.szConfSelects, g_stDefaultData.szConfSelects) == 0)
strcpy( g_stInitialData.szConfSelects, g_stInitialData.szTempConfSelects);
if (strcmp( g_stInitialData.szConfOptions, g_stDefaultData.szConfOptions) == 0)
strcpy( g_stInitialData.szConfOptions, g_stInitialData.szTempConfOptions);
g_bRaymanII = stricmp(g_stInitialData.szVersion, "Rayman");
// Get the position and the size of the main window
fn_IniData_vGetWindowPosSize();
// Get the options
char szOption[10];
// main options
GetPrivateProfileString( "MainOptions", "UpdateLst", "FALSE", szOption, 10, g_szIniFile );
g_bModifLst = !stricmp(szOption, "TRUE");
GetPrivateProfileString( "MainOptions", "IgnoreMdf", "FALSE", szOption, 10, g_szIniFile );
g_bEraseMdf = !stricmp(szOption, "TRUE");
// ignore options
GetPrivateProfileString( "Options", "IgnoreZoo", "TRUE", szOption, 10, g_szIniFile );
g_bIgnoreZoo = stricmp(szOption, "FALSE");
GetPrivateProfileString( "Options", "IgnoreSct", "TRUE", szOption, 10, g_szIniFile );
g_bIgnoreSct = stricmp(szOption, "FALSE");
GetPrivateProfileString( "Options", "IgnoreSpo", "TRUE", szOption, 10, g_szIniFile );
g_bIgnoreSpo = stricmp(szOption, "FALSE");
GetPrivateProfileString( "Options", "IgnoreGmt", "TRUE", szOption, 10, g_szIniFile );
g_bIgnoreGmt = stricmp(szOption, "FALSE");
GetPrivateProfileString( "Options", "IgnoreTex", "TRUE", szOption, 10, g_szIniFile );
g_bIgnoreTex = stricmp(szOption, "FALSE");
GetPrivateProfileString( "Options", "IgnoreMod", "TRUE", szOption, 10, g_szIniFile );
g_bEraseMdf = stricmp(szOption, "FALSE");
// conversion options
GetPrivateProfileString( "Conversion", "CopyAnims", "TRUE", szOption, 10, g_szIniFile );
g_bCopyAnims = stricmp(szOption, "FALSE");
GetPrivateProfileString( "Conversion", "CopyTextures", "TRUE", szOption, 10, g_szIniFile );
g_bCopyTextures = stricmp(szOption, "FALSE");
GetPrivateProfileString( "Conversion", "GenerateRLI", "TRUE", szOption, 10, g_szIniFile );
g_bGenerateRLI = stricmp(szOption, "FALSE");
GetPrivateProfileString( "Conversion", "UpdateGameDSC", "TRUE", szOption, 10, g_szIniFile );
g_bUpdateGameDSC = stricmp(szOption, "FALSE");
GetPrivateProfileString( "Conversion", "CreateBasicFamily", "FALSE", szOption, 10, g_szIniFile );
g_bCreateBasicFamily = !stricmp(szOption, "TRUE");
// erase options
GetPrivateProfileString( "Erase", "EraseDuplicated", "FALSE", szOption, 10, g_szIniFile );
g_bEraseDuplicated = !stricmp(szOption, "TRUE");
GetPrivateProfileString( "Erase", "EraseUnused", "FALSE", szOption, 10, g_szIniFile );
g_bEraseUnused = !stricmp(szOption, "TRUE");
// family options
GetPrivateProfileString( "Family", "CommonFamily", "TRUE", szOption, 10, g_szIniFile );
g_bCommonFamily = stricmp(szOption, "FALSE");
GetPrivateProfileString( "Family", "SpecificFamily", "TRUE", szOption, 10, g_szIniFile );
g_bSpecificFamily = stricmp(szOption, "FALSE");
GetPrivateProfileString( "Family", "AskFamily", "TRUE", szOption, 10, g_szIniFile );
g_bAskFamily = stricmp(szOption, "FALSE");
}
/****************************************************************************
* Description: Get data from the Configs.ini file
*
* Parameters: _bFirst : TRUE if first time
* szTag : name of the config
*---------------------------------------------------------------------------
* Revision date: Author:
*****************************************************************************/
void fn_IniData_vGetDatasFromConfigDirsFile( BOOL _bFirst, char *szTag )
{
if (_bFirst)
{
GetCurrentDirectory( MAX_PATH, g_szIniConfDirFile );
if (g_szIniConfDirFile[strlen(g_szIniConfDirFile) - 1] != '\\')
strcat( g_szIniConfDirFile, "\\");
strcat( g_szIniConfDirFile, C_szIniConfDirFile );
// set all ini data with default data
memcpy( &g_stInitialDirData, &g_stDefaultDirData, sizeof( tdstInitialDirValue ) );
}
GetPrivateProfileString( szTag, "Anims", g_stDefaultDirData.szAnims, g_stInitialDirData.szAnims, MAX_PATH, g_szIniConfDirFile );
GetPrivateProfileString( szTag, "Banks", g_stDefaultDirData.szBanks, g_stInitialDirData.szBanks, MAX_PATH, g_szIniConfDirFile );
GetPrivateProfileString( szTag, "Classes", g_stDefaultDirData.szClasses, g_stInitialDirData.szClasses, MAX_PATH, g_szIniConfDirFile );
GetPrivateProfileString( szTag, "Families", g_stDefaultDirData.szFamilies, g_stInitialDirData.szFamilies, MAX_PATH, g_szIniConfDirFile );
GetPrivateProfileString( szTag, "Levels", g_stDefaultDirData.szLevels, g_stInitialDirData.szLevels, MAX_PATH, g_szIniConfDirFile );
GetPrivateProfileString( szTag, "Textures", g_stDefaultDirData.szTextures, g_stInitialDirData.szTextures, MAX_PATH, g_szIniConfDirFile );
HANDLE hHandle;
WIN32_FIND_DATA stFindFileData;
memset(&stFindFileData,0,sizeof(stFindFileData));
hHandle = FindFirstFile(g_szIniConfDirFile, &stFindFileData);
//return a boolean for telling if some files *.* exists in the directory or not
if( hHandle == INVALID_HANDLE_VALUE)
{ char _szMessage[50];
sprintf(_szMessage, "The %s file does not exist, so the datas will be taken from the Default structure!", g_szIniConfDirFile);
AfxMessageBox( _szMessage, MB_OK | MB_ICONSTOP );
}
FindClose(hHandle);
if (strcmp( g_stInitialDirData.szAnims, g_stDefaultDirData.szAnims) == 0)
strcpy( g_stInitialDirData.szAnims, g_stInitialDirData.szTempAnims);
if (strcmp( g_stInitialDirData.szBanks, g_stDefaultDirData.szBanks) == 0)
strcpy( g_stInitialDirData.szBanks, g_stInitialDirData.szTempBanks);
if (strcmp( g_stInitialDirData.szClasses, g_stDefaultDirData.szClasses) == 0)
strcpy( g_stInitialDirData.szClasses, g_stInitialDirData.szTempClasses);
if (strcmp( g_stInitialDirData.szFamilies, g_stDefaultDirData.szFamilies) == 0)
strcpy( g_stInitialDirData.szFamilies, g_stInitialDirData.szTempFamilies);
if (strcmp( g_stInitialDirData.szLevels, g_stDefaultDirData.szLevels) == 0)
strcpy( g_stInitialDirData.szLevels, g_stInitialDirData.szTempLevels);
if (strcmp( g_stInitialDirData.szTextures, g_stDefaultDirData.szTextures) == 0)
strcpy( g_stInitialDirData.szTextures, g_stInitialDirData.szTempTextures);
}
/****************************************************************************
* Description: Set the Config entry in the GIData.ini file
*
* Parameters: _szPath : names of the configs ("Name1,Name2,Name3,...")
*---------------------------------------------------------------------------
* Revision date: Author:
*****************************************************************************/
void fn_IniData_vSetConfigDirNames( char *_szPath )
{
if (_access( g_szIniFile, 2) == -1)
_chmod ( g_szIniFile, _S_IWRITE );
WritePrivateProfileString( "Configurations", "ConfigDirs", _szPath, g_szIniFile );
}
/****************************************************************************
* Description: Set the dir entry in the Configs.ini file
*
* Parameters: szConf : name of the config
* szDirName : name of the type
* zsPath : path to register
*---------------------------------------------------------------------------
* Revision date: Author:
*****************************************************************************/
void fn_IniData_vSetConfigDirPath( char* szConf, char *szDirName, char *_szPath )
{
if (_access( g_szIniConfDirFile, 2) == -1)
_chmod ( g_szIniConfDirFile, _S_IWRITE );
WritePrivateProfileString( szConf, szDirName, _szPath, g_szIniConfDirFile );
}
/****************************************************************************
* Description: Get data from ConfigControls file
*
* Parameters: _bFirst : TRUE if first time
* szTag : name of the config
*---------------------------------------------------------------------------
* Revision date: Author:
*****************************************************************************/
void fn_IniData_vGetDatasFromConfigSelectFile( BOOL _bFirst, char *szTag )
{
if (_bFirst)
{
GetCurrentDirectory( MAX_PATH, g_szIniConfSelectFile );
if (g_szIniConfSelectFile[strlen(g_szIniConfSelectFile) - 1] != '\\')
strcat( g_szIniConfSelectFile, "\\");
strcat( g_szIniConfSelectFile, C_szIniConfSelectFile );
// set all ini data with default data
memcpy( &g_stInitialSelectData, &g_stDefaultSelectData, sizeof( tdstInitialSelectValue ) );
}
GetPrivateProfileString( szTag, "Anims", g_stDefaultSelectData.szAnims, g_stInitialSelectData.szAnims, MAX_PATH, g_szIniConfSelectFile );
GetPrivateProfileString( szTag, "Banks", g_stDefaultSelectData.szBanks, g_stInitialSelectData.szBanks, MAX_PATH, g_szIniConfSelectFile );
GetPrivateProfileString( szTag, "Classes", g_stDefaultSelectData.szClasses, g_stInitialSelectData.szClasses, MAX_PATH, g_szIniConfSelectFile );
GetPrivateProfileString( szTag, "Families", g_stDefaultSelectData.szFamilies, g_stInitialSelectData.szFamilies, MAX_PATH, g_szIniConfSelectFile );
GetPrivateProfileString( szTag, "Levels", g_stDefaultSelectData.szLevels, g_stInitialSelectData.szLevels, MAX_PATH, g_szIniConfSelectFile );
GetPrivateProfileString( szTag, "Textures", g_stDefaultSelectData.szTextures, g_stInitialSelectData.szTextures, MAX_PATH, g_szIniConfSelectFile );
}
/****************************************************************************
* Description: Set the ConfigControls entry in the GIData.ini file
*
* Parameters: szPath : names of the configs ("Name1,Name2,Name3,...")
*---------------------------------------------------------------------------
* Revision date: Author:
*****************************************************************************/
void fn_IniData_vSetSelectConfigNames( char *_szPath )
{
if (_access( g_szIniFile, 2) == -1)
_chmod ( g_szIniFile, _S_IWRITE );
WritePrivateProfileString( "Configurations", "ConfigSelects", _szPath, g_szIniFile );
}
/****************************************************************************
* Description: Set the type entry in the ConfigSelects.ini file
*
* Parameters: szName : section name
* szType : name of the type
* szPath : names to register ("Name1,Name2,Name3,...")
*---------------------------------------------------------------------------
* Revision date: Author:
*****************************************************************************/
void fn_IniData_vSetSelectConfigValues( char *szName, char *szType, char *szPath )
{
if (_access( g_szIniConfOptionFile, 2) == -1)
_chmod ( g_szIniConfOptionFile, _S_IWRITE );
WritePrivateProfileString( szName, szType, szPath, g_szIniConfSelectFile );
}
/****************************************************************************
* Description: Get data from ConfigControls file
*
* Parameters: _bFirst : TRUE if first time
* szTag : name of the config
*---------------------------------------------------------------------------
* Revision date: Author:
*****************************************************************************/
void fn_IniData_vGetDatasFromConfigOptionsFile( BOOL _bFirst, char *szTag )
{
char szOption[10];
if (_bFirst)
{
GetCurrentDirectory( MAX_PATH, g_szIniConfOptionFile );
if (g_szIniConfOptionFile[strlen(g_szIniConfOptionFile) - 1] != '\\')
strcat( g_szIniConfOptionFile, "\\");
strcat( g_szIniConfOptionFile, C_szIniConfOptionFile );
// set all ini data with default data
memcpy( &g_stInitialOptionData, &g_stDefaultOptionData, sizeof( tdstInitialOptionValue ) );
}
GetPrivateProfileString( szTag, "IgnoreZoo", "TRUE", szOption, 10, g_szIniConfOptionFile );
g_bIgnoreZoo = stricmp(szOption, "FALSE");
GetPrivateProfileString( szTag, "IgnoreSct", "TRUE", szOption, 10, g_szIniConfOptionFile );
g_bIgnoreSct = stricmp(szOption, "FALSE");
GetPrivateProfileString( szTag, "IgnoreSpo", "TRUE", szOption, 10, g_szIniConfOptionFile );
g_bIgnoreSpo = stricmp(szOption, "FALSE");
GetPrivateProfileString( szTag, "IgnoreGmt", "TRUE", szOption, 10, g_szIniConfOptionFile );
g_bIgnoreGmt = stricmp(szOption, "FALSE");
GetPrivateProfileString( szTag, "IgnoreTex", "TRUE", szOption, 10, g_szIniConfOptionFile );
g_bIgnoreTex = stricmp(szOption, "FALSE");
GetPrivateProfileString( szTag, "CopyAnims", "TRUE", szOption, 10, g_szIniConfOptionFile );
g_bCopyAnims = stricmp(szOption, "FALSE");
GetPrivateProfileString( szTag, "CopyTextures", "TRUE", szOption, 10, g_szIniConfOptionFile );
g_bCopyTextures = stricmp(szOption, "FALSE");
GetPrivateProfileString( szTag, "GenerateRLI", "TRUE", szOption, 10, g_szIniConfOptionFile );
g_bGenerateRLI = stricmp(szOption, "FALSE");
GetPrivateProfileString( szTag, "UpdateGameDSC", "TRUE", szOption, 10, g_szIniConfOptionFile );
g_bUpdateGameDSC = stricmp(szOption, "FALSE");
GetPrivateProfileString( szTag, "CreateBasicFamily", "TRUE", szOption, 10, g_szIniConfOptionFile );
g_bCreateBasicFamily = stricmp(szOption, "FALSE");
GetPrivateProfileString( szTag, "EraseDuplicated", "TRUE", szOption, 10, g_szIniConfOptionFile );
g_bEraseDuplicated = stricmp(szOption, "FALSE");
GetPrivateProfileString( szTag, "EraseUnused", "TRUE", szOption, 10, g_szIniConfOptionFile );
g_bEraseUnused = stricmp(szOption, "FALSE");
GetPrivateProfileString( szTag, "CommonFamily", "TRUE", szOption, 10, g_szIniConfOptionFile );
g_bCommonFamily = stricmp(szOption, "FALSE");
GetPrivateProfileString( szTag, "SpecificFamily", "TRUE", szOption, 10, g_szIniConfOptionFile );
g_bSpecificFamily = stricmp(szOption, "FALSE");
GetPrivateProfileString( szTag, "AskFamily", "TRUE", szOption, 10, g_szIniConfOptionFile );
g_bAskFamily = stricmp(szOption, "FALSE");
}
/****************************************************************************
* Description: Set the ConfigControls entry in the GIData.ini file
*
* Parameters: szPath : names of the configs ("Name1,Name2,Name3,...")
*---------------------------------------------------------------------------
* Revision date: Author:
*****************************************************************************/
void fn_IniData_vSetOptionConfigNames( char *_szPath )
{
if (_access( g_szIniFile, 2) == -1)
_chmod ( g_szIniFile, _S_IWRITE );
WritePrivateProfileString( "Configurations", "ConfigOptions", _szPath, g_szIniFile );
}
/****************************************************************************
* Description: Set the entry in the ConfigControls.ini file
*
* Parameters: bSetIgnore : state of the control
* szName : name of the control
* szNew : section name
*---------------------------------------------------------------------------
* Revision date: Author:
*****************************************************************************/
void fn_IniData_vSetOptionConfigValues( BOOL bSetIgnore, char *szName, char *szNew )
{
if (_access( g_szIniConfOptionFile, 2) == -1)
_chmod ( g_szIniConfOptionFile, _S_IWRITE );
WritePrivateProfileString( szNew, szName, bSetIgnore ? "TRUE" : "FALSE", g_szIniConfOptionFile );
}
/****************************************************************************
* Description: Get the position and the size of the main window from the .ini file
*
* Parameters:
*---------------------------------------------------------------------------
* Revision date: Author:
*****************************************************************************/
void fn_IniData_vGetWindowPosSize( void )
{
char szString[100];
GetPrivateProfileString( "WinPref", "Main", "", szString, 100, g_szIniFile );
fn_IniData_vStudyRect( szString, &g_stWinPosSize.stMainPos );
M_vVerifyRect( (&g_stWinPosSize.stMainPos), C_iMainWindowWidth, C_iMainWindowHeight );
}
/****************************************************************************
* Description: Save the new position and size of the main window
*
* Parameters:
*---------------------------------------------------------------------------
* Revision date: Author:
*****************************************************************************/
void fn_IniData_vWriteWindowPosSize( void )
{
char szValue[50];
RECT *p_stRect;
if (_access( g_szIniFile, 2) == -1)
_chmod ( g_szIniFile, _S_IWRITE );
//writing the new values for the position and size of the main window
p_stRect = &g_stWinPosSize.stMainPos;
sprintf( szValue, "(%4d,%4d,%4d,%4d)", p_stRect->left, p_stRect->top, p_stRect->right, p_stRect->bottom );
WritePrivateProfileString( "WinPref", "Main ", szValue, g_szIniFile );
}
/****************************************************************************
* Description: Verify that the values are correct (can be integers)
*
* Parameters: _szString : string containing the values
* _p_stRect : result rectangle
*---------------------------------------------------------------------------
* Revision date: Author:
*****************************************************************************/
void fn_IniData_vStudyRect( char *_szString, RECT *_p_stRect )
{
char *p_szValue[5], *p_szEnd;
char cVal;
//study if the values can be integers
memset( _p_stRect, 0, sizeof( RECT ) );
if ( (p_szValue[0] = strchr(_szString, '(' )) == NULL)
return;
if ( (p_szValue[1] = strchr (++p_szValue[0], ',')) == NULL)
return;
if ( (p_szValue[2] = strchr (++p_szValue[1], ',')) == NULL)
return;
if ( (p_szValue[3] = strchr (++p_szValue[2], ',')) == NULL)
return;
p_szValue[3] ++;
p_szValue[4] = _szString + strlen( _szString );
for (cVal = 0; cVal < 4; cVal ++)
{
while ( !isdigit(*p_szValue[cVal]) )
{
if (p_szValue[cVal] == p_szValue[cVal+1])
return;
p_szValue[cVal]++;
}
p_szEnd = p_szValue[cVal] + 1;
while ( isdigit(*p_szEnd))
{
if (p_szEnd == p_szValue[cVal+1])
return;
p_szEnd++;
}
*p_szEnd = 0;
}
//convert to integer the ascii values
_p_stRect->left = atoi( p_szValue[0] );
_p_stRect->top = atoi( p_szValue[1] );
_p_stRect->right = atoi( p_szValue[2] );
_p_stRect->bottom = atoi( p_szValue[3] );
}
/****************************************************************************
* Description: Delete all the text in the rich edir box control
*
* Parameters: _oRichEdit : pointer to the control
*---------------------------------------------------------------------------
* Revision date: Author:
*****************************************************************************/
void fn_ComRes_vDeleteLines( CRichEditCtrl *_oRichEdit)
{
//delete the content of the rich edit control (result and command)
_oRichEdit->SetWindowText( "" );
}
/****************************************************************************
* Description: Delete all the text in the rich edir box control
*
* Parameters: szLine : line to write
* cLineType : type of the line (normal, warning, error)
* _oRichEdit : pointer to the control
* _stCharFormat : format of the line
*---------------------------------------------------------------------------
* Revision date: Author:
*****************************************************************************/
void fn_ComRes_vWriteLine( char *szLine, char cLineType ,CRichEditCtrl* _oRichEdit, CHARFORMAT* _stCharFormat)
{
long lOldLength;
long lNewLength;
long lSize;
_stCharFormat->crTextColor = gs_a_xLineColor[ cLineType ];
_stCharFormat->dwMask = CFM_BOLD | CFM_COLOR;
if (cLineType == C_ComRes_cTitleLine)
_stCharFormat->dwEffects |= CFE_BOLD;
else
_stCharFormat->dwEffects &= ~CFE_BOLD;
// write a line in the rich edit control
// with different color (red or black) for Ok or for Error
lOldLength = _oRichEdit->GetTextLength();
lNewLength = lOldLength + strlen( szLine );
lSize = _oRichEdit->GetLimitText();
if (lNewLength > lSize)
{
lSize += 10000;
_oRichEdit->LimitText( lSize );
}
_oRichEdit->SetSel( lOldLength, lOldLength );
_oRichEdit->ReplaceSel( szLine );
_oRichEdit->SetSel( lOldLength, -1 );
_oRichEdit->SetSelectionCharFormat( *_stCharFormat );
_oRichEdit->SetSel( lNewLength, lNewLength );
_oRichEdit->RedrawWindow(NULL,NULL, RDW_INVALIDATE |RDW_FRAME| RDW_UPDATENOW );
}

View File

@@ -0,0 +1,146 @@
/*=========================================================================
*
* MainFrm.cpp - implementation of the CMainFrame class
*
* Version 1.0
* Revision date
*
*=======================================================================*/
#include "stdafx.h"
#include "MainFrm.h"
#include "resource.h"
//--- Global statics --------------------------------------------------------
static UINT indicators[] =
{
ID_SEPARATOR,
ID_INDICATOR_CAPS,
ID_INDICATOR_NUM,
ID_INDICATOR_SCRL,
};
/////////////////////////////////////////////////////////////////////////////
// CMainFrame
IMPLEMENT_DYNCREATE(CMainFrame, CFrameWnd)
/****************************************************************************
* Description: message map
*
* Parameters:
*---------------------------------------------------------------------------
* Revision date: Author:
*****************************************************************************/
BEGIN_MESSAGE_MAP(CMainFrame, CFrameWnd)
//{{AFX_MSG_MAP(CMainFrame)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code !
ON_WM_CREATE()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/****************************************************************************
* Description: constructor
*
* Parameters:
*---------------------------------------------------------------------------
* Revision date: Author:
*****************************************************************************/
CMainFrame::CMainFrame()
{
// TODO: add member initialization code here
}
/****************************************************************************
* Description: destructor
*
* Parameters:
*---------------------------------------------------------------------------
* Revision date: Author:
*****************************************************************************/
CMainFrame::~CMainFrame()
{
}
int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CFrameWnd::OnCreate(lpCreateStruct) == -1)
return -1;
if (!m_wndToolBar.Create(this) ||
!m_wndToolBar.LoadToolBar(IDR_MAINFRAME))
{
TRACE0("Failed to create toolbar\n");
return -1; // fail to create
}
if (!m_wndStatusBar.Create(this) ||
!m_wndStatusBar.SetIndicators(indicators,
sizeof(indicators)/sizeof(UINT)))
{
TRACE0("Failed to create status bar\n");
return -1; // fail to create
}
// TODO: Remove this if you don't want tool tips or a resizeable toolbar
m_wndToolBar.SetBarStyle(m_wndToolBar.GetBarStyle() |
CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC);
// TODO: Delete these three lines if you don't want the toolbar to
// be dockable
m_wndToolBar.EnableDocking(CBRS_ALIGN_ANY);
EnableDocking(CBRS_ALIGN_ANY);
DockControlBar(&m_wndToolBar);
return 0;
}
/****************************************************************************
* Description: prepare the creation of the window (default)
*
* Parameters: cs : contains the initialisation parameters
*---------------------------------------------------------------------------
* Revision date: Author:
*****************************************************************************/
BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
return CFrameWnd::PreCreateWindow(cs);
}
#ifdef _DEBUG
/****************************************************************************
* Description: validity check (default)
*
* Parameters:
*---------------------------------------------------------------------------
* Revision date: Author:
*****************************************************************************/
void CMainFrame::AssertValid() const
{
CFrameWnd::AssertValid();
}
/****************************************************************************
* Description: dump function (default)
*
* Parameters: dc : dump context
*---------------------------------------------------------------------------
* Revision date: Author:
*****************************************************************************/
void CMainFrame::Dump(CDumpContext& dc) const
{
CFrameWnd::Dump(dc);
}
#endif //_DEBUG

View File

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