Skip to content

Commit

Permalink
Allow files <64 KB in C# GUI
Browse files Browse the repository at this point in the history
  • Loading branch information
libertyernie committed Jun 28, 2016
1 parent e2d8aef commit 0bc72a5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion goombasav_cs/AboutForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion goombasav_cs/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("goombasav_cs")]
[assembly: AssemblyCopyright("Copyright © 2014")]
[assembly: AssemblyCopyright("Copyright © 2016")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

Expand Down
4 changes: 3 additions & 1 deletion goombasav_net/GoombaSRAM.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ namespace Goombasav {
// arr must be at least ExpectedSize bytes. If it is more, the extra bytes will be ignored.
GoombaSRAM(array<unsigned char>^ arr, bool clean) {
if (arr->Length < GOOMBA_COLOR_SRAM_SIZE) {
throw gcnew GoombaException("Array length is smaller than " + GOOMBA_COLOR_SRAM_SIZE + " bytes");
array<unsigned char>^ arr2 = gcnew array<unsigned char>(GOOMBA_COLOR_SRAM_SIZE);
Array::Copy(arr, arr2, arr->Length);
arr = arr2;
}
pin_ptr<unsigned char> pin = &arr[0];
init(pin, clean);
Expand Down

0 comments on commit 0bc72a5

Please sign in to comment.