Skip to content

Commit c63cacd

Browse files
Version 1.0.0
Check previous commit, Accidentally overwrote everything with the windows version because it's 2AM.
1 parent 1132ce5 commit c63cacd

5 files changed

Lines changed: 55 additions & 12 deletions

File tree

HookAttribute/HookAttribute.csproj

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<DebugSymbols>true</DebugSymbols>
1717
<DebugType>full</DebugType>
1818
<Optimize>false</Optimize>
19-
<OutputPath>..\..\BPGame\bpgameserver_Data\Managed</OutputPath>
19+
<OutputPath>..\Output\</OutputPath>
2020
<DefineConstants>DEBUG;TRACE</DefineConstants>
2121
<ErrorReport>prompt</ErrorReport>
2222
<WarningLevel>4</WarningLevel>
@@ -30,9 +30,20 @@
3030
<WarningLevel>4</WarningLevel>
3131
</PropertyGroup>
3232
<ItemGroup>
33-
<Reference Include="HookAttribute, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
34-
<SpecificVersion>False</SpecificVersion>
35-
<HintPath>..\Output\HookAttribute.dll</HintPath>
33+
<Reference Include="Mono.Cecil">
34+
<HintPath>..\Mono.Cecil\Mono.Cecil.dll</HintPath>
35+
</Reference>
36+
<Reference Include="Mono.Cecil.Inject">
37+
<HintPath>..\Mono.Cecil\Mono.Cecil.Inject.dll</HintPath>
38+
</Reference>
39+
<Reference Include="Mono.Cecil.Mdb">
40+
<HintPath>..\Mono.Cecil\Mono.Cecil.Mdb.dll</HintPath>
41+
</Reference>
42+
<Reference Include="Mono.Cecil.Pdb">
43+
<HintPath>..\Mono.Cecil\Mono.Cecil.Pdb.dll</HintPath>
44+
</Reference>
45+
<Reference Include="Mono.Cecil.Rocks">
46+
<HintPath>..\Mono.Cecil\Mono.Cecil.Rocks.dll</HintPath>
3647
</Reference>
3748
<Reference Include="System" />
3849
<Reference Include="System.Core" />

HooksInjector/HooksInjector.csproj

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,28 @@
1212
<FileAlignment>512</FileAlignment>
1313
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
1414
<TargetFrameworkProfile />
15+
<PublishUrl>publish\</PublishUrl>
16+
<Install>true</Install>
17+
<InstallFrom>Disk</InstallFrom>
18+
<UpdateEnabled>false</UpdateEnabled>
19+
<UpdateMode>Foreground</UpdateMode>
20+
<UpdateInterval>7</UpdateInterval>
21+
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
22+
<UpdatePeriodically>false</UpdatePeriodically>
23+
<UpdateRequired>false</UpdateRequired>
24+
<MapFileExtensions>true</MapFileExtensions>
25+
<ApplicationRevision>0</ApplicationRevision>
26+
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
27+
<IsWebBootstrapper>false</IsWebBootstrapper>
28+
<UseApplicationTrust>false</UseApplicationTrust>
29+
<BootstrapperEnabled>true</BootstrapperEnabled>
1530
</PropertyGroup>
1631
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
1732
<PlatformTarget>AnyCPU</PlatformTarget>
1833
<DebugSymbols>true</DebugSymbols>
1934
<DebugType>full</DebugType>
2035
<Optimize>true</Optimize>
21-
<OutputPath>.\</OutputPath>
36+
<OutputPath>..\Output\</OutputPath>
2237
<DefineConstants>DEBUG;TRACE</DefineConstants>
2338
<ErrorReport>prompt</ErrorReport>
2439
<WarningLevel>4</WarningLevel>
@@ -33,6 +48,9 @@
3348
<WarningLevel>4</WarningLevel>
3449
</PropertyGroup>
3550
<ItemGroup>
51+
<Reference Include="HookAttribute">
52+
<HintPath>..\Output\HookAttribute.dll</HintPath>
53+
</Reference>
3654
<Reference Include="Mono.Cecil, Version=0.9.6.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756, processorArchitecture=MSIL">
3755
<SpecificVersion>False</SpecificVersion>
3856
<HintPath>..\Mono.Cecil\Mono.Cecil.dll</HintPath>
@@ -58,9 +76,6 @@
5876
<Reference Include="Microsoft.CSharp" />
5977
<Reference Include="System.Data" />
6078
<Reference Include="System.Xml" />
61-
<Reference Include="HookAttribute">
62-
<HintPath>..\..\BPGame\bpgameserver_Data\Managed\HookAttribute.dll</HintPath>
63-
</Reference>
6479
<Reference Include="System.Core" />
6580
<Reference Include="System" />
6681
</ItemGroup>
@@ -75,5 +90,12 @@
7590
<None Include="App.config" />
7691
<None Include="packages.config" />
7792
</ItemGroup>
93+
<ItemGroup>
94+
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
95+
<Visible>False</Visible>
96+
<ProductName>.NET Framework 3.5 SP1</ProductName>
97+
<Install>false</Install>
98+
</BootstrapperPackage>
99+
</ItemGroup>
78100
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
79101
</Project>

