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,120 @@
# Microsoft Developer Studio Project File - Name="SIF" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 5.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Static Library" 0x0104
CFG=SIF - Win32 Script 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 "Sif.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 "Sif.mak" CFG="SIF - Win32 Script Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
!MESSAGE "SIF - Win32 Script Debug" (based on "Win32 (x86) Static Library")
!MESSAGE "SIF - Win32 Script Release" (based on "Win32 (x86) Static Library")
!MESSAGE
# Begin Project
# PROP Scc_ProjName ""$/cpa/tempgrp/SIF", FDEAAAAA"
# PROP Scc_LocalPath "."
CPP=cl.exe
!IF "$(CFG)" == "SIF - Win32 Script Debug"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
# PROP BASE Output_Dir "Script Debug"
# PROP BASE Intermediate_Dir "Script Debug"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 1
# PROP Output_Dir "..\Tmp\Debug"
# PROP Intermediate_Dir "..\Tmp\Debug"
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /GX /Z7 /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c
# ADD CPP /nologo /MDd /W3 /GX /Z7 /Od /I "X:/CPA/Public" /D "_DEBUG" /D "WIN32" /D "_WINDOWS" /D "_AFXDLL" /D "_MBCS" /D "SND_HYBRID_VERSION" /D "CPA_WANTS_EXPORT" /D "VISUAL" /FD /c
# SUBTRACT CPP /YX
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LIB32=link.exe -lib
# ADD BASE LIB32 /nologo
# ADD LIB32 /nologo /out:"x:\cpa\lib\SIFP5_vd.lib"
!ELSEIF "$(CFG)" == "SIF - Win32 Script Release"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
# PROP BASE Output_Dir "Script Release"
# PROP BASE Intermediate_Dir "Script Release"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 0
# PROP Output_Dir "../Tmp/Release"
# PROP Intermediate_Dir "../Tmp/Release"
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
# ADD CPP /nologo /MD /W3 /GX /O2 /I "X:/CPA/Public" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "_AFXDLL" /D "_MBCS" /D "ACTIVE_EDITOR" /YX /FD /c
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LIB32=link.exe -lib
# ADD BASE LIB32 /nologo
# ADD LIB32 /nologo /out:"x:\cpa\lib\SIFP5_vr.lib"
!ENDIF
# Begin Target
# Name "SIF - Win32 Script Debug"
# Name "SIF - Win32 Script Release"
# Begin Group "Sources Files"
# PROP Default_Filter "cpp;c;cxx;rc"
# Begin Source File
SOURCE=.\SifLoadS.c
!IF "$(CFG)" == "SIF - Win32 Script Debug"
# SUBTRACT CPP /YX
!ELSEIF "$(CFG)" == "SIF - Win32 Script Release"
!ENDIF
# End Source File
# End Group
# Begin Group "Header Files"
# PROP Default_Filter "h;hpp;hxx"
# Begin Source File
SOURCE=..\..\Public\SIF.h
# End Source File
# Begin Source File
SOURCE=..\..\Public\SIF\SifFunc.h
# End Source File
# Begin Source File
SOURCE=.\SifLoadS.h
# End Source File
# Begin Source File
SOURCE=..\..\Public\SIF\SifTypes.h
# End Source File
# End Group
# Begin Source File
SOURCE=.\Sif.mak
# End Source File
# End Target
# End Project

View File

@@ -0,0 +1,164 @@
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="7.10"
Name="SIF"
ProjectGUID="{30244296-5286-4039-9A38-6A1897E4D63F}"
SccProjectName="&quot;$/cpa/tempgrp/SIF&quot;, FDEAAAAA"
SccAuxPath=""
SccLocalPath="."
SccProvider="MSSCCI:NXN alienbrain">
<Platforms>
<Platform
Name="Win32"/>
</Platforms>
<Configurations>
<Configuration
Name="Script Release|Win32"
OutputDirectory=".\../Tmp/Release"
IntermediateDirectory=".\../Tmp/Release"
ConfigurationType="4"
UseOfMFC="0"
ATLMinimizesCRunTimeLibraryUsage="FALSE"
CharacterSet="2">
<Tool
Name="VCCLCompilerTool"
Optimization="2"
InlineFunctionExpansion="1"
AdditionalIncludeDirectories="X:/CPA/Public"
PreprocessorDefinitions="NDEBUG;WIN32;_WINDOWS;_AFXDLL;ACTIVE_EDITOR"
StringPooling="TRUE"
RuntimeLibrary="2"
EnableFunctionLevelLinking="TRUE"
UsePrecompiledHeader="2"
PrecompiledHeaderFile=".\../Tmp/Release/Sif.pch"
AssemblerListingLocation=".\../Tmp/Release/"
ObjectFile=".\../Tmp/Release/"
ProgramDataBaseFileName=".\../Tmp/Release/"
WarningLevel="3"
SuppressStartupBanner="TRUE"
CompileAs="0"/>
<Tool
Name="VCCustomBuildTool"/>
<Tool
Name="VCLibrarianTool"
OutputFile="x:\cpa\lib\SIFP5_vr.lib"
SuppressStartupBanner="TRUE"/>
<Tool
Name="VCMIDLTool"/>
<Tool
Name="VCPostBuildEventTool"/>
<Tool
Name="VCPreBuildEventTool"/>
<Tool
Name="VCPreLinkEventTool"/>
<Tool
Name="VCResourceCompilerTool"
Culture="1033"/>
<Tool
Name="VCWebServiceProxyGeneratorTool"/>
<Tool
Name="VCXMLDataGeneratorTool"/>
<Tool
Name="VCManagedWrapperGeneratorTool"/>
<Tool
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
</Configuration>
<Configuration
Name="Script Debug|Win32"
OutputDirectory="X:\CPA\Libd"
IntermediateDirectory=".\..\Tmp\Debug"
ConfigurationType="4"
UseOfMFC="0"
ATLMinimizesCRunTimeLibraryUsage="FALSE"
CharacterSet="2">
<Tool
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="X:/CPA/Public"
PreprocessorDefinitions="_DEBUG;WIN32;_WINDOWS;_AFXDLL;SND_HYBRID_VERSION;CPA_WANTS_EXPORT;VISUAL"
RuntimeLibrary="3"
PrecompiledHeaderFile=".\..\Tmp\Debug/Sif.pch"
AssemblerListingLocation=".\..\Tmp\Debug/"
ObjectFile=".\..\Tmp\Debug/"
ProgramDataBaseFileName=".\..\Tmp\Debug/"
WarningLevel="3"
SuppressStartupBanner="TRUE"
DebugInformationFormat="1"
CompileAs="0"/>
<Tool
Name="VCCustomBuildTool"/>
<Tool
Name="VCLibrarianTool"
OutputFile="x:\cpa\libd\SIFP5_vd.lib"
SuppressStartupBanner="TRUE"/>
<Tool
Name="VCMIDLTool"/>
<Tool
Name="VCPostBuildEventTool"/>
<Tool
Name="VCPreBuildEventTool"/>
<Tool
Name="VCPreLinkEventTool"/>
<Tool
Name="VCResourceCompilerTool"
Culture="1033"/>
<Tool
Name="VCWebServiceProxyGeneratorTool"/>
<Tool
Name="VCXMLDataGeneratorTool"/>
<Tool
Name="VCManagedWrapperGeneratorTool"/>
<Tool
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
</Configuration>
</Configurations>
<References>
</References>
<Files>
<Filter
Name="Sources Files"
Filter="cpp;c;cxx;rc">
<File
RelativePath="SifLoadS.c">
<FileConfiguration
Name="Script Release|Win32">
<Tool
Name="VCCLCompilerTool"
Optimization="2"
AdditionalIncludeDirectories=""
PreprocessorDefinitions=""/>
</FileConfiguration>
<FileConfiguration
Name="Script Debug|Win32">
<Tool
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories=""
PreprocessorDefinitions=""/>
</FileConfiguration>
</File>
</Filter>
<Filter
Name="Header Files"
Filter="h;hpp;hxx">
<File
RelativePath="..\..\Public\SIF.h">
</File>
<File
RelativePath="..\..\Public\SIF\SifFunc.h">
</File>
<File
RelativePath="SifLoadS.h">
</File>
<File
RelativePath="..\..\Public\SIF\SifTypes.h">
</File>
</Filter>
<File
RelativePath="Sif.mak">
</File>
</Files>
<Globals>
</Globals>
</VisualStudioProject>

