diff --git a/LuaDebugAttacher_x64/LuaDebugAttacher_x64.vcxproj b/LuaDebugAttacher_x64/LuaDebugAttacher_x64.vcxproj
index c38ab2d..44331e6 100644
--- a/LuaDebugAttacher_x64/LuaDebugAttacher_x64.vcxproj
+++ b/LuaDebugAttacher_x64/LuaDebugAttacher_x64.vcxproj
@@ -14,19 +14,19 @@
16.0
{4D877B09-CA72-4416-B2F9-B4E243C0D51F}
LuaDebugAttacherx64
- 10.0.17763.0
+ 10.0
Application
true
- v141
+ v143
Unicode
Application
false
- v141
+ v143
true
Unicode
diff --git a/LuaDebugHelper_x64/LuaDebugHelper_x64.vcxproj b/LuaDebugHelper_x64/LuaDebugHelper_x64.vcxproj
index f5a74ba..764594b 100644
--- a/LuaDebugHelper_x64/LuaDebugHelper_x64.vcxproj
+++ b/LuaDebugHelper_x64/LuaDebugHelper_x64.vcxproj
@@ -15,19 +15,19 @@
{D0A573AC-3559-4D68-B617-0EEC056FA018}
Win32Proj
LuaDebugHelperx64
- 10.0.17763.0
+ 10.0
DynamicLibrary
true
- v141
+ v143
Unicode
DynamicLibrary
false
- v141
+ v143
false
Unicode
diff --git a/LuaDebugHelper_x86/LuaDebugHelper_x86.vcxproj b/LuaDebugHelper_x86/LuaDebugHelper_x86.vcxproj
index e23d2ca..292a6cb 100644
--- a/LuaDebugHelper_x86/LuaDebugHelper_x86.vcxproj
+++ b/LuaDebugHelper_x86/LuaDebugHelper_x86.vcxproj
@@ -15,19 +15,19 @@
{043C0981-A01F-46F4-A19C-FDCD72973492}
Win32Proj
LuaDebugHelperx86
- 10.0.17763.0
+ 10.0
DynamicLibrary
true
- v141
+ v143
Unicode
DynamicLibrary
false
- v141
+ v143
false
Unicode
diff --git a/LuaDkmDebugger/LuaDkmDebugger.csproj b/LuaDkmDebugger/LuaDkmDebugger.csproj
index b29eb0b..abc421a 100644
--- a/LuaDkmDebugger/LuaDkmDebugger.csproj
+++ b/LuaDkmDebugger/LuaDkmDebugger.csproj
@@ -83,7 +83,10 @@
15.8.209
-
+
+ runtime; build; native; contentfiles; analyzers; buildtransitive
+ all
+
diff --git a/LuaDkmDebuggerComponent/LuaSymbolStore.cs b/LuaDkmDebuggerComponent/LuaSymbolStore.cs
index 0521c1f..2de7298 100644
--- a/LuaDkmDebuggerComponent/LuaSymbolStore.cs
+++ b/LuaDkmDebuggerComponent/LuaSymbolStore.cs
@@ -87,7 +87,18 @@ public void AddScriptSource(string scriptName, string scriptContent, byte[] sha1
if (!knownScripts.ContainsKey(scriptName))
knownScripts.Add(scriptName, new LuaScriptSymbols { sourceFileName = scriptName, scriptContent = scriptContent, sha1Hash = sha1Hash });
else
+ {
+ if(knownSources.ContainsKey(scriptName))
+ {
+ var sourceSymbols = knownSources[scriptName];
+ if(functionNames.ContainsKey(sourceSymbols.address))
+ {
+ functionNames.Remove(sourceSymbols.address);
+ }
+ knownSources.Remove(scriptName);
+ }
knownScripts[scriptName] = new LuaScriptSymbols { sourceFileName = scriptName, scriptContent = scriptContent, sha1Hash = sha1Hash };
+ }
}
public LuaScriptSymbols FetchScriptSource(string sourceFileName)