mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-09-08 07:53:17 +02:00
generator: NativeStructGen needs to be partial
This commit is contained in:
parent
50f07d17ad
commit
587f0f56e7
@ -105,7 +105,7 @@ namespace GtkSharp.Generation
|
|||||||
StreamWriter sw = gen_info.Writer;
|
StreamWriter sw = gen_info.Writer;
|
||||||
|
|
||||||
sw.WriteLine ("\t\t[StructLayout(LayoutKind.Sequential)]");
|
sw.WriteLine ("\t\t[StructLayout(LayoutKind.Sequential)]");
|
||||||
sw.WriteLine ("\t\tprivate struct NativeStruct {");
|
sw.WriteLine ("\t\tprivate partial struct NativeStruct {");
|
||||||
foreach (StructField field in fields) {
|
foreach (StructField field in fields) {
|
||||||
field.Generate (gen_info, "\t\t\t");
|
field.Generate (gen_info, "\t\t\t");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user