Skip to content

Commit

Permalink
Work on editors a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY committed Jan 24, 2018
1 parent df25fe9 commit 9d4fba4
Show file tree
Hide file tree
Showing 8 changed files with 107 additions and 253 deletions.
109 changes: 19 additions & 90 deletions src/editors/ECore/ECore.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Mixed|Win32">
<Configuration>Mixed</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Mixed|x64">
<Configuration>Mixed</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
Expand All @@ -24,111 +32,25 @@
<RootNamespace>ECore</RootNamespace>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<PropertyGroup Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<PlatformToolset>v141</PlatformToolset>
<CharacterSet>MultiByte</CharacterSet>
<WholeProgramOptimization>true</WholeProgramOptimization>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<PlatformToolset>v141</PlatformToolset>
<CharacterSet>MultiByte</CharacterSet>
<PropertyGroup Condition="'$(Configuration)'=='Release'" Label="Configuration">
<WholeProgramOptimization>true</WholeProgramOptimization>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<PlatformToolset>v141</PlatformToolset>
<CharacterSet>MultiByte</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<PlatformToolset>v141</PlatformToolset>
<CharacterSet>MultiByte</CharacterSet>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
<Import Project="$(SolutionDir)Common.props" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
<Import Project="$(SolutionDir)Common.props" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
<Import Project="$(SolutionDir)Common.props" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
<ImportGroup Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
<Import Project="$(SolutionDir)Common.props" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup>
<_ProjectFileVersion>12.0.30501.0</_ProjectFileVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<OutDir>$(xrBinDir)</OutDir>
<IntDir>$(xrIntDir)$(ProjectName)\</IntDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<OutDir>$(xrBinDir)</OutDir>
<IntDir>$(xrIntDir)$(ProjectName)\</IntDir>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<Optimization>Disabled</Optimization>
<MinimalRebuild>true</MinimalRebuild>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
<WarningLevel>Level3</WarningLevel>
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
</ClCompile>
<Link>
<GenerateDebugInformation>true</GenerateDebugInformation>
<TargetMachine>MachineX86</TargetMachine>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<Optimization>Disabled</Optimization>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
<WarningLevel>Level3</WarningLevel>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
</ClCompile>
<Link>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
<WarningLevel>Level3</WarningLevel>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
</ClCompile>
<Link>
<GenerateDebugInformation>true</GenerateDebugInformation>
<OptimizeReferences>true</OptimizeReferences>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<TargetMachine>MachineX86</TargetMachine>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
<WarningLevel>Level3</WarningLevel>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
</ClCompile>
<Link>
<GenerateDebugInformation>true</GenerateDebugInformation>
<OptimizeReferences>true</OptimizeReferences>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClInclude Include="Editor\ArbitraryList.h" />
<ClInclude Include="Editor\ColorPicker.h" />
Expand Down Expand Up @@ -263,7 +185,14 @@
<ClCompile Include="Engine\Image.cpp" />
<ClCompile Include="Engine\NVMeshMender.cpp" />
<ClCompile Include="Engine\nv_algebra.cpp" />
<ClCompile Include="stdafx.cpp" />
<ClCompile Include="stdafx.cpp">
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Mixed|Win32'">Create</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Mixed|x64'">Create</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader>
</ClCompile>
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
Expand Down
4 changes: 2 additions & 2 deletions src/editors/ECore/Editor/SoundManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ class ECORE_API CSoundManager
void MakeGameSound(ESoundThumbnail* THM, LPCSTR src_name, LPCSTR game_name);
CSoundManager() {}
virtual ~CSoundManager() { ; }
BOOL__stdcall RemoveSound(LPCSTR fname, EItemType type);
void__stdcall RenameSound(LPCSTR p0, LPCSTR p1, EItemType type);
BOOL __stdcall RemoveSound(LPCSTR fname, EItemType type);
void __stdcall RenameSound(LPCSTR p0, LPCSTR p1, EItemType type);

// texture routines
int GetSounds(FS_FileSet& files, BOOL bFolders = FALSE);
Expand Down
47 changes: 37 additions & 10 deletions src/editors/ECore/stdafx.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

#include "Common/Common.hpp"

#pragma warn - pck
//#pragma warn - pck

#define sqrtf(a) sqrt(a)
//#define sqrtf(a) sqrt(a)

#define smart_cast dynamic_cast

Expand All @@ -19,15 +19,17 @@
#define RENDER R_R1

