mirror of
https://github.com/decompals/wibo.git
synced 2025-12-18 01:15:37 +00:00
Everything needed to run simple Rust programs (#40)
* Everything needed to run simple Rust programs * Add IsDBCSLeadByte implementation * Address PR comments
This commit is contained in:
@@ -9,7 +9,17 @@ namespace version {
|
||||
}
|
||||
}
|
||||
|
||||
void *wibo::resolveVersion(const char *name) {
|
||||
static void *resolveByName(const char *name) {
|
||||
if (strcmp(name, "GetFileVersionInfoSizeA") == 0) return (void *) version::GetFileVersionInfoSizeA;
|
||||
return 0;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
wibo::Module lib_version = {
|
||||
(const char *[]){
|
||||
"version",
|
||||
"version.dll",
|
||||
nullptr,
|
||||
},
|
||||
resolveByName,
|
||||
nullptr,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user