View File

@@ -0,0 +1,163 @@
/*#include "windows.h"*/
/*#include "winuser.h"*/
/*#ifndef NO_ACP_SCRIPT*/
/*#endif*/
#include "SCR.h"
#include "SND.H"
#include "SIF.h"
#include "SifLoadS.h"
typedef enum _SIF_eInfoTypeId
{
ENVIRONMENT_INFO,
MATERIAL_INFO,
NB_INFO_TYPES,
} SIF_eInfoTypeId;
#ifndef _FIRE_DEADCODE_U64_ /* Added by RUC */
SIF_tdstInfoType SIF_ga_stInfoDescr[NB_INFO_TYPES]=
{
{/*ENVIRONMENT_INFO,*/"Environment"},
{/*MATERIAL_INFO,*/"Material"},
};
#endif /* _FIRE_DEADCODE_U64_ */ /* Added by RUC */
#ifndef _FIRE_DEADCODE_U64_ /* Added by RUC */
SIF_tdstInfoType *SIF_fn_pstGetSoundInfosDescriptor(int _iInfoType)
{
/* ASSERT(_iInfoType<SIF_fn_iGetSoundInfosCount());*/
return &SIF_ga_stInfoDescr[_iInfoType];
}
#endif /* _FIRE_DEADCODE_U64_ */ /* Added by RUC */
#ifndef _FIRE_DEADCODE_U64_ /* Added by RUC */
int SIF_fn_iGetSoundInfosCount(void)
{
return NB_INFO_TYPES;
}
#endif /* _FIRE_DEADCODE_U64_ */ /* Added by RUC */
#ifndef NO_ACP_SCRIPT
/*SCR_tdst_Link_Table SIF_ga_stSndInfoTable[NB_INFO_TYPES];*/
#if !defined(U64)
SCR_tde_Anl_ReturnValue SIF_fn_eLoadInfoType(SCR_tdst_File_Description *p_fFile, char *szAction, char *szParams[], SCR_tde_Anl_Action cType)
{
unsigned long ulTemp;
ulTemp=NB_INFO_TYPES;
switch (cType)
{
case SCR_EA_Anl_BeginSection:/* new switch type:*/
if (strcmp(szAction,"Material")==0) ulTemp=(unsigned long)MATERIAL_INFO;
if (strcmp(szAction,"Environment")==0) ulTemp=(unsigned long)ENVIRONMENT_INFO;
if (ulTemp==NB_INFO_TYPES)
SND_fn_vDisplayError(E_uwSndInvalidTypeOfResource,"SIF:Unknown Sound Info Type found in scrip");
SCR_M_RdL0_SetSectionLong(0,0,ulTemp);
break;
}
return R_SCRIPT_NormalReturn;
}
#endif /* U64 */
SCR_tde_Anl_ReturnValue SIF_fn_eLoadInfoValue(SCR_tdst_File_Description *p_fFile, char *szAction, char *szParams[], SCR_tde_Anl_Action cType)
{
/* CString csActionName,csReachableName,csFileName;*/
char *szValueName,*szSectionName;
int iInfoType;
unsigned long ulValue;
switch (cType)
{
case SCR_EA_Anl_BeginSection:/* new switch info:*/
break;
case SCR_EA_Anl_Entry:
if (strcmp(szAction,"SetValue")==0)
{
/* The Information Type is the parent section's result:*/
SCR_M_RdL0_GetSectionLong(-1,0,int,iInfoType);
/* Get the different names:*/
szValueName=SCR_M_RdL0_GetIdSectionNameR(0);
szSectionName=SCR_M_RdL0_GetCompleteSectionNameR(0);
/* Add a key on the corresponding table:*/
ulValue=SCR_M_RdL0_LONG(szParams[0]);
SCR_fnp_st_Link_SetValue(&SIF_ga_stInfoDescr[iInfoType].m_Table,/* Link table*/
szSectionName, /* Section name*/
ulValue);/* value*/
SCR_M_RdL0_SetSectionLong(0,0,ulValue);
} /* end case szAction=="SetValue"*/
break;
} /* end switch (cType)*/
return R_SCRIPT_NormalReturn;
}
#endif /*NO_ACP_SCRIPT*/
BOOL SIF_fn_bInitSoundInfos()
{
#ifndef NO_ACP_SCRIPT
int iInfoType;
/* Register callbacks:*/
SCR_fn_v_RdL0_RegisterCallback("Sif_Type",SIF_fn_eLoadInfoType,SCR_CRC_c_RdL0_ForSection);
SCR_fn_v_RdL0_RegisterCallback("Sif_Value",SIF_fn_eLoadInfoValue,SCR_CRC_c_RdL0_ForSection);
/* init link tables:*/
for (iInfoType=0;iInfoType<NB_INFO_TYPES;iInfoType++)
{
SCR_fn_v_Link_InitTable(&SIF_ga_stInfoDescr[iInfoType].m_Table);
}
#endif
return TRUE;
}
#ifndef _FIRE_DEADCODE_U64_ /* Added by RUC 04/06/99 */
BOOL SIF_fn_bDesInitSoundInfos(void)
{
#ifndef NO_ACP_SCRIPT
int iInfoType;
/* delete sound info sections:*/
SCR_fn_v_RdL0_DeleteOpenSection("Sif_Type",SCR_CDR_c_RdL0_Contains);
SCR_fn_v_RdL0_DeleteOpenSection("Sif_Value",SCR_CDR_c_RdL0_Contains);
/* Unregister callbacks:*/
SCR_fn_v_RdL0_DeleteRegisterCallback("Sif_",SCR_CRC_c_RdL0_ForSection,SCR_CDR_c_RdL0_Contains);
/* close link tables:*/
for (iInfoType=0;iInfoType<NB_INFO_TYPES;iInfoType++)
{
SCR_fn_v_Link_CloseTable(&SIF_ga_stInfoDescr[iInfoType].m_Table);
}
#endif
return TRUE;
}
#endif /* _FIRE_DEADCODE_U64_ */ /* Added by RUC 04/06/99 */
#ifndef _FIRE_DEADCODE_U64_ /* Added by RUC */
CPA_EXPORT const char *SIF_fn_czGetSoundInfoNameForType(int _iInfoType)
{
/* make sure _infotype is correct:*/
if (_iInfoType>=SIF_fn_iGetSoundInfosCount()) return NULL;
return (SIF_fn_pstGetSoundInfosDescriptor(_iInfoType)->szInfoName);
}
#endif /* _FIRE_DEADCODE_U64_ */ /* Added by RUC */