HooksInjector/HooksInjector.csproj.user

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,14 @@
77
<StartAction>Project</StartAction>
88
<StartWorkingDirectory>..\..\BPGame</StartWorkingDirectory>
99
</PropertyGroup>
10+
<PropertyGroup>
11+
<PublishUrlHistory>publish\</PublishUrlHistory>
12+
<InstallUrlHistory />
13+
<SupportUrlHistory />
14+
<UpdateUrlHistory />
15+
<BootstrapperUrlHistory />
16+
<ErrorReportUrlHistory />
17+
<FallbackCulture>en-US</FallbackCulture>
18+
<VerifyUploadedFiles>false</VerifyUploadedFiles>
19+
</PropertyGroup>
1020
</Project>

HooksInjector/Program.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public static void Main(string[] args)
2727
ScriptsParser parser = new ScriptsParser();
2828
ScriptsCompiler compiler = new ScriptsCompiler(PLUGINS_DIRECTORY, _managedFolder);
2929

30-
string gameAssemblyPath = _managedFolder + "\\Assembly-CSharp.dll";
30+
string gameAssemblyPath = _managedFolder + "/Assembly-CSharp.dll";
3131

3232
if (!File.Exists(gameAssemblyPath))
3333
{
@@ -69,7 +69,7 @@ public static void Main(string[] args)
6969

7070
foreach (var pluginFile in Directory.GetFiles(PLUGINS_DIRECTORY))
7171
{
72-
string pluginDestPath = _managedFolder + "\\" + new FileInfo(pluginFile).Name;
72+
string pluginDestPath = _managedFolder + "/" + new FileInfo(pluginFile).Name;
7373
if(File.Exists(pluginDestPath))
7474
{
7575
File.Delete(pluginDestPath);
@@ -107,7 +107,7 @@ private static string FindManagedFolder()
107107
{
108108
if (directory.EndsWith("_Data"))
109109
{
110-
return directory + "\\Managed";
110+
return directory + "/Managed";
111111
}
112112
}
113113

HooksInjector/ScriptsCompiler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public string CompileScript(string scriptFile)
3030
{
3131
CSharpCodeProvider provider = new CSharpCodeProvider();
3232

33-
string outputPath = "Plugins\\" + new FileInfo(scriptFile).Name.Replace(".cs", ".dll");
33+
string outputPath = "Plugins/" + new FileInfo(scriptFile).Name.Replace(".cs", ".dll");
3434
CompilerParameters compilerParams = new CompilerParameters
3535
{
3636
GenerateExecutable = false,

0 commit comments

Comments
 (0)