1
0
mirror of https://github.com/fadden/6502bench.git synced 2024-12-26 04:30:52 +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:
Andy McFadden 2020-07-16 10:35:14 -07:00
parent 9a56ae8544
commit b280fb58ba
4 changed files with 9 additions and 6 deletions

2
.gitignore vendored
View File

@ -5,7 +5,7 @@
# 6502bench-specific stuff
SourceGen/SourceGen-settings
SourceGen/PluginDll
SourceGen/PluginDllCache
DIST_Debug
DIST_release

View File

@ -1425,7 +1425,7 @@ namespace SourceGen {
typeof(ClipLineFormat),
(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;
if (format == ClipLineFormat.Disassembly) {

View File

@ -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
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.
If the extension script is the same age or older than the DLL, SourceGen
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
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>
<p>Extension scripts are executed in an App Domain sandbox. App domains are

View File

@ -25,7 +25,7 @@ using PluginCommon;
namespace SourceGen.Sandbox {
/// <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
/// already exists. If not, or the script source file is newer than the DLL file, the
/// compiler is executed.
@ -37,7 +37,7 @@ namespace SourceGen.Sandbox {
/// the locks will be cleared when the AppDomain is unloaded.
/// </summary>
public static class PluginDllCache {
private const string PLUGIN_DIR_NAME = "PluginDll";
private const string PLUGIN_DIR_NAME = "PluginDllCache";
/// <summary>
/// List of assemblies for the CompilerParameters.ReferencedAssemblies argument.