mirror of
https://github.com/decompals/wibo.git
synced 2025-12-12 22:56:13 +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:
@@ -105,8 +105,18 @@ namespace user32 {
|
||||
}
|
||||
}
|
||||
|
||||
void *wibo::resolveUser32(const char *name) {
|
||||
static void *resolveByName(const char *name) {
|
||||
if (strcmp(name, "LoadStringA") == 0) return (void *) user32::LoadStringA;
|
||||
if (strcmp(name, "MessageBoxA") == 0) return (void *) user32::MessageBoxA;
|
||||
return 0;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
wibo::Module lib_user32 = {
|
||||
(const char *[]){
|
||||
"user32",
|
||||
"user32.dll",
|
||||
nullptr,
|
||||
},
|
||||
resolveByName,
|
||||
nullptr,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user