View File

@@ -0,0 +1,62 @@
#ifndef _SIFLOAD_H_
#define _SIFLOAD_H_
/********************************************************************* */
/** SifLoadS.h: ** */
/** ** */
/** Header file for Public SIF module Script Load functions ** */
/** ** */
/********************************************************************* */
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus*/
/****************************************/
#undef CPA_EXPORT
#if defined(CPA_WANTS_IMPORT)
#define CPA_EXPORT __declspec(dllimport)
#elif defined(CPA_WANTS_EXPORT)
#define CPA_EXPORT __declspec(dllexport)
#else
#define CPA_EXPORT
#endif
/****************************************/
typedef struct _SIF_tdstInfoType SIF_tdstInfoType;
/*
typedef enum _SIF_eInfoTypeId
{
ENVIRONMENT_INFO,
MATERIAL_INFO,
NB_INFO_TYPES,
} SIF_eInfoTypeId;
*/
struct _SIF_tdstInfoType
{
/* SIF_eInfoTypeId eId;*/
char *szInfoName;
#if !defined(U64)
SCR_tdst_Link_Table m_Table;
#endif /* U64 */
};
extern CPA_EXPORT SIF_tdstInfoType *SIF_fn_pstGetSoundInfosDescriptor(int _iInfoType);
#ifdef __cplusplus
}
#endif /* __cplusplus*/
#endif /*_SIFLOAD_H_*/

