-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3133 from pleroy/3037
A small DLL that will tell the user that they installed the source instead of the binary
- 2025022801-خوارزمی
- 2025012913-Kuratowski
- 2024123022-Kummer
- 2024120106-Крылов
- 2024110113-Kronecker
- 2024100219-Колмогоров
- 2024090302-von Koch
- 2024080411-Klein
- 2024070523-Kleene
- 2024060613-𒁹𒆠𒁷𒉡
- 2024050803-کاشانی
- 2024040818-Καραθεοδωρή
- 2024031009-Канторович
- 2024020923-掛谷
- 2024011112-Julia
- 2023121300-Jordan
- 2023111209-賈憲
- 2023101418-𓇹𓄟𓋴𓏲
- 2023091502-Jensen
- 2023081610-Jacobi
- 2023071719-岩澤
- 2023061805-伊藤
- 2023051916-ابن الهيثم
- 2023042004-Ὑπατία
- 2023032117-Hurwitz
- 2023022007-Householder
- 2023012121-Horner
- 2022122310-l’Hôpital
- 2022112323-Ἱπποκράτης
- 2022102511-Ἱππίας
- 2022092522-Ἵππασος
- 2022082708-Ἵππαρχος
- 2022072818-Hilbert
- 2022062903-Hesse
- 2022053012-Ἥρων
- 2022043020-Hermite
- 2022040106-Heine
- 2022030218-Hausdorff
- 2022020106-हरीशचंद्र
- 2022010219-Hardy
- 2021120408-Hamilton
- 2021110421-Halley
- 2021100611-Hadamard
Showing
10 changed files
with
193 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace principia { | ||
namespace ksp_plugin_adapter { | ||
|
||
internal static class ConfigNodeExtensions { | ||
public static string GetAtMostOneValue(this ConfigNode node, string name) { | ||
return string.Empty; | ||
} | ||
} | ||
|
||
} // namespace ksp_plugin_adapter | ||
} // namespace principia |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.IO; | ||
using System.Linq; | ||
using KSP.Localization; | ||
|
||
namespace principia { | ||
namespace ksp_plugin_adapter { | ||
|
||
[KSPScenario(createOptions: ScenarioCreationOptions.AddToAllGames, | ||
tgtScenes: new GameScenes[]{GameScenes.FLIGHT, | ||
GameScenes.MAINMENU, | ||
GameScenes.SPACECENTER, | ||
GameScenes.TRACKSTATION})] | ||
public partial class PrincipiaPluginAdapterStub : ScenarioModule, | ||
SupervisedWindowRenderer. | ||
ISupervisor { | ||
[KSPField(isPersistant = true)] | ||
private readonly Dialog dll_stub_executed_ = new Dialog(persist_state: false); | ||
|
||
#pragma warning disable 67 | ||
public event Action LockClearing; | ||
public event Action WindowsDisposal; | ||
public event Action WindowsRendering; | ||
#pragma warning restore 67 | ||
|
||
PrincipiaPluginAdapterStub() { | ||
dll_stub_executed_.message = | ||
Localizer.Format("#Principia_DLLStubExecuted"); | ||
dll_stub_executed_.Show(); | ||
} | ||
|
||
private void OnGUI() { | ||
dll_stub_executed_.RenderWindow(); | ||
} | ||
} | ||
|
||
} // namespace ksp_plugin_adapter | ||
} // namespace principia |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> | ||
<PropertyGroup> | ||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | ||
<ProjectGuid>{34D500D6-4197-4665-BFDC-594957137CD6}</ProjectGuid> | ||
<OutputType>Library</OutputType> | ||
<AppDesignerFolder>Properties</AppDesignerFolder> | ||
<RootNamespace>principia.ksp_plugin_adapter</RootNamespace> | ||
<AssemblyName>principia.ksp_plugin_adapter_stub</AssemblyName> | ||
<FileAlignment>512</FileAlignment> | ||
<TargetFrameworkProfile /> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||
<DebugSymbols>true</DebugSymbols> | ||
<DebugType>full</DebugType> | ||
<Optimize>false</Optimize> | ||
<OutputPath>..\Debug\GameData\Principia\</OutputPath> | ||
<DefineConstants>TRACE;DEBUG</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
<AllowUnsafeBlocks>false</AllowUnsafeBlocks> | ||
<Prefer32Bit>false</Prefer32Bit> | ||
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | ||
<DebugType>full</DebugType> | ||
<Optimize>true</Optimize> | ||
<OutputPath>..\Release\GameData\Principia\</OutputPath> | ||
<DefineConstants>TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
<DebugSymbols>true</DebugSymbols> | ||
<AllowUnsafeBlocks>false</AllowUnsafeBlocks> | ||
<Prefer32Bit>false</Prefer32Bit> | ||
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion> | ||
</PropertyGroup> | ||
<ItemGroup Condition="'$(Configuration)' == 'Release' Or '$(Configuration)' == 'Debug'"> | ||
<Reference Include="Assembly-CSharp"> | ||
<HintPath>..\..\KSP Assemblies\1.12.2\Assembly-CSharp.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="System" /> | ||
<Reference Include="UnityEngine"> | ||
<HintPath>..\..\KSP Assemblies\1.12.2\UnityEngine.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="UnityEngine.CoreModule"> | ||
<HintPath>..\..\KSP Assemblies\1.12.2\UnityEngine.CoreModule.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="UnityEngine.ImageConversionModule"> | ||
<HintPath>..\..\KSP Assemblies\1.12.2\UnityEngine.ImageConversionModule.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="UnityEngine.IMGUIModule"> | ||
<HintPath>..\..\KSP Assemblies\1.12.2\UnityEngine.IMGUIModule.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="UnityEngine.InputLegacyModule"> | ||
<HintPath>..\..\KSP Assemblies\1.12.2\UnityEngine.InputLegacyModule.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="UnityEngine.PhysicsModule"> | ||
<HintPath>..\..\KSP Assemblies\1.12.2\UnityEngine.PhysicsModule.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="UnityEngine.TextRenderingModule"> | ||
<HintPath>..\..\KSP Assemblies\1.12.2\UnityEngine.TextRenderingModule.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="UnityEngine.UI"> | ||
<HintPath>..\..\KSP Assemblies\1.12.2\UnityEngine.UI.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Compile Include="config_node_extensions_stub.cs" /> | ||
<Compile Include="ksp_plugin_adapter_stub.cs" /> | ||
<Compile Include="..\ksp_plugin_adapter\dialog.cs" /> | ||
<Compile Include="..\ksp_plugin_adapter\style.cs" /> | ||
<Compile Include="..\ksp_plugin_adapter\window_renderer.cs" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="ksp_plugin_adapter_stub.dll.config" /> | ||
<None Include="localization\en-us.cfg" /> | ||
<None Include="localization\fr-fr.cfg" /> | ||
<None Include="localization\zh-cn.cfg" /> | ||
</ItemGroup> | ||
<ItemGroup /> | ||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> | ||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. | ||
Other similar extension points exist, see Microsoft.Common.targets. | ||
<Target Name="BeforeBuild"> | ||
</Target> | ||
<Target Name="AfterBuild"> | ||
</Target> | ||
--> | ||
<Target Name="Rename" AfterTargets="AfterBuild" Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | ||
<Move SourceFiles="$(TargetPath)" DestinationFiles="$(ProjectDir)$(ProjectName)$(TargetExt)" /> | ||
<Message Text="Renamed $(TargetPath) to $(ProjectDir)$(ProjectName)$(TargetExt)" Importance="high" /> | ||
<Move SourceFiles="$(OutDir)$(TargetName).pdb" DestinationFiles="$(ProjectDir)$(ProjectName).pdb" /> | ||
<Message Text="Renamed $(OutDir)$(TargetName).pdb to $(ProjectDir)$(ProjectName).pdb" Importance="high" /> | ||
</Target> | ||
</Project> |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<configuration> | ||
<dllmap dll="principia" os="windows" cpu="x86-64" target="GameData/Principia/x64/principia.dll"/> | ||
<dllmap dll="principia" os="linux" cpu="x86-64" target="GameData/Principia/Linux64/principia.so"/> | ||
<dllmap dll="principia" os="osx" cpu="x86-64" target="GameData/Principia/MacOS64/principia.so" /> | ||
</configuration> |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Localization { | ||
en-us { | ||
#Principia_DLLStubExecuted = You are trying to execute the source code of Principia instead the binary.\nPlease download the binary from the short links in https:\u002F\u002Fgithub.com/mockingbirdnest/Principia#readme. | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Localization { | ||
fr-fr { | ||
#Principia_DLLStubExecuted = Vous êtes en train d'essayer d'exécuter le code source de Principia au lieu du binaire.\nVeuillez télécharger le binaire depuis les liens courts se trouvant dans https:\u002F\u002Fgithub.com/mockingbirdnest/Principia#readme. | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Localization { | ||
zh-cn { | ||
#Principia_DLLStubExecuted = You are trying to execute the source code of Principia instead the binary.\nPlease download the binary from the short links in https:\u002F\u002Fgithub.com/mockingbirdnest/Principia#readme. | ||
} | ||
} |