Skip to content

Commit 62e4eac

Browse files
pchoteabcdefg30
authored andcommitted
Convert files with CRLF line endings to LF.
1 parent 017d8bf commit 62e4eac

File tree

4 files changed

+361
-361
lines changed

4 files changed

+361
-361
lines changed

ExampleMod.sln

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
1-
2-
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio 2012
4-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenRA.Mods.Example", "OpenRA.Mods.Example\OpenRA.Mods.Example.csproj", "{4E5B38F7-4E99-4C92-BB39-9100CC7F3829}"
5-
EndProject
6-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenRA.Game", "engine\OpenRA.Game\OpenRA.Game.csproj", "{0DFB103F-2962-400F-8C6D-E2C28CCBA633}"
7-
EndProject
8-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenRA.Mods.Common", "engine\OpenRA.Mods.Common\OpenRA.Mods.Common.csproj", "{FE6C8CC0-2F07-442A-B29F-17617B3B7FC6}"
9-
EndProject
10-
Global
11-
GlobalSection(SolutionConfigurationPlatforms) = preSolution
12-
Debug|Any CPU = Debug|Any CPU
13-
Release|Any CPU = Release|Any CPU
14-
Release-x86|Any CPU = Release-x86|Any CPU
15-
EndGlobalSection
16-
GlobalSection(ProjectConfigurationPlatforms) = postSolution
17-
{4E5B38F7-4E99-4C92-BB39-9100CC7F3829}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
18-
{4E5B38F7-4E99-4C92-BB39-9100CC7F3829}.Debug|Any CPU.Build.0 = Debug|Any CPU
19-
{4E5B38F7-4E99-4C92-BB39-9100CC7F3829}.Release|Any CPU.ActiveCfg = Release|Any CPU
20-
{4E5B38F7-4E99-4C92-BB39-9100CC7F3829}.Release|Any CPU.Build.0 = Release|Any CPU
21-
{4E5B38F7-4E99-4C92-BB39-9100CC7F3829}.Release-x86|Any CPU.ActiveCfg = Release|Any CPU
22-
{4E5B38F7-4E99-4C92-BB39-9100CC7F3829}.Release-x86|Any CPU.Build.0 = Release|Any CPU
23-
{0DFB103F-2962-400F-8C6D-E2C28CCBA633}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
24-
{0DFB103F-2962-400F-8C6D-E2C28CCBA633}.Debug|Any CPU.Build.0 = Debug|Any CPU
25-
{0DFB103F-2962-400F-8C6D-E2C28CCBA633}.Release|Any CPU.ActiveCfg = Release|Any CPU
26-
{0DFB103F-2962-400F-8C6D-E2C28CCBA633}.Release|Any CPU.Build.0 = Release|Any CPU
27-
{0DFB103F-2962-400F-8C6D-E2C28CCBA633}.Release-x86|Any CPU.ActiveCfg = Release-x86|Any CPU
28-
{0DFB103F-2962-400F-8C6D-E2C28CCBA633}.Release-x86|Any CPU.Build.0 = Release-x86|Any CPU
29-
{FE6C8CC0-2F07-442A-B29F-17617B3B7FC6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
30-
{FE6C8CC0-2F07-442A-B29F-17617B3B7FC6}.Debug|Any CPU.Build.0 = Debug|Any CPU
31-
{FE6C8CC0-2F07-442A-B29F-17617B3B7FC6}.Release|Any CPU.ActiveCfg = Release|Any CPU
32-
{FE6C8CC0-2F07-442A-B29F-17617B3B7FC6}.Release|Any CPU.Build.0 = Release|Any CPU
33-
{FE6C8CC0-2F07-442A-B29F-17617B3B7FC6}.Release-x86|Any CPU.ActiveCfg = Release|Any CPU
34-
{FE6C8CC0-2F07-442A-B29F-17617B3B7FC6}.Release-x86|Any CPU.Build.0 = Release|Any CPU
35-
EndGlobalSection
36-
EndGlobal
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 2012
4+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenRA.Mods.Example", "OpenRA.Mods.Example\OpenRA.Mods.Example.csproj", "{4E5B38F7-4E99-4C92-BB39-9100CC7F3829}"
5+
EndProject
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenRA.Game", "engine\OpenRA.Game\OpenRA.Game.csproj", "{0DFB103F-2962-400F-8C6D-E2C28CCBA633}"
7+
EndProject
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenRA.Mods.Common", "engine\OpenRA.Mods.Common\OpenRA.Mods.Common.csproj", "{FE6C8CC0-2F07-442A-B29F-17617B3B7FC6}"
9+
EndProject
10+
Global
11+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
12+
Debug|Any CPU = Debug|Any CPU
13+
Release|Any CPU = Release|Any CPU
14+
Release-x86|Any CPU = Release-x86|Any CPU
15+
EndGlobalSection
16+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
17+
{4E5B38F7-4E99-4C92-BB39-9100CC7F3829}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
18+
{4E5B38F7-4E99-4C92-BB39-9100CC7F3829}.Debug|Any CPU.Build.0 = Debug|Any CPU
19+
{4E5B38F7-4E99-4C92-BB39-9100CC7F3829}.Release|Any CPU.ActiveCfg = Release|Any CPU
20+
{4E5B38F7-4E99-4C92-BB39-9100CC7F3829}.Release|Any CPU.Build.0 = Release|Any CPU
21+
{4E5B38F7-4E99-4C92-BB39-9100CC7F3829}.Release-x86|Any CPU.ActiveCfg = Release|Any CPU
22+
{4E5B38F7-4E99-4C92-BB39-9100CC7F3829}.Release-x86|Any CPU.Build.0 = Release|Any CPU
23+
{0DFB103F-2962-400F-8C6D-E2C28CCBA633}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
24+
{0DFB103F-2962-400F-8C6D-E2C28CCBA633}.Debug|Any CPU.Build.0 = Debug|Any CPU
25+
{0DFB103F-2962-400F-8C6D-E2C28CCBA633}.Release|Any CPU.ActiveCfg = Release|Any CPU
26+
{0DFB103F-2962-400F-8C6D-E2C28CCBA633}.Release|Any CPU.Build.0 = Release|Any CPU
27+
{0DFB103F-2962-400F-8C6D-E2C28CCBA633}.Release-x86|Any CPU.ActiveCfg = Release-x86|Any CPU
28+
{0DFB103F-2962-400F-8C6D-E2C28CCBA633}.Release-x86|Any CPU.Build.0 = Release-x86|Any CPU
29+
{FE6C8CC0-2F07-442A-B29F-17617B3B7FC6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
30+
{FE6C8CC0-2F07-442A-B29F-17617B3B7FC6}.Debug|Any CPU.Build.0 = Debug|Any CPU
31+
{FE6C8CC0-2F07-442A-B29F-17617B3B7FC6}.Release|Any CPU.ActiveCfg = Release|Any CPU
32+
{FE6C8CC0-2F07-442A-B29F-17617B3B7FC6}.Release|Any CPU.Build.0 = Release|Any CPU
33+
{FE6C8CC0-2F07-442A-B29F-17617B3B7FC6}.Release-x86|Any CPU.ActiveCfg = Release|Any CPU
34+
{FE6C8CC0-2F07-442A-B29F-17617B3B7FC6}.Release-x86|Any CPU.Build.0 = Release|Any CPU
35+
EndGlobalSection
36+
EndGlobal
Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,40 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
2-
<PropertyGroup>
3-
<TargetFramework>net472</TargetFramework>
4-
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
5-
<Optimize>true</Optimize>
6-
<LangVersion>7.3</LangVersion>
7-
<DebugSymbols>true</DebugSymbols>
8-
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
9-
<OutputPath>../engine/bin</OutputPath>
10-
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
11-
<PlatformTarget>AnyCPU</PlatformTarget>
12-
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
13-
<CodeAnalysisRuleSet>../engine/OpenRA.ruleset</CodeAnalysisRuleSet>
14-
</PropertyGroup>
15-
<ItemGroup>
16-
<!-- Work around an issue where Rider does not detect files in the project root using the default glob -->
17-
<Compile Include="**/*.cs" Exclude="$(DefaultItemExcludes)" />
18-
</ItemGroup>
19-
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
20-
<DefineConstants>DEBUG;TRACE</DefineConstants>
21-
<Optimize>false</Optimize>
22-
</PropertyGroup>
23-
<ItemGroup>
24-
<ProjectReference Include="../engine/OpenRA.Game/OpenRA.Game.csproj">
25-
<Private>False</Private>
26-
</ProjectReference>
27-
<ProjectReference Include="../engine/OpenRA.Mods.Common/OpenRA.Mods.Common.csproj">
28-
<Private>False</Private>
29-
</ProjectReference>
30-
<PackageReference Include="StyleCop.Analyzers" Version="1.1.118" />
31-
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.0" PrivateAssets="All" />
32-
<AdditionalFiles Include="../engine/stylecop.json" />
33-
</ItemGroup>
34-
<Target Name="DisableAnalyzers" BeforeTargets="CoreCompile" Condition="'$(Configuration)'=='Release'">
35-
<!-- Disable code style analysis on Release builds to improve compile-time performance -->
36-
<ItemGroup Condition="'$(Configuration)'=='Release'">
37-
<Analyzer Remove="@(Analyzer)" />
38-
</ItemGroup>
39-
</Target>
40-
</Project>
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
<PropertyGroup>
3+
<TargetFramework>net472</TargetFramework>
4+
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
5+
<Optimize>true</Optimize>
6+
<LangVersion>7.3</LangVersion>
7+
<DebugSymbols>true</DebugSymbols>
8+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
9+
<OutputPath>../engine/bin</OutputPath>
10+
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
11+
<PlatformTarget>AnyCPU</PlatformTarget>
12+
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
13+
<CodeAnalysisRuleSet>../engine/OpenRA.ruleset</CodeAnalysisRuleSet>
14+
</PropertyGroup>
15+
<ItemGroup>
16+
<!-- Work around an issue where Rider does not detect files in the project root using the default glob -->
17+
<Compile Include="**/*.cs" Exclude="$(DefaultItemExcludes)" />
18+
</ItemGroup>
19+
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
20+
<DefineConstants>DEBUG;TRACE</DefineConstants>
21+
<Optimize>false</Optimize>
22+
</PropertyGroup>
23+
<ItemGroup>
24+
<ProjectReference Include="../engine/OpenRA.Game/OpenRA.Game.csproj">
25+
<Private>False</Private>
26+
</ProjectReference>
27+
<ProjectReference Include="../engine/OpenRA.Mods.Common/OpenRA.Mods.Common.csproj">
28+
<Private>False</Private>
29+
</ProjectReference>
30+
<PackageReference Include="StyleCop.Analyzers" Version="1.1.118" />
31+
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.0" PrivateAssets="All" />
32+
<AdditionalFiles Include="../engine/stylecop.json" />
33+
</ItemGroup>
34+
<Target Name="DisableAnalyzers" BeforeTargets="CoreCompile" Condition="'$(Configuration)'=='Release'">
35+
<!-- Disable code style analysis on Release builds to improve compile-time performance -->
36+
<ItemGroup Condition="'$(Configuration)'=='Release'">
37+
<Analyzer Remove="@(Analyzer)" />
38+
</ItemGroup>
39+
</Target>
40+
</Project>

launch-dedicated.cmd

Lines changed: 50 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,50 @@
1-
:: example launch script, see https://github.com/OpenRA/OpenRA/wiki/Dedicated for details
2-
3-
@echo on
4-
5-
set Name="Dedicated Server"
6-
set ListenPort=1234
7-
set AdvertiseOnline=True
8-
set Password=""
9-
10-
set RequireAuthentication=False
11-
set ProfileIDBlacklist=""
12-
set ProfileIDWhitelist=""
13-
14-
set EnableSingleplayer=False
15-
set EnableSyncReports=False
16-
set EnableGeoIP=True
17-
set ShareAnonymizedIPs=True
18-
19-
@echo off
20-
setlocal EnableDelayedExpansion
21-
22-
title %Name%
23-
FOR /F "tokens=1,2 delims==" %%A IN (mod.config) DO (set %%A=%%B)
24-
if exist user.config (FOR /F "tokens=1,2 delims==" %%A IN (user.config) DO (set %%A=%%B))
25-
set MOD_SEARCH_PATHS=%~dp0mods,./mods
26-
27-
if "!MOD_ID!" == "" goto badconfig
28-
if "!ENGINE_VERSION!" == "" goto badconfig
29-
if "!ENGINE_DIRECTORY!" == "" goto badconfig
30-
31-
if not exist %ENGINE_DIRECTORY%\bin\OpenRA.exe goto noengine
32-
>nul find %ENGINE_VERSION% %ENGINE_DIRECTORY%\VERSION || goto noengine
33-
cd %ENGINE_DIRECTORY%
34-
35-
:loop
36-
bin\OpenRA.Server.exe Game.Mod=%MOD_ID% Engine.EngineDir=".." Server.Name=%Name% Server.ListenPort=%ListenPort% Server.AdvertiseOnline=%AdvertiseOnline% Server.EnableSingleplayer=%EnableSingleplayer% Server.Password=%Password% Server.RequireAuthentication=%RequireAuthentication% Server.ProfileIDBlacklist=%ProfileIDBlacklist% Server.ProfileIDWhitelist=%ProfileIDWhitelist% Server.EnableSyncReports=%EnableSyncReports% Server.EnableGeoIP=%EnableGeoIP% Server.ShareAnonymizedIPs=%ShareAnonymizedIPs% Engine.SupportDir=%SupportDir%
37-
goto loop
38-
39-
:noengine
40-
echo Required engine files not found.
41-
echo Run `make all` in the mod directory to fetch and build the required files, then try again.
42-
pause
43-
exit /b
44-
45-
:badconfig
46-
echo Required mod.config variables are missing.
47-
echo Ensure that MOD_ID ENGINE_VERSION and ENGINE_DIRECTORY are
48-
echo defined in your mod.config (or user.config) and try again.
49-
pause
50-
exit /b
1+
:: example launch script, see https://github.com/OpenRA/OpenRA/wiki/Dedicated for details
2+
3+
@echo on
4+
5+
set Name="Dedicated Server"
6+
set ListenPort=1234
7+
set AdvertiseOnline=True
8+
set Password=""
9+
10+
set RequireAuthentication=False
11+
set ProfileIDBlacklist=""
12+
set ProfileIDWhitelist=""
13+
14+
set EnableSingleplayer=False
15+
set EnableSyncReports=False
16+
set EnableGeoIP=True
17+
set ShareAnonymizedIPs=True
18+
19+
@echo off
20+
setlocal EnableDelayedExpansion
21+
22+
title %Name%
23+
FOR /F "tokens=1,2 delims==" %%A IN (mod.config) DO (set %%A=%%B)
24+
if exist user.config (FOR /F "tokens=1,2 delims==" %%A IN (user.config) DO (set %%A=%%B))
25+
set MOD_SEARCH_PATHS=%~dp0mods,./mods
26+
27+
if "!MOD_ID!" == "" goto badconfig
28+
if "!ENGINE_VERSION!" == "" goto badconfig
29+
if "!ENGINE_DIRECTORY!" == "" goto badconfig
30+
31+
if not exist %ENGINE_DIRECTORY%\bin\OpenRA.exe goto noengine
32+
>nul find %ENGINE_VERSION% %ENGINE_DIRECTORY%\VERSION || goto noengine
33+
cd %ENGINE_DIRECTORY%
34+
35+
:loop
36+
bin\OpenRA.Server.exe Game.Mod=%MOD_ID% Engine.EngineDir=".." Server.Name=%Name% Server.ListenPort=%ListenPort% Server.AdvertiseOnline=%AdvertiseOnline% Server.EnableSingleplayer=%EnableSingleplayer% Server.Password=%Password% Server.RequireAuthentication=%RequireAuthentication% Server.ProfileIDBlacklist=%ProfileIDBlacklist% Server.ProfileIDWhitelist=%ProfileIDWhitelist% Server.EnableSyncReports=%EnableSyncReports% Server.EnableGeoIP=%EnableGeoIP% Server.ShareAnonymizedIPs=%ShareAnonymizedIPs% Engine.SupportDir=%SupportDir%
37+
goto loop
38+
39+
:noengine
40+
echo Required engine files not found.
41+
echo Run `make all` in the mod directory to fetch and build the required files, then try again.
42+
pause
43+
exit /b
44+
45+
:badconfig
46+
echo Required mod.config variables are missing.
47+
echo Ensure that MOD_ID ENGINE_VERSION and ENGINE_DIRECTORY are
48+
echo defined in your mod.config (or user.config) and try again.
49+
pause
50+
exit /b

0 commit comments

Comments
 (0)