Skip to content

Commit

Permalink
Updated AssemblyVersion.tt
Browse files Browse the repository at this point in the history
 Deleted old commented out code
  • Loading branch information
linuxgurugamer committed Jul 7, 2019
1 parent 4ca1380 commit 0c7a9fb
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 67 deletions.
6 changes: 5 additions & 1 deletion Changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,8 @@
Thanks to @4x4cheesecake for the following:
Did localization work
Added German translation
Added Chinese translation from @sosoxia
Added Chinese translation from @sosoxia

0.1.13
Updated AssemblyVersion.tt
Deleted old commented out code
10 changes: 9 additions & 1 deletion HullCamera/AssemblyVersion.tt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,15 @@
int i2 = 0;
string s;

string versionfile = @"D:\Users\jbb\github\HullcamVDSContinued\HullcamVDSContinued.version";

// For Visual Studio / MSBuild Build-Time Template Resolution
string RootDirectory = System.IO.Path.GetDirectoryName(Host.TemplateFile) + @"\..\";

//
// Update the following with the name of the .version file which is in the root directory
//
string versionfile = RootDirectory + "HullcamVDSContinued.version";

if (!File.Exists(versionfile))
{
Write("File: " + versionfile + " missing\n");
Expand Down
8 changes: 4 additions & 4 deletions HullCamera/HullCamera.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -116,20 +116,20 @@ set textTemplatingPath="%25ProgramFiles(x86)%25\Microsoft Visual Studio\2017\Com
<ItemGroup>
<Reference Include="Assembly-CSharp, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>R:\KSP_1.6.1_dev\KSP_x64_Data\Managed\Assembly-CSharp.dll</HintPath>
<HintPath>R:\KSP_1.7.2_dev\KSP_x64_Data\Managed\Assembly-CSharp.dll</HintPath>
</Reference>
<Reference Include="KSPAssets, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>R:\KSP_1.6.1_dev\KSP_x64_Data\Managed\KSPAssets.dll</HintPath>
<HintPath>R:\KSP_1.7.2_dev\KSP_x64_Data\Managed\KSPAssets.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="UnityEngine, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>R:\KSP_1.6.1_dev\KSP_x64_Data\Managed\UnityEngine.dll</HintPath>
<HintPath>R:\KSP_1.7.2_dev\KSP_x64_Data\Managed\UnityEngine.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.UI, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>R:\KSP_1.6.1_dev\KSP_x64_Data\Managed\UnityEngine.UI.dll</HintPath>
<HintPath>R:\KSP_1.7.2_dev\KSP_x64_Data\Managed\UnityEngine.UI.dll</HintPath>
</Reference>
</ItemGroup>
</Project>
28 changes: 0 additions & 28 deletions HullCamera/MuMechModuleHullCamera.cs
Original file line number Diff line number Diff line change
Expand Up @@ -326,17 +326,6 @@ protected static void RestoreMainCamera()
{
if (GameSettings.MODIFIER_KEY.GetKey(false))
{
#if false
ModuleDockingNode mdn = sOrigVesselTransformPart.FindModuleImplementing<ModuleDockingNode>();
if (mdn != null)
{
sOrigVesselTransformPart.SetReferenceTransform(mdn.controlTransform);
} else
#endif
{
// sOrigVesselTransformPart.SetReferenceTransform(sOrigVesselTransformPart.GetReferenceTransform());
}

FlightGlobals.ActiveVessel.SetReferenceTransform(sOrigVesselTransformPart, true);
ScreenMessages.PostScreenMessage(locControlPointRestored + " " + sOrigVesselTransformPart.partInfo.title);
sOrigVesselTransformPart = null;
Expand Down Expand Up @@ -631,23 +620,6 @@ public void LateUpdate()
sCurrentHandler = this;
}

#if false
if (Input.GetKeyDown(KeyCode.Y) ) {

print (sCameras.Count);
print ("sCurrentCamera: " + sCurrentCamera);
print ("This: " + this);
print ("sCurrentHandler: " + sCurrentHandler);
print ("sCurrentCamera.vessel: " + sCurrentCamera.vessel);
print ("FlightGlobals.ActiveVessel: " + FlightGlobals.ActiveVessel);
print (sCameras.Count);
print (sOrigParent);
print (sActionFlags.nextCamera);
print (sCycleToMainCamera);
print (sCameras.IndexOf(sCurrentCamera));
DebugList ();
}
#endif

if (sCurrentCamera != null)
{
Expand Down
2 changes: 1 addition & 1 deletion HullCameraAssets/HullCameraAssets.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>10.0.20506</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{9917D8AF-D347-9FE6-D8BB-E55E56A1E720}</ProjectGuid>
<ProjectGuid>{9917D8AF-D347-9FE6-D8BB-E55E56A1.7.2}</ProjectGuid>
<OutputType>Library</OutputType>
<AssemblyName>Assembly-CSharp</AssemblyName>
<FileAlignment>512</FileAlignment>
Expand Down
7 changes: 1 addition & 6 deletions HullcamVDSContinued.version
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,9 @@
"VERSION": {
"MAJOR": 0,
"MINOR": 1,
"PATCH": 12,
"PATCH": 13,
"BUILD": 0
},
"KSP_VERSION": {
"MAJOR": 1,
"MINOR": 5,
"PATCH": 1
},
"KSP_VERSION_MIN": {
"MAJOR": 1,
"MINOR": 5,
Expand Down
25 changes: 0 additions & 25 deletions HullcamVDSContinued.version.old

This file was deleted.

2 changes: 1 addition & 1 deletion deploy.bat
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ rem GAMEDATA is the name of the local GameData
rem VERSIONFILE is the name of the version file, usually the same as GAMEDATA,
rem but not always

set H=R:\KSP_1.6.1_dev
set H=R:\KSP_1.7.2_dev
set GAMEDIR=HullCameraVDS
set GAMEDATA="GameData\"
set VERSIONFILE=%GAMEDIR%.version
Expand Down

0 comments on commit 0c7a9fb

Please sign in to comment.