Skip to content
This repository has been archived by the owner on Jan 4, 2023. It is now read-only.

Commit

Permalink
slight cleanup of dll references
Browse files Browse the repository at this point in the history
  • Loading branch information
drakewill-CRL committed Dec 21, 2020
1 parent 02d296a commit a80b01e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
1 change: 0 additions & 1 deletion SDK/Engine/Chips/Graphics/DisplayChip.cs
Expand Up @@ -212,7 +212,6 @@ public override void Configure()
// layers = Enum.GetNames(typeof(DrawMode)).Length - 1;

MaxDrawRequests = 1024;

}

public override void Deactivate()
Expand Down
1 change: 0 additions & 1 deletion SDK/Engine/Utils/PixelDataUtil.cs
Expand Up @@ -112,7 +112,6 @@ public static void Clear(PixelData pixelData, int colorRef = -1)
int destX, int destY, bool flipH = false, bool flipV = false, int colorOffset = 0,
bool ignoreTransparent = true)
{

_mergeDestWidth = dest.Width;

ValidateBounds(ref sampleWidth, ref sampleHeight, ref destX, ref destY, _mergeDestWidth, dest.Height);
Expand Down
14 changes: 3 additions & 11 deletions SDK/Runner/DesktopRunner.cs
Expand Up @@ -1594,30 +1594,22 @@ public void CompileFromSource(string[] files, bool buildDebugData = true)
MetadataReference.CreateFromFile(typeof(Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo).Assembly.Location), //Microsoft.CSharp
MetadataReference.CreateFromFile(typeof(GameChip).Assembly.Location), //PixelVision8Runner
MetadataReference.CreateFromFile(typeof(Game).Assembly.Location), //MonoGameFramework
MetadataReference.CreateFromFile(typeof(Point).Assembly.Location), //XNA Framework
//MetadataReference.CreateFromFile(typeof(Point).Assembly.Location), //XNA Framework, automatic as part of PixelVision8Runner. needs declared in code.cs, not here.
MetadataReference.CreateFromFile(Assembly.Load("netstandard").Location), //Required due to a .NET Standard 2.0 dependency somewhere.
MetadataReference.CreateFromFile(Assembly.Load("System.Collections").Location), //required for Linq
MetadataReference.CreateFromFile(Assembly.Load("System.Linq").Location),
MetadataReference.CreateFromFile(Assembly.Load("System.Linq.Queryable").Location),
MetadataReference.CreateFromFile(Assembly.Load("System.Linq.Expressions").Location),
//MetadataReference.CreateFromFile(typeof(System.Linq.Queryable).Assembly.Location), //System.Linq.Queryable.
//MetadataReference.CreateFromFile(typeof(System.Linq.Expressions.Expression).Assembly.Location), //System.Linq.Expressions
//MetadataReference.CreateFromFile(typeof(System.Net.WebClient).Assembly.Location), //System.Net.WebClient.

};

//Possibilities:
//Systems.Collections.Generic() - works fine, needs declared in code.cs
//File IO - System.IO.File fails to run (probably good)
//Networking - System.Net calls very little by itself.

var compiler = CSharpCompilation.Create("LoadedGame", syntaxTrees, references, options);
//var pdbFilePath = Path.GetTempPath() + "RoslynGame.pdb";

//Compile the existing file into memory, or error out.
var dllStream = new MemoryStream();
var pdbStream = new MemoryStream();

//This wont help unless we hit a runtime error.
//This lets us get data if we hit a runtime error.
var emitOptions = new EmitOptions(
debugInformationFormat: DebugInformationFormat.PortablePdb
//pdbFilePath: pdbFilePath
Expand Down

0 comments on commit a80b01e

Please sign in to comment.