Skip to content

Commit

Permalink
Disabled some unused code
Browse files Browse the repository at this point in the history
  Italian Localization
  • Loading branch information
linuxgurugamer committed May 14, 2021
1 parent 7dc37e3 commit 27a1b71
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 21 deletions.
5 changes: 5 additions & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
ChangeLog

1.9.9
Disabled some unused code
Thanks to github user @frankieorabona for this:
Italian Localization

1.9.8.9
Added check to "ScienceAlertProfileManager.OnSave" check that a game is loaded before trying to save data

Expand Down
4 changes: 2 additions & 2 deletions ScienceAlert.version
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"VERSION": {
"MAJOR": 1,
"MINOR": 9,
"PATCH": 8,
"BUILD": 9
"PATCH": 9,
"BUILD": 0
},
"KSP_VERSION_MIN": {
"MAJOR": 1,
Expand Down
11 changes: 6 additions & 5 deletions Source/GetAssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using KSPAchievements;
using System;
using System;

namespace ReeperCommon
{
Expand Down Expand Up @@ -64,15 +63,15 @@ public static string GetVersionStringFromAssembly(string pAssemblyDisplayName)
return tVersion;
}//string GetVersionStringFromAssemblyEmbedded(string pAssemblyDisplayName)


#if false
public static string GetVersionString(Version pVersion)
{
string tVersion = "Unknown";
if (pVersion == null) { return tVersion; }
tVersion = GetVersionString(pVersion.ToString());
return tVersion;
}//string GetVersionString(Version pVersion)

#endif

public static string GetVersionString(string pVersionString)
{
Expand All @@ -89,13 +88,15 @@ public static string GetVersionString(string pVersionString)
return tVersion;
}//string GetVersionString(Version pVersion)

#if false
public class VersionNumbers
{
public uint major = 0;
public uint minor = 0;
public uint patch = 0;
public uint build = 0;
}

public static VersionNumbers GetVersionNumbers(string pVersionString)
{
string tVersion = "Unknown";
Expand Down Expand Up @@ -129,7 +130,6 @@ public static VersionNumbers GetVersionNumbers(string pVersionString)
return vn; ;
}//string GetVersionNumbers(Version pVersion)


public static string GetVersionStringFromAssemblyEmbedded(string pAssemblyDisplayName)
{
string tVersion = "Unknown";
Expand All @@ -152,6 +152,7 @@ public static string GetVersionStringFromAssemblyDLL(string pAssemblyDisplayName
tVersion = GetVersionString(tMyAssembly.GetName().Version.ToString());
return tVersion;
}//string GetVersionStringFromAssemblyEmbedded(string pAssemblyDisplayName)
#endif

}
}
31 changes: 18 additions & 13 deletions Source/ScienceAlert.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|AnyCPU'">
<DebugType>portable</DebugType>
</PropertyGroup>
<ItemGroup>
<Reference Include="$(KSPDIR)\KSP_x64_Data\Managed\Assembly*.dll">
<Private>False</Private>
Expand All @@ -38,10 +41,10 @@
<Private>False</Private>
</Reference>
<Reference Include="DMagic">
<HintPath>R:\KSP_1.9.1_dev\GameData\DMagicOrbitalScience\Plugins\DMagic.dll</HintPath>
<HintPath>$(KSPDIR)\GameData\DMagicOrbitalScience\Plugins\DMagic.dll</HintPath>
</Reference>
<Reference Include="DMModuleScienceAnimateGeneric">
<HintPath>R:\KSP_1.9.1_dev\GameData\DMagicScienceAnimate\DMModuleScienceAnimateGeneric.dll</HintPath>
<HintPath>$(KSPDIR)\GameData\DMagicScienceAnimate\DMModuleScienceAnimateGeneric.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="ClickThroughBlocker">
Expand Down Expand Up @@ -106,28 +109,30 @@
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>"..\..\..\..\pdb2mdb.exe" "$(TargetPath)"
<PostBuildEvent>
set KSPDIR=$(KSPDIR)

IF "%25KSPDIR%25"=="" (

ECHO Configuration error - KSPDIR not specified in project.

start /D D:\Users\jbb\github\ScienceAlert /WAIT deploy.bat $(TargetDir) $(TargetFileName)
ECHO Either set KSPDIR environment variable or edit BetterLoadSaveGame.Common.props

PAUSE

GOTO DONE

if $(ConfigurationName) == Release (
)

start /D $(SolutionDir) /WAIT deploy.bat $(TargetDir) $(TargetFileName) $(TargetName)

start /D D:\Users\jbb\github\ScienceAlert /WAIT buildRelease.bat $(TargetDir) $(TargetFileName)
if $(ConfigurationName) == Release (

start /D $(SolutionDir) /WAIT buildRelease.bat $(TargetDir) $(TargetFileName) $(TargetName)

)
</PostBuildEvent>
)</PostBuildEvent>
</PropertyGroup>
<PropertyGroup>
<PreBuildEvent>
set textTemplatingPath="%25ProgramFiles(x86)%25\Microsoft Visual Studio\2017\Community\Common7\IDE\texttransform.exe"

%25textTemplatingPath%25 "$(ProjectDir)AssemblyVersion.tt"
</PreBuildEvent>
<PreBuildEvent>"$(DevEnvDir)\texttransform.exe" "$(ProjectDir)AssemblyVersion.tt"</PreBuildEvent>
</PropertyGroup>
</Project>
4 changes: 3 additions & 1 deletion deploy.bat
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ rem VERSIONFILE is the name of the version file, usually the same as GAMEDATA,
rem but not always

set H=%KSPDIR%
set H=R:\KSP_1.9.1_Tetrix

set GAMEDIR=ScienceAlert
set GAMEDATA="GameData"
set VERSIONFILE=%GAMEDIR%.version
Expand All @@ -17,3 +17,5 @@ copy /Y "%1%2" "%GAMEDATA%\%GAMEDIR%\Plugins"
copy /Y %VERSIONFILE% %GAMEDATA%\%GAMEDIR%

xcopy /y /s /I %GAMEDATA%\%GAMEDIR% "%H%\GameData\%GAMEDIR%"

rem pause

0 comments on commit 27a1b71

Please sign in to comment.