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.
|
'Load the particle texture.
|
||||||
Me._particlesTexture = TextureManager.GetTexture("GUI\Overworld\Particles")
|
Me._particlesTexture = TextureManager.GetTexture("GUI\Overworld\Particles")
|
||||||
|
|
||||||
|
If GameController.IS_DEBUG_ACTIVE Then
|
||||||
' start watching files for changes
|
' start watching files for changes
|
||||||
#If DEBUG Then
|
|
||||||
DebugFileWatcher.StartWatching()
|
DebugFileWatcher.StartWatching()
|
||||||
#End If
|
End If
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
''' <summary>
|
''' <summary>
|
||||||
|
|
|
@ -700,9 +700,9 @@ Public Class Level
|
||||||
Public Sub Load(ByVal Levelpath As String)
|
Public Sub Load(ByVal Levelpath As String)
|
||||||
|
|
||||||
' copy all changed files
|
' copy all changed files
|
||||||
#If DEBUG Then
|
If GameController.IS_DEBUG_ACTIVE Then
|
||||||
DebugFileWatcher.TriggerReload()
|
DebugFileWatcher.TriggerReload()
|
||||||
#End If
|
End If
|
||||||
|
|
||||||
' Create a parameter array to pass over to the LevelLoader:
|
' Create a parameter array to pass over to the LevelLoader:
|
||||||
Dim params As New List(Of Object)
|
Dim params As New List(Of Object)
|
||||||
|
|
Loading…
Reference in New Issue