View File

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

View File

@@ -0,0 +1,101 @@
#include "SCR.h"
#include "SND.H"
#include "SIF.h"
#include "SifLoadS.h"
#include "ldt.h"
extern enum _SIF_eInfoTypeId
{
ENVIRONMENT_INFO,
MATERIAL_INFO,
NB_INFO_TYPES,
} SIF_eInfoTypeId;
extern SIF_tdstInfoType SIF_ga_stInfoDescr[NB_INFO_TYPES];
/*****************************************************************
Function name : fn_iLoadInfoType
Description :
Author : Ovidiu Scripa (oscripa@ubisoft.ro) - ROMTEAM
Creation Date : 14-Oct-98
Modified :
Return type : int
Argument : LDT_tdst_Link *pLink
*****************************************************************/
int fn_iLoadInfoType( LDT_tdst_Link *pLink )
{
LDT_tdeParseResult result=ParseResult_BeginSection;
char* szAction = LDT_szGetSectionName();
if (strcmp(szAction,"Material")==0)
{
pLink->pObject = (void*)MATERIAL_INFO;
}
else if (strcmp(szAction,"Environment")==0)
{
pLink->pObject = (void*)ENVIRONMENT_INFO;
}
else
{
SND_fn_vDisplayError(E_uwSndInvalidTypeOfResource,"SIF:Unknown Sound Info Type found in scrip");
return 1;
}
while( result!=ParseResult_EndSection )
{
result=LDT_GetNextEntry();
switch( result )
{
case ParseResult_BeginSection: /* a subsection - CreateNewState*/
{
LDT_LoadSection( NULL );
}
break;
}
}
return 0;
}
/*****************************************************************
Function name : fn_iLoadInfoValue
Description :
Author : Ovidiu Scripa (oscripa@ubisoft.ro) - ROMTEAM
Creation Date : 14-Oct-98
Modified :
Return type : int
Argument : LDT_tdst_Link *pLink
*****************************************************************/
int fn_iLoadInfoValue( LDT_tdst_Link *pLink )
{
LDT_tdeParseResult result=ParseResult_BeginSection;
int iInfoType = (int)pLink->pParent->pObject;
char szSectionName[_MAX_PATH];
/* char szValueName[_MAX_PATH], szFile[_MAX_PATH], szParent[MAX_PATH], szType[_MAX_PATH];*/
while( result!=ParseResult_EndSection )
{
result=LDT_GetNextEntry();
switch( result )
{
case ParseResult_Entry: /* an entry : SetValue*/
{
int iLen = LDT_ComputeSectionName( pLink, szSectionName );
SCR_fnp_st_Link_SetValue(&SIF_ga_stInfoDescr[iInfoType].m_Table,/* Link table*/
szSectionName + iLen, /* Section name*/
(unsigned long)(pLink->pObject = (void*)(atoi(LDT_szGetParam(1)))) );/* value*/
}
}
}
return 0;
}