chore: remove mhypbase

This commit is contained in:
amizing25
2026-07-16 22:36:42 +07:00
parent 8ed8c7c443
commit b559c3b433
7 changed files with 3 additions and 60 deletions
Generated
-8
View File
@@ -125,14 +125,6 @@ version = "2.7.4"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3" checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3"
[[package]]
name = "mhypbase"
version = "0.1.0"
dependencies = [
"hkrpg",
"windows",
]
[[package]] [[package]]
name = "once_cell" name = "once_cell"
version = "1.21.3" version = "1.21.3"
+1 -1
View File
@@ -1,5 +1,5 @@
[workspace] [workspace]
members = ["hkrpg", "launcher", "mhypbase", "ext"] members = ["hkrpg", "launcher", "ext"]
resolver = "2" resolver = "2"
+2 -2
View File
@@ -3,9 +3,9 @@ features:
- remove censorship - remove censorship
- replace AccountRSAKey into custom public key (by default, compatible with [hoyo-sdk by xeondev](https://git.xeondev.com/reversedrooms/hoyo-sdk)) - replace AccountRSAKey into custom public key (by default, compatible with [hoyo-sdk by xeondev](https://git.xeondev.com/reversedrooms/hoyo-sdk))
currently, this has only been tested on CNBETAWin3.1.53 and may require an update for future versions. currently, this has only been tested on CNBETAWin4.4.51 and may require an update for future versions.
note: if you plan to use `mhypbase.dll`, please make a copy of the original first in case something breaks. Otherwise, simply copy `hkrpg.dll` and `launcher.exe` into the game folder and run `launcher.exe` as an administrator. note: simply copy `hkrpg.dll` and `launcher.exe` into the game folder and run `launcher.exe` as an administrator.
Sources: Sources:
-12
View File
@@ -1,12 +0,0 @@
[package]
name = "mhypbase"
edition = "2024"
version.workspace = true
[lib]
name = "mhypbase"
crate-type = ["cdylib"]
[dependencies]
windows.workspace = true
hkrpg.workspace = true
-7
View File
@@ -1,7 +0,0 @@
fn main() {
println!(
"cargo:rustc-link-search=native={}",
std::env::var("OUT_DIR").unwrap()
);
println!("cargo:rustc-link-arg=/DEF:mhypbase/mhypbase.def");
}
-3
View File
@@ -1,3 +0,0 @@
LIBRARY MHYPBASE
EXPORTS
Initialize @1
-27
View File
@@ -1,27 +0,0 @@
use windows::Win32::{
Foundation::HINSTANCE,
System::{
SystemServices::DLL_PROCESS_ATTACH,
Threading::{GetCurrentThread, TerminateThread},
},
};
#[unsafe(no_mangle)]
#[allow(non_snake_case, unused_variables)]
extern "C" fn Initialize() -> bool {
std::thread::sleep(std::time::Duration::from_secs(2));
unsafe {
TerminateThread(GetCurrentThread(), 0).unwrap();
}
false
}
#[allow(non_snake_case)]
#[unsafe(no_mangle)]
unsafe extern "system" fn DllMain(_: HINSTANCE, call_reason: u32, _: *mut ()) {
if call_reason == DLL_PROCESS_ATTACH {
std::thread::spawn(hkrpg::main);
}
}