// Std C++ headers
#include <fastmath.h>
//#include <fastmath.h>
//#include "math.h"
#include <io.h>
#include <fcntl.h>
#include <sys\stat.h>
#include <sys/stat.h>
#include <process.h>
#include <utime.h>
#include <sys/utime.h>

// useful macros
// MSC names for functions
/*
#ifdef _eof
#undef _eof
#endif
Expand All @@ -53,8 +55,7 @@ __inline float modff(float a, float* b)
*b = x;
return float(y);
}
__inline float expf(float val) { return ::exp(val); }
#include "xrCore/Platform.h"
__inline float expf(float val) { return ::exp(val); }*/

#ifdef _ECOREB
#define ECORE_API XR_EXPORT
Expand All @@ -72,9 +73,35 @@ __inline float expf(float val) { return ::exp(val); }

#define clMsg Msg

enum TMsgDlgType
{
mtWarning,
mtError,
mtInformation,
mtConfirmation,
mtCustom
};
enum TMsgDlgBtn
{
mbYes,
mbNo,
mbOK,
mbCancel,
mbAbort,
mbRetry,
mbIgnore,
mbAll,
mbNoToAll,
mbYesToAll,
mbHelp
};
typedef TMsgDlgBtn TMsgDlgButtons[mbHelp];

// core
#include <xrCore/xrCore.h>

#define AnsiString xr_string

#ifdef _EDITOR
class PropValue;
class PropItem;
Expand All @@ -86,7 +113,7 @@ DEFINE_VECTOR(ListItem*, ListItemsVec, ListItemsIt);

#include "xrCDB/xrCDB.h"
#include "xrSound/Sound.h"
#include "xrEngine/PSystem.h"
#include "xrParticles/psystem.h"

// DirectX headers
#include <d3d9.h>
Expand All @@ -100,12 +127,12 @@ DEFINE_VECTOR(ListItem*, ListItemsVec, ListItemsIt);
#include "xrCore/FMesh.hpp"
#include "Common/_d3d_extensions.h"

#include "D3DX_Wrapper.h"
//#include "D3DX_Wrapper.h"

DEFINE_VECTOR(AnsiString, AStringVec, AStringIt);
DEFINE_VECTOR(AnsiString*, LPAStringVec, LPAStringIt);

#include "xrServerEntities\xrEProps.h"
#include "xrServerEntities/xrEProps.h"
#include "xrCore/Log.h"
#include "Editor/engine.h"
#include "xrEngine/defines.h"
Expand Down
9 changes: 8 additions & 1 deletion src/editors/LevelEditor/LevelEditor.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,14 @@
<ClCompile Include="PropertiesEObject.cpp" />
<ClCompile Include="ShaderFunction.cpp" />
<ClCompile Include="Splash.cpp" />
<ClCompile Include="stdafx.cpp" />
<ClCompile Include="stdafx.cpp">
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Mixed|Win32'">Create</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Mixed|x64'">Create</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader>
</ClCompile>
<ClCompile Include="TopBar.cpp" />
</ItemGroup>
<ItemGroup>
Expand Down
9 changes: 8 additions & 1 deletion src/editors/ParticleEditor/ParticleEditor.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,14 @@
<ClCompile Include="PSLibraryEditor.cpp" />
<ClCompile Include="Splash.cpp" />
<ClCompile Include="StatGraph.cpp" />
<ClCompile Include="stdafx.cpp" />
<ClCompile Include="stdafx.cpp">
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Mixed|Win32'">Create</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Mixed|x64'">Create</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader>
</ClCompile>
<ClCompile Include="TopBar.cpp" />
<ClCompile Include="UI_ParticleMain.cpp" />
<ClCompile Include="UI_ParticleTools.cpp" />
Expand Down
9 changes: 8 additions & 1 deletion src/editors/ShaderEditor/ShaderEditor.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,14 @@
<ClCompile Include="SHSoundEnvTools.cpp" />
<ClCompile Include="SHToolsInterface.cpp" />
<ClCompile Include="Splash.cpp" />
<ClCompile Include="stdafx.cpp" />
<ClCompile Include="stdafx.cpp">
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Mixed|Win32'">Create</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Mixed|x64'">Create</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader>
</ClCompile>
<ClCompile Include="TopBar.cpp" />
<ClCompile Include="ui_shadermain.cpp" />
<ClCompile Include="UI_shadertools.cpp" />
Expand Down
Loading

0 comments on commit 9d4fba4

Please sign in to comment.