File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -19,14 +19,24 @@ internal void Start()
19
19
Log ( TECHTREE_CONFIG . Path ) ;
20
20
Log ( TECHTREE_CONFIG . IsLoadable . ToString ( ) ) ;
21
21
#endif
22
- if ( ! start_techtree_loaded && TECHTREE_CONFIG . IsLoadable )
22
+ if ( start_techtree_loaded )
23
+ {
24
+ if ( HighLogic . CurrentGame . Parameters . Career . TechTreeUrl != TECHTREE_CONFIG . KspPath )
25
+ Log ( string . Format ( "Tech tree was changed by third party to [{0}]." , HighLogic . CurrentGame . Parameters . Career . TechTreeUrl ) ) ;
26
+ }
27
+ else if ( TECHTREE_CONFIG . IsLoadable )
23
28
{
24
29
Log ( "Setting modded tech tree as the active one" ) ;
25
30
HighLogic . CurrentGame . Parameters . Career . TechTreeUrl = TECHTREE_CONFIG . KspPath ;
26
31
start_techtree_loaded = true ;
27
32
}
28
33
29
- if ( ! start_physics_loaded && PHYSICS_CONFIG . IsLoadable )
34
+ if ( start_physics_loaded )
35
+ {
36
+ if ( PhysicsGlobals . PhysicsDatabaseFilename != PHYSICS_CONFIG . Path )
37
+ Log ( string . Format ( "Physics changed by third party to [{0}]." , PhysicsGlobals . PhysicsDatabaseFilename ) ) ;
38
+ }
39
+ else if ( PHYSICS_CONFIG . IsLoadable )
30
40
{
31
41
Log ( "Setting modded physics as the active one" ) ;
32
42
PhysicsGlobals . PhysicsDatabaseFilename = PHYSICS_CONFIG . Path ;
You can’t perform that action at this time.
0 commit comments