Add rayman2 source files
This commit is contained in:
86
Rayman_X/cpa/Appli/BigFileTool/BigFileTool.cpp
Normal file
86
Rayman_X/cpa/Appli/BigFileTool/BigFileTool.cpp
Normal file
@@ -0,0 +1,86 @@
|
||||
// BigFileTool.cpp : Defines the class behaviors for the application.
|
||||
//
|
||||
|
||||
#include "stdafx.h"
|
||||
#include "BigFileTool.h"
|
||||
#include "BigFileToolDlg.h"
|
||||
|
||||
#ifdef _DEBUG
|
||||
#define new DEBUG_NEW
|
||||
#undef THIS_FILE
|
||||
static char THIS_FILE[] = __FILE__;
|
||||
#endif
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CBigFileToolApp
|
||||
|
||||
BEGIN_MESSAGE_MAP(CBigFileToolApp, CWinApp)
|
||||
//{{AFX_MSG_MAP(CBigFileToolApp)
|
||||
// NOTE - the ClassWizard will add and remove mapping macros here.
|
||||
// DO NOT EDIT what you see in these blocks of generated code!
|
||||
//}}AFX_MSG
|
||||
ON_COMMAND(ID_HELP, CWinApp::OnHelp)
|
||||
END_MESSAGE_MAP()
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CBigFileToolApp construction
|
||||
|
||||
CBigFileToolApp::CBigFileToolApp()
|
||||
{
|
||||
// TODO: add construction code here,
|
||||
// Place all significant initialization in InitInstance
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// The one and only CBigFileToolApp object
|
||||
|
||||
CBigFileToolApp theApp;
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CBigFileToolApp initialization
|
||||
|
||||
BOOL CBigFileToolApp::InitInstance()
|
||||
{
|
||||
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
|
||||
|
||||
CBigFileToolDlg dlg;
|
||||
m_pMainWnd = &dlg;
|
||||
|
||||
int nResponse = dlg.DoModal();
|
||||
if (nResponse == IDOK)
|
||||
{
|
||||
// TODO: Place code here to handle when the dialog is
|
||||
// dismissed with OK
|
||||
iExitInstanceValue = 0;
|
||||
}
|
||||
else if (nResponse == IDCANCEL)
|
||||
{
|
||||
// TODO: Place code here to handle when the dialog is
|
||||
// dismissed with Cancel
|
||||
iExitInstanceValue = 1;
|
||||
}
|
||||
|
||||
// Since the dialog has been closed, return FALSE so that we exit the
|
||||
// application, rather than start the application's message pump.
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
int CBigFileToolApp::ExitInstance()
|
||||
{
|
||||
// TODO: Add your specialized code here and/or call the base class
|
||||
|
||||
CWinApp::ExitInstance();
|
||||
|
||||
return iExitInstanceValue;
|
||||
}
|
155
Rayman_X/cpa/Appli/BigFileTool/BigFileTool.dsp
Normal file
155
Rayman_X/cpa/Appli/BigFileTool/BigFileTool.dsp
Normal file
@@ -0,0 +1,155 @@
|
||||
# Microsoft Developer Studio Project File - Name="BigFileTool" - Package Owner=<4>
|
||||
# Microsoft Developer Studio Generated Build File, Format Version 5.00
|
||||
# ** DO NOT EDIT **
|
||||
|
||||
# TARGTYPE "Win32 (x86) Application" 0x0101
|
||||
|
||||
CFG=BigFileTool - 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 "BigFileTool.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 "BigFileTool.mak" CFG="BigFileTool - Win32 Debug"
|
||||
!MESSAGE
|
||||
!MESSAGE Possible choices for configuration are:
|
||||
!MESSAGE
|
||||
!MESSAGE "BigFileTool - Win32 Release" (based on "Win32 (x86) Application")
|
||||
!MESSAGE "BigFileTool - Win32 Debug" (based on "Win32 (x86) Application")
|
||||
!MESSAGE
|
||||
|
||||
# Begin Project
|
||||
# PROP Scc_ProjName ""$/cpa/Appli/BigFileTool", FIBBAAAA"
|
||||
# PROP Scc_LocalPath "."
|
||||
CPP=cl.exe
|
||||
MTL=midl.exe
|
||||
RSC=rc.exe
|
||||
|
||||
!IF "$(CFG)" == "BigFileTool - 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 /MD /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_AFXDLL" /Yu"stdafx.h" /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 0x40c /d "NDEBUG" /d "_AFXDLL"
|
||||
# ADD RSC /l 0x40c /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 /nologo /subsystem:windows /machine:I386
|
||||
|
||||
!ELSEIF "$(CFG)" == "BigFileTool - 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" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_AFXDLL" /D "USE_PROFILER" /Yu"stdafx.h" /FD /c
|
||||
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o NUL /win32
|
||||
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /o NUL /win32
|
||||
# ADD BASE RSC /l 0x40c /d "_DEBUG" /d "_AFXDLL"
|
||||
# ADD RSC /l 0x40c /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 /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"LIBCD" /nodefaultlib:"MSVCRT" /pdbtype:sept
|
||||
|
||||
!ENDIF
|
||||
|
||||
# Begin Target
|
||||
|
||||
# Name "BigFileTool - Win32 Release"
|
||||
# Name "BigFileTool - Win32 Debug"
|
||||
# Begin Group "Source Files"
|
||||
|
||||
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\BigFileTool.cpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\BigFileTool.rc
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\BigFileToolDlg.cpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\Scripts.cpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\StdAfx.cpp
|
||||
# ADD CPP /Yc"stdafx.h"
|
||||
# End Source File
|
||||
# End Group
|
||||
# Begin Group "Header Files"
|
||||
|
||||
# PROP Default_Filter "h;hpp;hxx;hm;inl"
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\BigFileTool.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\BigFileToolDlg.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\Resource.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\Scripts.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\StdAfx.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\BigFileTool.ico
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\res\BigFileTool.rc2
|
||||
# End Source File
|
||||
# End Group
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\ReadMe.txt
|
||||
# End Source File
|
||||
# End Target
|
||||
# End Project
|
37
Rayman_X/cpa/Appli/BigFileTool/BigFileTool.dsw
Normal file
37
Rayman_X/cpa/Appli/BigFileTool/BigFileTool.dsw
Normal file
@@ -0,0 +1,37 @@
|
||||
Microsoft Developer Studio Workspace File, Format Version 5.00
|
||||
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
|
||||
|
||||
###############################################################################
|
||||
|
||||
Project: "BigFileTool"=.\BigFileTool.dsp - Package Owner=<4>
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
begin source code control
|
||||
"$/cpa/Appli/BigFileTool", FIBBAAAA
|
||||
.
|
||||
end source code control
|
||||
}}}
|
||||
|
||||
Package=<4>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
||||
Global:
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
begin source code control
|
||||
"$/cpa/Appli/BigFileTool", FIBBAAAA
|
||||
.
|
||||
end source code control
|
||||
}}}
|
||||
|
||||
Package=<3>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
53
Rayman_X/cpa/Appli/BigFileTool/BigFileTool.h
Normal file
53
Rayman_X/cpa/Appli/BigFileTool/BigFileTool.h
Normal file
@@ -0,0 +1,53 @@
|
||||
// BigFileTool.h : main header file for the BIGFILETOOL application
|
||||
//
|
||||
|
||||
#if !defined(AFX_BIGFILETOOL_H__CED7419A_E030_11D2_BB2B_00E02921BF64__INCLUDED_)
|
||||
#define AFX_BIGFILETOOL_H__CED7419A_E030_11D2_BB2B_00E02921BF64__INCLUDED_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
|
||||
#ifndef __AFXWIN_H__
|
||||
#error include 'stdafx.h' before including this file for PCH
|
||||
#endif
|
||||
|
||||
#include "resource.h" // main symbols
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CBigFileToolApp:
|
||||
// See BigFileTool.cpp for the implementation of this class
|
||||
//
|
||||
|
||||
class CBigFileToolApp : public CWinApp
|
||||
{
|
||||
public:
|
||||
CBigFileToolApp();
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(CBigFileToolApp)
|
||||
public:
|
||||
virtual BOOL InitInstance();
|
||||
virtual int ExitInstance();
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
// Implementation
|
||||
|
||||
//{{AFX_MSG(CBigFileToolApp)
|
||||
// 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()
|
||||
|
||||
protected:
|
||||
int iExitInstanceValue;
|
||||
};
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
//{{AFX_INSERT_LOCATION}}
|
||||
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
|
||||
|
||||
#endif // !defined(AFX_BIGFILETOOL_H__CED7419A_E030_11D2_BB2B_00E02921BF64__INCLUDED_)
|
237
Rayman_X/cpa/Appli/BigFileTool/BigFileTool.rc
Normal file
237
Rayman_X/cpa/Appli/BigFileTool/BigFileTool.rc
Normal file
@@ -0,0 +1,237 @@
|
||||
//Microsoft Developer Studio generated resource script.
|
||||
//
|
||||
#include "resource.h"
|
||||
|
||||
#define APSTUDIO_READONLY_SYMBOLS
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Generated from the TEXTINCLUDE 2 resource.
|
||||
//
|
||||
#include "afxres.h"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#undef APSTUDIO_READONLY_SYMBOLS
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// English (U.S.) resources
|
||||
|
||||
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
|
||||
#ifdef _WIN32
|
||||
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
||||
#pragma code_page(1252)
|
||||
#endif //_WIN32
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Dialog
|
||||
//
|
||||
|
||||
IDD_ABOUTBOX DIALOG DISCARDABLE 0, 0, 217, 55
|
||||
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
||||
CAPTION "About BigFileTool"
|
||||
FONT 8, "MS Sans Serif"
|
||||
BEGIN
|
||||
ICON IDR_MAINFRAME,IDC_STATIC,11,17,20,20
|
||||
LTEXT "BigFileTool Version 1.0",IDC_STATIC,40,10,119,8,
|
||||
SS_NOPREFIX
|
||||
LTEXT "Copyright (C) 1999",IDC_STATIC,40,25,119,8
|
||||
DEFPUSHBUTTON "OK",IDOK,178,7,32,14,WS_GROUP
|
||||
END
|
||||
|
||||
IDD_BIGFILETOOL_DIALOG DIALOGEX 0, 0, 336, 396
|
||||
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION
|
||||
EXSTYLE WS_EX_TOOLWINDOW | WS_EX_APPWINDOW
|
||||
CAPTION "Big File Tool"
|
||||
FONT 8, "MS Sans Serif"
|
||||
BEGIN
|
||||
DEFPUSHBUTTON "Exit",IDOK,279,375,50,14
|
||||
LTEXT "Binary GameData Path",IDC_STATIC,7,39,73,8
|
||||
EDITTEXT IDC_EDIT_DATAPATH,7,50,299,14,ES_AUTOHSCROLL
|
||||
PUSHBUTTON "...",IDC_BUTTON_BROWSE,313,51,16,14
|
||||
LTEXT "Size",IDC_STATIC,7,75,14,8
|
||||
EDITTEXT IDC_EDIT_SIZE,26,72,40,14,ES_AUTOHSCROLL
|
||||
CONTROL "Spin1",IDC_SPIN_SIZE,"msctls_updown32",UDS_SETBUDDYINT |
|
||||
UDS_ALIGNRIGHT | UDS_AUTOBUDDY | UDS_ARROWKEYS,58,73,7,
|
||||
14
|
||||
LISTBOX IDC_LIST_WORK,7,96,322,253,LBS_USETABSTOPS |
|
||||
LBS_NOINTEGRALHEIGHT | WS_VSCROLL | WS_TABSTOP
|
||||
PUSHBUTTON "Run",IDC_BUTTON_RUN,7,375,50,14
|
||||
LTEXT "Script GameData Path",IDC_STATIC,7,7,72,8
|
||||
EDITTEXT IDC_EDIT_SCRIPTDATAPATH,7,18,299,14,ES_AUTOHSCROLL
|
||||
PUSHBUTTON "...",IDC_BUTTON_BROWSESCRIPT,313,19,16,14
|
||||
CONTROL "Progress1",IDC_PROGRESS,"msctls_progress32",0x0,7,355,
|
||||
322,14,WS_EX_CLIENTEDGE | WS_EX_STATICEDGE
|
||||
LTEXT "Mo",IDC_STATIC,70,75,11,8
|
||||
CONTROL "Delete rt* files",IDC_CHECK_DELETEFILES,"Button",
|
||||
BS_AUTOCHECKBOX | WS_TABSTOP,269,75,59,10
|
||||
CONTROL "Generate Info Files",IDC_CHECK_INFO,"Button",
|
||||
BS_AUTOCHECKBOX | WS_TABSTOP,93,75,75,10
|
||||
CONTROL "Update StartPrg.ini",IDC_CHECK_STARTPRG,"Button",
|
||||
BS_AUTOCHECKBOX | WS_TABSTOP,181,75,75,10
|
||||
END
|
||||
|
||||
|
||||
#ifndef _MAC
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Version
|
||||
//
|
||||
|
||||
VS_VERSION_INFO VERSIONINFO
|
||||
FILEVERSION 1,0,0,1
|
||||
PRODUCTVERSION 1,0,0,1
|
||||
FILEFLAGSMASK 0x3fL
|
||||
#ifdef _DEBUG
|
||||
FILEFLAGS 0x1L
|
||||
#else
|
||||
FILEFLAGS 0x0L
|
||||
#endif
|
||||
FILEOS 0x4L
|
||||
FILETYPE 0x1L
|
||||
FILESUBTYPE 0x0L
|
||||
BEGIN
|
||||
BLOCK "StringFileInfo"
|
||||
BEGIN
|
||||
BLOCK "040904B0"
|
||||
BEGIN
|
||||
VALUE "CompanyName", "\0"
|
||||
VALUE "FileDescription", "BigFileTool MFC Application\0"
|
||||
VALUE "FileVersion", "1, 0, 0, 1\0"
|
||||
VALUE "InternalName", "BigFileTool\0"
|
||||
VALUE "LegalCopyright", "Copyright (C) 1999\0"
|
||||
VALUE "LegalTrademarks", "\0"
|
||||
VALUE "OriginalFilename", "BigFileTool.EXE\0"
|
||||
VALUE "ProductName", "BigFileTool Application\0"
|
||||
VALUE "ProductVersion", "1, 0, 0, 1\0"
|
||||
END
|
||||
END
|
||||
BLOCK "VarFileInfo"
|
||||
BEGIN
|
||||
VALUE "Translation", 0x409, 1200
|
||||
END
|
||||
END
|
||||
|
||||
#endif // !_MAC
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// DESIGNINFO
|
||||
//
|
||||
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
GUIDELINES DESIGNINFO DISCARDABLE
|
||||
BEGIN
|
||||
IDD_ABOUTBOX, DIALOG
|
||||
BEGIN
|
||||
LEFTMARGIN, 7
|
||||
RIGHTMARGIN, 210
|
||||
TOPMARGIN, 7
|
||||
BOTTOMMARGIN, 48
|
||||
END
|
||||
|
||||
IDD_BIGFILETOOL_DIALOG, DIALOG
|
||||
BEGIN
|
||||
LEFTMARGIN, 7
|
||||
RIGHTMARGIN, 329
|
||||
TOPMARGIN, 7
|
||||
BOTTOMMARGIN, 389
|
||||
END
|
||||
END
|
||||
#endif // APSTUDIO_INVOKED
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// String Table
|
||||
//
|
||||
|
||||
STRINGTABLE DISCARDABLE
|
||||
BEGIN
|
||||
IDS_ABOUTBOX "&About BigFileTool..."
|
||||
END
|
||||
|
||||
#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
|
||||
|
||||
#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 ""res\\BigFileTool.rc2"" // non-Microsoft Visual C++ edited resources\r\n"
|
||||
"#include ""afxres.rc"" // Standard components\r\n"
|
||||
"#endif\0"
|
||||
END
|
||||
|
||||
#endif // APSTUDIO_INVOKED
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Icon
|
||||
//
|
||||
|
||||
// Icon with lowest ID value placed first to ensure application icon
|
||||
// remains consistent on all systems.
|
||||
IDR_MAINFRAME ICON DISCARDABLE "res\\BigFileTool.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 "res\BigFileTool.rc2" // non-Microsoft Visual C++ edited resources
|
||||
#include "afxres.rc" // Standard components
|
||||
#endif
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#endif // not APSTUDIO_INVOKED
|
||||
|
1974
Rayman_X/cpa/Appli/BigFileTool/BigFileToolDlg.cpp
Normal file
1974
Rayman_X/cpa/Appli/BigFileTool/BigFileToolDlg.cpp
Normal file
File diff suppressed because it is too large
Load Diff
114
Rayman_X/cpa/Appli/BigFileTool/BigFileToolDlg.h
Normal file
114
Rayman_X/cpa/Appli/BigFileTool/BigFileToolDlg.h
Normal file
@@ -0,0 +1,114 @@
|
||||
// BigFileToolDlg.h : header file
|
||||
//
|
||||
|
||||
#if !defined(AFX_BIGFILETOOLDLG_H__CED7419C_E030_11D2_BB2B_00E02921BF64__INCLUDED_)
|
||||
#define AFX_BIGFILETOOLDLG_H__CED7419C_E030_11D2_BB2B_00E02921BF64__INCLUDED_
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER >= 1000
|
||||
|
||||
#include <afxtempl.h>
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
typedef struct tdstFileInfo_
|
||||
{
|
||||
char szFileName[64];
|
||||
DWORD dwSize;
|
||||
DWORD dwMapNumber;
|
||||
} tdstFileInfo;
|
||||
|
||||
typedef struct tdstMixUpInfo_
|
||||
{
|
||||
POSITION xFileInfoPosition;
|
||||
DWORD dwOccur;
|
||||
DWORD dwOffSet;
|
||||
DWORD dwSize;
|
||||
DWORD dwMapNumber;
|
||||
char *p_cFileName;
|
||||
} tdstMixUpInfo;
|
||||
|
||||
typedef CList<tdstFileInfo*,tdstFileInfo*> CListOfFileInfo;
|
||||
|
||||
typedef struct tdstHeaderInfo_
|
||||
{
|
||||
DWORD dwOccur;
|
||||
DWORD dwOffSet;
|
||||
} tdstHeaderInfo;
|
||||
|
||||
typedef struct tdstBigFileInfo_
|
||||
{
|
||||
DWORD dwNbMap;
|
||||
DWORD dwNbFile;
|
||||
DWORD dwNbOccur;
|
||||
DWORD dwMaxFileSize;
|
||||
DWORD dwBigHeaderSize;
|
||||
DWORD dwFirstHeaderSize;
|
||||
DWORD dwHeaderSize;
|
||||
DWORD dwHeaderStep;
|
||||
DWORD dwTotalSize;
|
||||
DWORD dwTotalSector;
|
||||
} tdstBigFileInfo;
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CBigFileToolDlg dialog
|
||||
class CBigFileToolDlg : public CDialog
|
||||
{
|
||||
// Construction
|
||||
public:
|
||||
void WriteINIFile();
|
||||
CBigFileToolDlg(CWnd* pParent = NULL); // standard constructor
|
||||
|
||||
// Dialog Data
|
||||
//{{AFX_DATA(CBigFileToolDlg)
|
||||
enum { IDD = IDD_BIGFILETOOL_DIALOG };
|
||||
CProgressCtrl m_Ctrl_ProgressBar;
|
||||
//}}AFX_DATA
|
||||
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(CBigFileToolDlg)
|
||||
protected:
|
||||
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
// Implementation
|
||||
protected:
|
||||
void UpdateStartPrg();
|
||||
void InitWithCommandLine ();
|
||||
void DeleteFiles (char *_szDataPath , CListOfFileInfo *_p_oList);
|
||||
void ReadINIFile();
|
||||
BOOL WriteFiles (char *_szDataPath , HANDLE hFile, CListOfFileInfo *_p_oFIList, tdstMixUpInfo *_a_MUITab, tdstBigFileInfo *p_stBFI);
|
||||
BOOL WriteHeader (HANDLE hFile, CListOfFileInfo *_p_oFIList, tdstMixUpInfo *_a_MUITab, tdstBigFileInfo *p_stBFI);
|
||||
BOOL MixUpFiles(DWORD _dwBigFileSize , CListOfFileInfo *_p_oFIList, tdstMixUpInfo **_a_MUITab, tdstBigFileInfo *p_stBFI);
|
||||
void ReadListOfFiles(char *_szDataPath , CStringList *_p_oMapList , CListOfFileInfo *_p_oFIList);
|
||||
BOOL Run ();
|
||||
void OnBrowse(UINT nID);
|
||||
void PeekAndPump();
|
||||
|
||||
BOOL MixUpFilesWithExplodedHeader(DWORD _dwBigFileSize , CListOfFileInfo *_p_oFIList , tdstMixUpInfo **_a_MUITab, tdstBigFileInfo *p_stBFI, tdstHeaderInfo **_a_HITab);
|
||||
BOOL WriteBigFileWithExplodedHeader(char *_szDataPath , HANDLE hFile, CListOfFileInfo *_p_oFIList, tdstMixUpInfo *_a_MUITab, tdstBigFileInfo *p_stBFI, tdstHeaderInfo *_a_HITab);
|
||||
|
||||
HICON m_hIcon;
|
||||
BOOL m_bGenerateInfoFiles;
|
||||
BOOL m_bAutoRun;
|
||||
BOOL m_bUpdateStartPrg;
|
||||
CString m_csErrorMessage;
|
||||
|
||||
// Generated message map functions
|
||||
//{{AFX_MSG(CBigFileToolDlg)
|
||||
virtual BOOL OnInitDialog();
|
||||
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
|
||||
afx_msg void OnPaint();
|
||||
afx_msg HCURSOR OnQueryDragIcon();
|
||||
afx_msg void OnButtonBrowse();
|
||||
virtual void OnCancel();
|
||||
virtual void OnOK();
|
||||
afx_msg void OnButtonRun();
|
||||
afx_msg void OnButtonBrowsescript();
|
||||
//}}AFX_MSG
|
||||
DECLARE_MESSAGE_MAP()
|
||||
};
|
||||
|
||||
//{{AFX_INSERT_LOCATION}}
|
||||
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
|
||||
|
||||
#endif // !defined(AFX_BIGFILETOOLDLG_H__CED7419C_E030_11D2_BB2B_00E02921BF64__INCLUDED_)
|
103
Rayman_X/cpa/Appli/BigFileTool/Scripts.cpp
Normal file
103
Rayman_X/cpa/Appli/BigFileTool/Scripts.cpp
Normal file
@@ -0,0 +1,103 @@
|
||||
|
||||
#include "stdafx.h"
|
||||
//#include "GlobalData.h"
|
||||
#include "/cpa/public/scr.h"
|
||||
|
||||
#define C_GrandChildSection ( 2)
|
||||
#define C_ChildSection ( 1)
|
||||
#define C_ThisSection ( 0)
|
||||
#define C_ParentSection (-1)
|
||||
#define C_GrandParentSection (-2)
|
||||
|
||||
#define C_GrandChildContext ( 2)
|
||||
#define C_ChildContext ( 1)
|
||||
#define C_ThisContext ( 0)
|
||||
#define C_ParentContext (-1)
|
||||
#define C_GrandParentContext (-2)
|
||||
|
||||
#define M_IsTitle (_eAction==SCR_EA_Anl_BeginSection)
|
||||
#define M_IsEnd (_eAction==SCR_EA_Anl_EndSection)
|
||||
#define M_IsBegSubSection (_eAction==SCR_EA_Anl_BeginSubSection)
|
||||
#define M_IsEndSubSection (_eAction==SCR_EA_Anl_EndSubSection)
|
||||
#define M_IsEntry (_eAction==SCR_EA_Anl_Entry)
|
||||
#define M_ActionIs(szActionAsked) (!strcmpi(_p_szName,szActionAsked))
|
||||
|
||||
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
// Callback function to analyse the section "LevelNames" in game.dsc
|
||||
SCR_tde_Anl_ReturnValue fn_eScriptCallBackFirstLevel(SCR_tdst_File_Description *_p_stFile,char *_p_szName,char *_ap_szParams[],SCR_tde_Anl_Action _eAction)
|
||||
{
|
||||
SCR_tde_Anl_ReturnValue eReturnValue = SCR_ERV_Anl_NormalReturn;
|
||||
CStringList *_p_oList;
|
||||
|
||||
_p_stFile=_p_stFile;
|
||||
|
||||
if (M_IsEntry)
|
||||
{
|
||||
SCR_M_RdL0_GetContextLong(C_ThisContext,0,CStringList*,_p_oList);
|
||||
|
||||
if (M_ActionIs("LevelName"))
|
||||
{
|
||||
char *p_cDelimiter = strchr( _ap_szParams[0], '$' );
|
||||
if( p_cDelimiter ) *p_cDelimiter = 0;
|
||||
_p_oList -> AddTail (_ap_szParams[0]);
|
||||
}
|
||||
}
|
||||
|
||||
return(eReturnValue);
|
||||
}
|
||||
|
||||
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
// Init acp modules for script parsing.
|
||||
|
||||
unsigned long g_SCR_a9MemTable[9] = {0,0,0,0,0,0,0,0,0};
|
||||
|
||||
void fn_vInitScr()
|
||||
{
|
||||
Erm_M_InitErrMsg(Erm);
|
||||
Erm_M_InitErrMsg(Mmg);
|
||||
Mmg_fn_vFirstInitMmgModule(10);
|
||||
|
||||
SCR_fn_v_RdL0_Init();
|
||||
g_SCR_a9MemTable[1] = 1000000;
|
||||
SCR_fn_v_Mem_InitWithMemLevel(g_SCR_a9MemTable);
|
||||
SCR_fn_v_RdL0_RegisterCallback( "FirstLevelDescription", fn_eScriptCallBackFirstLevel, SCR_CRC_c_RdL0_ForSection );
|
||||
}
|
||||
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
|
||||
void fn_vDesinitScr()
|
||||
{
|
||||
// SCR_fn_v_RdL0_DeleteRegisterCallback( "FirstLevelDescription", SCR_CRC_c_RdL0_ForSection , );
|
||||
SCR_fn_v_RdL0_Close();
|
||||
Mmg_fn_vStopMmgModule();
|
||||
MMG_fn_vDesinitMemoryRasterDeclaration ();
|
||||
}
|
||||
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
// Analyse game.dsc
|
||||
BOOL fn_bReadGameDsc(char *_szDataPath , CStringList *_p_oList)
|
||||
{
|
||||
char szText[1024];
|
||||
char szFileName[512];
|
||||
char szSectionName[512];
|
||||
|
||||
// Compute long name of game.dsc
|
||||
sprintf( szFileName, "%sGame.dsc", _szDataPath );
|
||||
|
||||
// We need read acces on the file
|
||||
if( _access( szFileName, 04 ) == -1 )
|
||||
{
|
||||
sprintf( szText, "Can't read level list: '%s' is not accessible !\n(Does not exist or no read permission)", szFileName );
|
||||
AfxMessageBox( szText, MB_OK | MB_ICONSTOP );
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
// Analyse only the section describing the list of levels
|
||||
SCR_M_RdL0_SetContextLong(C_GrandChildContext, 0, (long)_p_oList);
|
||||
sprintf( szSectionName, "%s^FirstLevelDescription", szFileName );
|
||||
SCR_fnp_st_RdL0_AnalyseSection( szFileName, SCR_CDF_uw_Anl_ForceAnalyse );
|
||||
|
||||
return TRUE;
|
||||
}
|
8
Rayman_X/cpa/Appli/BigFileTool/Scripts.h
Normal file
8
Rayman_X/cpa/Appli/BigFileTool/Scripts.h
Normal file
@@ -0,0 +1,8 @@
|
||||
#if !defined(_SCRIPTS_H_)
|
||||
#define _SCRIPTS_H_
|
||||
|
||||
extern void fn_vInitScr();
|
||||
extern void fn_vDesinitScr();
|
||||
extern BOOL fn_bReadGameDsc(char *_szDataPath , CStringList *_p_oList);
|
||||
|
||||
#endif //_SCRIPTS_H_
|
6
Rayman_X/cpa/Appli/BigFileTool/StdAfx.cpp
Normal file
6
Rayman_X/cpa/Appli/BigFileTool/StdAfx.cpp
Normal file
@@ -0,0 +1,6 @@
|
||||
// stdafx.cpp : source file that includes just the standard includes
|
||||
// BigFileTool.pch will be the pre-compiled header
|
||||
// stdafx.obj will contain the pre-compiled type information
|
||||
|
||||
#include "stdafx.h"
|
||||
|
26
Rayman_X/cpa/Appli/BigFileTool/StdAfx.h
Normal file
26
Rayman_X/cpa/Appli/BigFileTool/StdAfx.h
Normal file
@@ -0,0 +1,26 @@
|
||||
// stdafx.h : include file for standard system include files,
|
||||
// or project specific include files that are used frequently, but
|
||||
// are changed infrequently
|
||||
//
|
||||
|
||||
#if !defined(AFX_STDAFX_H__CED7419E_E030_11D2_BB2B_00E02921BF64__INCLUDED_)
|
||||
#define AFX_STDAFX_H__CED7419E_E030_11D2_BB2B_00E02921BF64__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__CED7419E_E030_11D2_BB2B_00E02921BF64__INCLUDED_)
|
5
Rayman_X/cpa/Appli/BigFileTool/mssccprj.scc
Normal file
5
Rayman_X/cpa/Appli/BigFileTool/mssccprj.scc
Normal file
@@ -0,0 +1,5 @@
|
||||
SCC = This is a Source Code Control file
|
||||
|
||||
[BigFileTool.dsp]
|
||||
SCC_Aux_Path = "\\srvprojets-ma\Rayman4_DS\Versions\Rayman4DS\Tools"
|
||||
SCC_Project_Name = "$/CPA/Appli/BigFileTool", XAAAAAAA
|
BIN
Rayman_X/cpa/Appli/BigFileTool/res/BigFileTool.ico
Normal file
BIN
Rayman_X/cpa/Appli/BigFileTool/res/BigFileTool.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
13
Rayman_X/cpa/Appli/BigFileTool/res/BigFileTool.rc2
Normal file
13
Rayman_X/cpa/Appli/BigFileTool/res/BigFileTool.rc2
Normal file
@@ -0,0 +1,13 @@
|
||||
//
|
||||
// BIGFILETOOL.RC2 - resources Microsoft Visual C++ does not edit directly
|
||||
//
|
||||
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
#error this file is not editable by Microsoft Visual C++
|
||||
#endif //APSTUDIO_INVOKED
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Add manually edited resources here...
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
33
Rayman_X/cpa/Appli/BigFileTool/resource.h
Normal file
33
Rayman_X/cpa/Appli/BigFileTool/resource.h
Normal file
@@ -0,0 +1,33 @@
|
||||
//{{NO_DEPENDENCIES}}
|
||||
// Microsoft Developer Studio generated include file.
|
||||
// Used by BigFileTool.rc
|
||||
//
|
||||
#define IDM_ABOUTBOX 0x0010
|
||||
#define IDD_ABOUTBOX 100
|
||||
#define IDS_ABOUTBOX 101
|
||||
#define IDD_BIGFILETOOL_DIALOG 102
|
||||
#define IDR_MAINFRAME 128
|
||||
#define IDC_EDIT_DATAPATH 1000
|
||||
#define IDC_BUTTON_BROWSE 1001
|
||||
#define IDC_EDIT_SIZE 1002
|
||||
#define IDC_SPIN_SIZE 1003
|
||||
#define IDC_LIST_WORK 1004
|
||||
#define IDC_BUTTON_RUN 1005
|
||||
#define IDC_EDIT_SCRIPTDATAPATH 1006
|
||||
#define IDC_BUTTON_BROWSESCRIPT 1007
|
||||
#define IDC_PROGRESS 1008
|
||||
#define IDC_EDIT_BIGFILENAME 1009
|
||||
#define IDC_CHECK_DELETEFILES 1010
|
||||
#define IDC_CHECK_INFO 1011
|
||||
#define IDC_CHECK_STARTPRG 1012
|
||||
|
||||
// Next default values for new objects
|
||||
//
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
#ifndef APSTUDIO_READONLY_SYMBOLS
|
||||
#define _APS_NEXT_RESOURCE_VALUE 129
|
||||
#define _APS_NEXT_COMMAND_VALUE 32771
|
||||
#define _APS_NEXT_CONTROL_VALUE 1013
|
||||
#define _APS_NEXT_SYMED_VALUE 101
|
||||
#endif
|
||||
#endif
|
Reference in New Issue
Block a user