diff --git a/0.go b/0.go index 342dc74..e498ff8 100644 --- a/0.go +++ b/0.go @@ -95,3 +95,5 @@ func safeBoolDeref(b *bool) bool { } return *b } + +func main() {} diff --git a/README.md b/README.md index e69f5f5..50d5b61 100644 --- a/README.md +++ b/README.md @@ -98,6 +98,7 @@ int main() { - [X] ~~RCWDArgument()~~ (RCWD not supported) - [X] global - [X] ~~VAR (CB func): GetPassword~~ (RCWD not supported) + - [X] VAR LibmuttonVersion (GetVersion()) - [X] DirInit(preserveOldCfgDir bool) (string, error) - [X] ~~GenDeviceIDList() ([]fs.DirEntry, error)~~ (not for use outside of libmutton) - [X] GetCurrentDeviceID() (string, error) diff --git a/global.go b/global.go index a04272f..9b93d2d 100644 --- a/global.go +++ b/global.go @@ -65,4 +65,10 @@ func GetVanityPath(realPath *C.char) C.PascalString { return getPascalString(global.GetVanityPath(C.GoString(realPath))) } -func main() {} +// GetVersion returns: +// versionNumber +// +//export GetVersion +func GetVersion() *C.char { + return C.CString(global.LibmuttonVersion) +}