mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-04-08 18:35:09 +02:00
change debug mode detection for file watcher
This commit is contained in:
parent
ac49967a61
commit
01ce289fd6
@ -139,10 +139,11 @@ Public Class OverworldScreen
|
||||
'Load the particle texture.
|
||||
Me._particlesTexture = TextureManager.GetTexture("GUI\Overworld\Particles")
|
||||
|
||||
' start watching files for changes
|
||||
#If DEBUG Then
|
||||
DebugFileWatcher.StartWatching()
|
||||
#End If
|
||||
If GameController.IS_DEBUG_ACTIVE Then
|
||||
' start watching files for changes
|
||||
DebugFileWatcher.StartWatching()
|
||||
End If
|
||||
|
||||
End Sub
|
||||
|
||||
''' <summary>
|
||||
|
@ -700,9 +700,9 @@ Public Class Level
|
||||
Public Sub Load(ByVal Levelpath As String)
|
||||
|
||||
' copy all changed files
|
||||
#If DEBUG Then
|
||||
DebugFileWatcher.TriggerReload()
|
||||
#End If
|
||||
If GameController.IS_DEBUG_ACTIVE Then
|
||||
DebugFileWatcher.TriggerReload()
|
||||
End If
|
||||
|
||||
' Create a parameter array to pass over to the LevelLoader:
|
||||
Dim params As New List(Of Object)
|
||||
|
Loading…
x
Reference in New Issue
Block a user