allow onmemoryexecute to have null address

This commit is contained in:
warmCabin 2019-12-10 23:02:18 -05:00 committed by GitHub
parent e7374447f3
commit baca4e2af8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 5 deletions

View File

@ -295,11 +295,6 @@ namespace BizHawk.Emulation.Common
{
public MemoryCallback(string scope, MemoryCallbackType type, string name, MemoryCallbackDelegate callback, uint? address, uint? mask)
{
if (type == MemoryCallbackType.Execute && !address.HasValue)
{
throw new InvalidOperationException("When assigning an execute callback, an address must be specified");
}
Type = type;
Name = name;
Callback = callback;