Skip to content

Commit 1132ce5

Browse files
Windows Version 1.0.0
/Basically changed some folder paths.
1 parent 0761024 commit 1132ce5

5 files changed

Lines changed: 12 additions & 55 deletions

File tree

HookAttribute/HookAttribute.csproj

Lines changed: 4 additions & 15 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>..\Output\</OutputPath>
19+
<OutputPath>..\..\BPGame\bpgameserver_Data\Managed</OutputPath>
2020
<DefineConstants>DEBUG;TRACE</DefineConstants>
2121
<ErrorReport>prompt</ErrorReport>
2222
<WarningLevel>4</WarningLevel>
@@ -30,20 +30,9 @@
3030
<WarningLevel>4</WarningLevel>
3131
</PropertyGroup>
3232
<ItemGroup>
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>
33+
<Reference Include="HookAttribute, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
34+
<SpecificVersion>False</SpecificVersion>
35+
<HintPath>..\Output\HookAttribute.dll</HintPath>
4736
</Reference>
4837
<Reference Include="System" />
4938
<Reference Include="System.Core" />

HooksInjector/HooksInjector.csproj

Lines changed: 4 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -12,28 +12,13 @@
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>
3015
</PropertyGroup>
3116
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
3217
<PlatformTarget>AnyCPU</PlatformTarget>
3318
<DebugSymbols>true</DebugSymbols>
3419
<DebugType>full</DebugType>
3520
<Optimize>true</Optimize>
36-
<OutputPath>..\Output\</OutputPath>
21+
<OutputPath>.\</OutputPath>
3722
<DefineConstants>DEBUG;TRACE</DefineConstants>
3823
<ErrorReport>prompt</ErrorReport>
3924
<WarningLevel>4</WarningLevel>
@@ -48,9 +33,6 @@
4833
<WarningLevel>4</WarningLevel>
4934
</PropertyGroup>
5035
<ItemGroup>
51-
<Reference Include="HookAttribute">
52-
<HintPath>..\Output\HookAttribute.dll</HintPath>
53-
</Reference>
5436
<Reference Include="Mono.Cecil, Version=0.9.6.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756, processorArchitecture=MSIL">
5537
<SpecificVersion>False</SpecificVersion>
5638
<HintPath>..\Mono.Cecil\Mono.Cecil.dll</HintPath>
@@ -76,6 +58,9 @@
7658
<Reference Include="Microsoft.CSharp" />
7759
<Reference Include="System.Data" />
7860
<Reference Include="System.Xml" />
61+
<Reference Include="HookAttribute">
62+
<HintPath>..\..\BPGame\bpgameserver_Data\Managed\HookAttribute.dll</HintPath>
63+
</Reference>
7964
<Reference Include="System.Core" />
8065
<Reference Include="System" />
8166
</ItemGroup>
@@ -90,12 +75,5 @@
9075
<None Include="App.config" />
9176
<None Include="packages.config" />
9277
</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>
10078
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
10179
</Project>

HooksInjector/HooksInjector.csproj.user

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,4 @@
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>
2010
</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)