mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-08-20 09:57:09 +00:00
Merge remote-tracking branch 'origin/main' into dec-2014
# Conflicts: # Minecraft.Client/Minecraft.Client.vcxproj.user
This commit is contained in:
commit
f1cdf23159
8
.gitignore
vendored
8
.gitignore
vendored
|
|
@ -423,4 +423,10 @@ Minecraft.World/x64_Debug/
|
|||
Minecraft.World/Release/
|
||||
Minecraft.World/x64_Release/
|
||||
|
||||
build/*
|
||||
build/*
|
||||
|
||||
# Existing build output files
|
||||
!x64/**/Effects.msscmp
|
||||
!x64/**/iggy_w64.dll
|
||||
!x64/**/mss64.dll
|
||||
!x64/**/redist64/
|
||||
|
|
|
|||
|
|
@ -328,6 +328,10 @@ bool UILayer::NavigateToScene(int iPad, EUIScene scene, void *initData)
|
|||
newScene = new UIScene_InGameInfoMenu(iPad, initData, this);
|
||||
break;
|
||||
case eUIScene_InGameHostOptionsMenu:
|
||||
if (IsSceneInStack(eUIScene_InGameHostOptionsMenu)) {
|
||||
app.DebugPrintf("Skipped eUIScene_InGameHostOptionsMenu, we have already this tab!");
|
||||
return false;
|
||||
}
|
||||
newScene = new UIScene_InGameHostOptionsMenu(iPad, initData, this);
|
||||
break;
|
||||
case eUIScene_InGamePlayerOptionsMenu:
|
||||
|
|
|
|||
|
|
@ -1466,14 +1466,8 @@ if not exist "$(TargetDir)\savedata" mkdir "$(TargetDir)\savedata"</Command>
|
|||
<SuppressStartupBanner>false</SuppressStartupBanner>
|
||||
</Link>
|
||||
<PostBuildEvent>
|
||||
<Message>Copying sound assets to output directory</Message>
|
||||
<Command>xcopy /q /y /i /s /e "$(ProjectDir)Durango\Sound" "$(OutDir)Durango\Sound"
|
||||
xcopy /q /y /i /s /e "$(ProjectDir)music" "$(OutDir)music"
|
||||
xcopy /q /y /i /s /e "$(ProjectDir)Windows64\GameHDD" "$(OutDir)Windows64\GameHDD"
|
||||
xcopy /q /y /i /s /e "$(ProjectDir)Common\Media" "$(OutDir)Common\Media"
|
||||
xcopy /q /y /i /s /e "$(ProjectDir)Common\res" "$(OutDir)Common\res"
|
||||
xcopy /q /y /i /s /e "$(ProjectDir)Common\Trial" "$(OutDir)Common\Trial"
|
||||
xcopy /q /y /i /s /e "$(ProjectDir)Common\Tutorial" "$(OutDir)Common\Tutorial"</Command>
|
||||
<Message>Run postbuild script</Message>
|
||||
<Command>powershell -ExecutionPolicy Bypass -File "$(ProjectDir)postbuild.ps1" -OutDir "$(OutDir)/" -ProjectDir "$(ProjectDir)/"</Command>
|
||||
</PostBuildEvent>
|
||||
<ImageXex>
|
||||
<ConfigurationFile>$(ProjectDir)xbox\xex-dev.xml</ConfigurationFile>
|
||||
|
|
@ -1605,25 +1599,8 @@ xcopy /q /y /i /s /e $(ProjectDir)DurangoMedia\CU $(LayoutDir)Image\Loose\CU</C
|
|||
<SuppressStartupBanner>false</SuppressStartupBanner>
|
||||
</Link>
|
||||
<PostBuildEvent>
|
||||
<Message>Copying game assets to output directory</Message>
|
||||
<Command>mkdir "$(OutDir)music" 2>nul
|
||||
mkdir "$(OutDir)Windows64\GameHDD" 2>nul
|
||||
mkdir "$(OutDir)Common\Media" 2>nul
|
||||
mkdir "$(OutDir)Common\res" 2>nul
|
||||
mkdir "$(OutDir)Common\Trial" 2>nul
|
||||
mkdir "$(OutDir)Common\Tutorial" 2>nul
|
||||
mkdir "$(OutDir)Windows64Media" 2>nul
|
||||
|
||||
xcopy /q /y /i /s /e "$(ProjectDir)music" "$(OutDir)music" || exit /b 0
|
||||
xcopy /q /y /i /s /e "$(ProjectDir)Windows64\GameHDD" "$(OutDir)Windows64\GameHDD" || exit /b 0
|
||||
xcopy /q /y /i /s /e "$(ProjectDir)Common\Media" "$(OutDir)Common\Media" || exit /b 0
|
||||
xcopy /q /y /i /s /e "$(ProjectDir)Common\res" "$(OutDir)Common\res" || exit /b 0
|
||||
xcopy /q /y /i /s /e "$(ProjectDir)Common\Trial" "$(OutDir)Common\Trial" || exit /b 0
|
||||
xcopy /q /y /i /s /e "$(ProjectDir)Common\Tutorial" "$(OutDir)Common\Tutorial" || exit /b 0
|
||||
xcopy /q /y /i /s /e "$(ProjectDir)DurangoMedia" "$(OutDir)Windows64Media" || exit /b 0
|
||||
xcopy /q /y /i /s /e "$(ProjectDir)Windows64Media" "$(OutDir)Windows64Media" || exit /b 0
|
||||
|
||||
exit /b 0</Command>
|
||||
<Message>Run postbuild script</Message>
|
||||
<Command>powershell -ExecutionPolicy Bypass -File "$(ProjectDir)postbuild.ps1" -OutDir "$(OutDir)/" -ProjectDir "$(ProjectDir)/"</Command>
|
||||
</PostBuildEvent>
|
||||
<ImageXex>
|
||||
<ConfigurationFile>$(ProjectDir)xbox\xex-dev.xml</ConfigurationFile>
|
||||
|
|
|
|||
|
|
@ -1,3 +1,14 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<LastConfigDeployed>Debug</LastConfigDeployed>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<LocalDebuggerWorkingDirectory>$(SolutionDir)$(Platform)\$(Configuration)\</LocalDebuggerWorkingDirectory>
|
||||
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<LocalDebuggerWorkingDirectory>$(SolutionDir)$(Platform)\$(Configuration)\</LocalDebuggerWorkingDirectory>
|
||||
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
|
|
@ -30,7 +30,8 @@ public:
|
|||
int compareTo(const TextureHolder *other) const;
|
||||
};
|
||||
|
||||
typedef struct
|
||||
struct TextureHolderLessThan
|
||||
{
|
||||
bool operator() (const TextureHolder *first, const TextureHolder *second) const { return first->compareTo(second) >= 0; }
|
||||
} TextureHolderLessThan;
|
||||
inline bool operator()(const TextureHolder *first, const TextureHolder *second) const
|
||||
{ return first->compareTo(second) >= 0; }
|
||||
};
|
||||
42
Minecraft.Client/postbuild.ps1
Normal file
42
Minecraft.Client/postbuild.ps1
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
param(
|
||||
[string]$OutDir,
|
||||
[string]$ProjectDir
|
||||
)
|
||||
|
||||
Write-Host "Post-build script started. Output Directory: $OutDir, Project Directory: $ProjectDir"
|
||||
|
||||
$directories = @(
|
||||
"music",
|
||||
"Windows64\GameHDD",
|
||||
"Common\Media",
|
||||
"Common\res",
|
||||
"Common\Trial",
|
||||
"Common\Tutorial",
|
||||
"Windows64Media"
|
||||
)
|
||||
|
||||
foreach ($dir in $directories) {
|
||||
New-Item -ItemType Directory -Path (Join-Path $OutDir $dir) -Force | Out-Null
|
||||
}
|
||||
|
||||
$copies = @(
|
||||
@{ Source = "music"; Dest = "music" },
|
||||
@{ Source = "Common\Media"; Dest = "Common\Media" },
|
||||
@{ Source = "Common\res"; Dest = "Common\res" },
|
||||
@{ Source = "Common\Trial"; Dest = "Common\Trial" },
|
||||
@{ Source = "Common\Tutorial"; Dest = "Common\Tutorial" },
|
||||
@{ Source = "Windows64\GameHDD"; Dest = "Windows64\GameHDD" },
|
||||
@{ Source = "Windows64\Sound"; Dest = "Windows64\Sound" },
|
||||
@{ Source = "DurangoMedia"; Dest = "Windows64Media" },
|
||||
@{ Source = "Windows64Media"; Dest = "Windows64Media" }
|
||||
)
|
||||
|
||||
foreach ($copy in $copies) {
|
||||
$src = Join-Path $ProjectDir $copy.Source
|
||||
$dst = Join-Path $OutDir $copy.Dest
|
||||
|
||||
if (Test-Path $src) {
|
||||
# Copy the files using xcopy, forcing overwrite and suppressing errors, and only copying if the source is newer than the destination
|
||||
xcopy /q /y /i /s /e /d "$src" "$dst" 2>$null
|
||||
}
|
||||
}
|
||||
|
|
@ -28,13 +28,14 @@ public:
|
|||
ChunkPos & operator= (const ChunkPos & other) { x = other.x; z = other.z; return *this; }
|
||||
};
|
||||
|
||||
typedef struct
|
||||
struct ChunkPosKeyHash
|
||||
{
|
||||
__int64 operator() (const ChunkPos &k) const { return ChunkPos::hash_fnct(k); }
|
||||
inline __int64 operator()(const ChunkPos &k) const
|
||||
{ return ChunkPos::hash_fnct(k); }
|
||||
};
|
||||
|
||||
} ChunkPosKeyHash;
|
||||
|
||||
typedef struct
|
||||
struct ChunkPosKeyEq
|
||||
{
|
||||
bool operator() (const ChunkPos &x, const ChunkPos &y) const { return ChunkPos::eq_test(x, y); }
|
||||
} ChunkPosKeyEq;
|
||||
inline bool operator()(const ChunkPos &x, const ChunkPos &y) const
|
||||
{ return ChunkPos::eq_test(x, y); }
|
||||
};
|
||||
|
|
@ -14,14 +14,15 @@ public:
|
|||
static bool eq_test(const TilePos &x, const TilePos &y);
|
||||
};
|
||||
|
||||
typedef struct
|
||||
struct TilePosKeyHash
|
||||
{
|
||||
int operator() (const TilePos &k) const { return TilePos::hash_fnct (k); }
|
||||
inline int operator()(const TilePos &k) const
|
||||
{ return TilePos::hash_fnct (k); }
|
||||
};
|
||||
|
||||
} TilePosKeyHash;
|
||||
|
||||
typedef struct
|
||||
struct TilePosKeyEq
|
||||
{
|
||||
bool operator() (const TilePos &x, const TilePos &y) const { return TilePos::eq_test (x, y); }
|
||||
} TilePosKeyEq;
|
||||
inline bool operator()(const TilePos &x, const TilePos &y) const
|
||||
{ return TilePos::eq_test (x, y); }
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue