diff --git a/README.md b/README.md index 33c7319..793e8ab 100644 --- a/README.md +++ b/README.md @@ -16,13 +16,6 @@ End of Stream encountered before parsing was completed. at PluginCore.Utilities.ObjectSerializer.Deserialize(String file, Object obj, Boolean checkValidity) ``` -And once FD opens, then... - -``` -Object reference not set to an instance of an object. - - at sampleplugin.PluginMain.HandleEvent(Object sender, NotifyEvent e, HandlingPriority priority) - at PluginCore.Managers.EventManager.DispatchEvent(Object sender, NotifyEvent e) -``` +And once FD opens, with a dialog box `Unable to load an imcompatiable or broken plugin. c:/path/to/plugin.dll`. [Sample Plugin]: https://github.com/fdorg/flashdevelop/tree/development/External/Plugins/SamplePlugin "FlashDevelop SamplePlugin" \ No newline at end of file diff --git a/build.hxml b/build.hxml index 1e9e5e0..ef5019b 100644 --- a/build.hxml +++ b/build.hxml @@ -14,9 +14,9 @@ -net-lib "C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Drawing.dll@std" -net-lib "C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Windows.Forms.dll@std" -# Required to prevent FD error. ---macro addMetadata('@:strict(cs.system.SerializableAttribute)', 'cs.internal.HxObject') -#--macro addGlobalMetadata('', '@:strict(cs.system.SerializableAttribute)', true) +# Doesnt appear to be needed any more. @:nativeGen seems to work to avoid serialization issue(s). +#--macro addMetadata('@:strict(cs.system.SerializableAttribute)', 'cs.internal.HxObject') +#--macro addGlobalMetadata('cs.', '@:strict(cs.system.SerializableAttribute)', true) -main Main diff --git a/src/sampleplugin/Settings.hx b/src/sampleplugin/Settings.hx index 3e3940a..414a529 100644 --- a/src/sampleplugin/Settings.hx +++ b/src/sampleplugin/Settings.hx @@ -11,7 +11,7 @@ import cs.system.componentmodel.DefaultValueAttribute; */ // @see https://github.com/HaxeFoundation/haxe/pull/3954 @:strict(SerializableAttribute) -class Settings { +@:nativeGen class Settings { @:isVar @:property