Fixes for client crashing when not run through the launcher
This commit is contained in:
parent
9538d1321a
commit
5c3c035019
BIN
TrueCraft.Client/Content/default-pack.png
Normal file
BIN
TrueCraft.Client/Content/default-pack.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.7 KiB |
1
TrueCraft.Client/Content/default-pack.txt
Normal file
1
TrueCraft.Client/Content/default-pack.txt
Normal file
@ -0,0 +1 @@
|
||||
No description available.
|
@ -38,7 +38,7 @@ namespace TrueCraft.Client.Rendering
|
||||
lock (_syncLock)
|
||||
{
|
||||
_vertices = new VertexBuffer(_graphicsDevice, VertexPositionNormalTexture.VertexDeclaration,
|
||||
value.Length, BufferUsage.WriteOnly);
|
||||
(value.Length + 1), BufferUsage.WriteOnly);
|
||||
_vertices.SetData(value);
|
||||
}
|
||||
|
||||
@ -119,7 +119,7 @@ namespace TrueCraft.Client.Rendering
|
||||
_indices[index].Dispose();
|
||||
|
||||
_indices[index] = new IndexBuffer(_graphicsDevice, typeof(int),
|
||||
indices.Length, BufferUsage.WriteOnly);
|
||||
(indices.Length + 1), BufferUsage.WriteOnly);
|
||||
_indices[index].SetData(indices);
|
||||
}
|
||||
}
|
||||
|
@ -162,6 +162,12 @@
|
||||
<ItemGroup />
|
||||
<ItemGroup />
|
||||
<ItemGroup>
|
||||
<Content Include="Content\default-pack.png">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Content\default-pack.txt">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Content\items.png">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
|
@ -32,7 +32,7 @@ namespace TrueCraft.Core
|
||||
{
|
||||
get
|
||||
{
|
||||
return System.IO.Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile),
|
||||
return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile),
|
||||
".truecraft/texturepacks/");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user