mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2025-01-22 23:10:58 +00:00
generator: fixed writeable and readable detection
This commit is contained in:
parent
c53147c1c4
commit
edde96c5be
|
@ -42,13 +42,13 @@ namespace GtkSharp.Generation {
|
||||||
|
|
||||||
protected virtual bool Readable {
|
protected virtual bool Readable {
|
||||||
get {
|
get {
|
||||||
return elem.GetAttribute ("readable") != "false";
|
return elem.HasAttribute ("readable") && elem.GetAttributeAsBoolean ("readable");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected virtual bool Writable {
|
protected virtual bool Writable {
|
||||||
get {
|
get {
|
||||||
return elem.GetAttribute ("writeable") != "false";
|
return elem.HasAttribute ("writeable") && elem.GetAttributeAsBoolean ("writeable");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue