Skip to content

Commit

Permalink
Fixed nullref when entering game
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxgurugamer committed Dec 26, 2022
1 parent 811693e commit fb2ac76
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 6 deletions.
3 changes: 3 additions & 0 deletions Changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
ChangeLog

2.1.10.20
Fixed nullref when entering game

2.1.10.19
Fixed issue where changing the FocusFollowsClick in the settings wasn't being saved properly
Fixed issue where changing the global setting in the settings wasn't being honored
Expand Down
2 changes: 1 addition & 1 deletion ClickThroughBlocker.version
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"MAJOR": 2,
"MINOR": 1,
"PATCH": 10,
"BUILD": 19
"BUILD": 20
},
"KSP_VERSION_MIN": {
"MAJOR": 1,
Expand Down
4 changes: 2 additions & 2 deletions ClickThroughBlocker/AssemblyVersion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@

using System.Reflection;

[assembly: AssemblyVersion("2.1.10.18")]
[assembly: AssemblyFileVersion("2.1.10.18")]
[assembly: AssemblyVersion("2.1.10.19")]
[assembly: AssemblyFileVersion("2.1.10.19")]
[assembly: KSPAssembly("ClickThroughBlocker", 2, 1, 0)]
2 changes: 1 addition & 1 deletion ClickThroughBlocker/OneTimePopup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ static internal bool GetGlobalDefault(ref bool b)
{
if (System.IO.File.Exists(GlobalDefaultFile))
{
if (HighLogic.CurrentGame.Parameters.CustomParams<CTB>().global)
if (HighLogic.CurrentGame == null || HighLogic.CurrentGame.Parameters.CustomParams<CTB>().global)
{
ConfigNode node = ConfigNode.Load(GlobalDefaultFile);
if (node.TryGetValue("focusFollowsClick", ref b))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"MAJOR": 2,
"MINOR": 1,
"PATCH": 10,
"BUILD": 18
"BUILD": 19
},
"KSP_VERSION_MIN": {
"MAJOR": 1,
Expand Down
11 changes: 11 additions & 0 deletions GameData/000_ClickThroughBlocker/changelog.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@ KERBALCHANGELOG



VERSION
{
version = 2.1.10.19
CHANGE
{
change = Fixed issue where changing the FocusFollowsClick in the settings wasn't being saved properly
change = Fixed issue where changing the global setting in the settings wasn't being honored

type = update
}
}
VERSION
{
version = 2.1.10.18
Expand Down
10 changes: 10 additions & 0 deletions changelog.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ KERBALCHANGELOG
license = Lesser GPLv3
author = Linuxgurugamer

VERSION
{
version = 2.1.10.20
CHANGE
{
change = Fixed nullref when entering game

type = update
}
}


VERSION
Expand Down
2 changes: 1 addition & 1 deletion deploy.bat
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ rem but not always

set H=%KSPDIR%

set H=R:\KSP_1.12.4
rem set H=R:\KSP_1.12.4

set GAMEDIR=000_ClickThroughBlocker
set GAMEDATA=GameData
Expand Down

0 comments on commit fb2ac76

Please sign in to comment.