mirror of
https://github.com/fadden/6502bench.git
synced 2024-12-27 10:32:31 +00:00
Rename PluginDll dir to PluginDllCache
The new name is more indicative of the purpose of the directory. Updated the docs to point out that you can delete the contents any time you want, so long as SourceGen isn't running at the time. Also, change the default column widths for the exporter.
This commit is contained in:
parent
9a56ae8544
commit
b280fb58ba
2
.gitignore
vendored
2
.gitignore
vendored
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
# 6502bench-specific stuff
|
# 6502bench-specific stuff
|
||||||
SourceGen/SourceGen-settings
|
SourceGen/SourceGen-settings
|
||||||
SourceGen/PluginDll
|
SourceGen/PluginDllCache
|
||||||
DIST_Debug
|
DIST_Debug
|
||||||
DIST_release
|
DIST_release
|
||||||
|
|
||||||
|
@ -1425,7 +1425,7 @@ namespace SourceGen {
|
|||||||
typeof(ClipLineFormat),
|
typeof(ClipLineFormat),
|
||||||
(int)ClipLineFormat.AssemblerSource);
|
(int)ClipLineFormat.AssemblerSource);
|
||||||
|
|
||||||
int[] rightWidths = new int[] { 9, 8, 11, 100 };
|
int[] rightWidths = new int[] { 16, 8, 18, 100 };
|
||||||
|
|
||||||
Exporter.ActiveColumnFlags colFlags = Exporter.ActiveColumnFlags.None;
|
Exporter.ActiveColumnFlags colFlags = Exporter.ActiveColumnFlags.None;
|
||||||
if (format == ClipLineFormat.Disassembly) {
|
if (format == ClipLineFormat.Disassembly) {
|
||||||
|
@ -210,9 +210,9 @@ While plugins can use CommonUtil directly, they should avoid doing so. The
|
|||||||
APIs there are not guaranteed to be stable, so plugins that rely on them
|
APIs there are not guaranteed to be stable, so plugins that rely on them
|
||||||
may break in a subsequent release of SourceGen.</p>
|
may break in a subsequent release of SourceGen.</p>
|
||||||
|
|
||||||
<h4>PluginDll Directory</h4>
|
<h4>PluginDllCache Directory</h4>
|
||||||
|
|
||||||
<p>Extension scripts are compiled into .DLLs, and saved in the PluginDll
|
<p>Extension scripts are compiled into .DLLs, and saved in the PluginDllCache
|
||||||
directory, which lives next to the application executable and RuntimeData.
|
directory, which lives next to the application executable and RuntimeData.
|
||||||
If the extension script is the same age or older than the DLL, SourceGen
|
If the extension script is the same age or older than the DLL, SourceGen
|
||||||
will continue to use the existing DLL.</p>
|
will continue to use the existing DLL.</p>
|
||||||
@ -225,6 +225,9 @@ would look like "PROJ_MyProject_MyScript.dll".</p>
|
|||||||
<p>The PluginCommon and CommonUtil DLLs will be copied into the directory, so
|
<p>The PluginCommon and CommonUtil DLLs will be copied into the directory, so
|
||||||
that code in the sandbox has access to them.</p>
|
that code in the sandbox has access to them.</p>
|
||||||
|
|
||||||
|
<p>The contents of the directory are generated as needed, and can be deleted
|
||||||
|
entirely whenever SourceGen isn't running.</p>
|
||||||
|
|
||||||
<h4>Sandboxing</h4>
|
<h4>Sandboxing</h4>
|
||||||
|
|
||||||
<p>Extension scripts are executed in an App Domain sandbox. App domains are
|
<p>Extension scripts are executed in an App Domain sandbox. App domains are
|
||||||
|
@ -25,7 +25,7 @@ using PluginCommon;
|
|||||||
|
|
||||||
namespace SourceGen.Sandbox {
|
namespace SourceGen.Sandbox {
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// This manages the PluginDll directory, which holds the compiled form of the extension
|
/// This manages the PluginDllCache directory, which holds the compiled form of the extension
|
||||||
/// scripts. When a script is requested, this checks to see if the compiled form
|
/// scripts. When a script is requested, this checks to see if the compiled form
|
||||||
/// already exists. If not, or the script source file is newer than the DLL file, the
|
/// already exists. If not, or the script source file is newer than the DLL file, the
|
||||||
/// compiler is executed.
|
/// compiler is executed.
|
||||||
@ -37,7 +37,7 @@ namespace SourceGen.Sandbox {
|
|||||||
/// the locks will be cleared when the AppDomain is unloaded.
|
/// the locks will be cleared when the AppDomain is unloaded.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static class PluginDllCache {
|
public static class PluginDllCache {
|
||||||
private const string PLUGIN_DIR_NAME = "PluginDll";
|
private const string PLUGIN_DIR_NAME = "PluginDllCache";
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// List of assemblies for the CompilerParameters.ReferencedAssemblies argument.
|
/// List of assemblies for the CompilerParameters.ReferencedAssemblies argument.
|
||||||
|
Loading…
Reference in New Issue
Block a user