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:
2023-09-09 23:07:23 -04:00
committed by GitHub
parent 6e18120410
commit 94b44fd697
18 changed files with 1106 additions and 151 deletions

View File

@@ -13,7 +13,7 @@ namespace lmgr {
}
}
void *wibo::resolveLmgr(uint16_t ordinal) {
static void *resolveByOrdinal(uint16_t ordinal) {
switch (ordinal) {
case 189:
return (void*)lmgr::lp_checkin;
@@ -22,3 +22,17 @@ void *wibo::resolveLmgr(uint16_t ordinal) {
}
return 0;
}
wibo::Module lib_lmgr = {
(const char *[]){
"lmgr11",
"lmgr11.dll",
"lmgr326b",
"lmgr326b.dll",
"lmgr8c",
"lmgr8c.dll",
nullptr,
},
nullptr,
resolveByOrdinal,
};