Skip to content

Commit

Permalink
Ignore Console Commands for server.lua patching
Browse files Browse the repository at this point in the history
  • Loading branch information
SirBitesalot committed Mar 14, 2017
1 parent 34f09cb commit bbcae3d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
9 changes: 9 additions & 0 deletions AvorionServerManager/AvorionServerManager.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,12 @@
<Compile Include="AuthTestController.cs" />
<Compile Include="BackupController.cs" />
<Compile Include="BackupSettings.cs" />
<Compile Include="Backup\BackupForm.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Backup\BackupForm.Designer.cs">
<DependentUpon>BackupForm.cs</DependentUpon>
</Compile>
<Compile Include="LuaFilePatcher.cs" />
<Compile Include="ManagerController.cs" />
<Compile Include="Setup\DoItProgressForm.cs">
Expand Down Expand Up @@ -168,6 +174,9 @@
<Content Include="THIRD-PARTY-NOTICES.txt">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<EmbeddedResource Include="Backup\BackupForm.resx">
<DependentUpon>BackupForm.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="ManagerMainForm.resx">
<DependentUpon>ManagerMainForm.cs</DependentUpon>
</EmbeddedResource>
Expand Down
4 changes: 3 additions & 1 deletion AvorionServerManager/LuaFilePatcher.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
using System.Collections.Generic;
using AvorionServerManager.Commands;
using System.Linq;

namespace AvorionServerManager
{
class LuaFilePatcher
Expand All @@ -21,7 +23,7 @@ class LuaFilePatcher
private List<AvorionServerCommandDefinition> _commandDefinitions;
public LuaFilePatcher(List<AvorionServerCommandDefinition> commandDefinitions)
{
_commandDefinitions = commandDefinitions;
_commandDefinitions = commandDefinitions.Where(item => item.ExecutionType == CommandExecutionTypes.Lua).ToList();
}
public static List<string> RemoveAsmPatches(List<string> serverLuaLines)
{
Expand Down

0 comments on commit bbcae3d

Please sign in to comment.