chore: remove mhypbase
This commit is contained in:
Generated
-8
@@ -125,14 +125,6 @@ version = "2.7.4"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3"
|
||||
|
||||
[[package]]
|
||||
name = "mhypbase"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"hkrpg",
|
||||
"windows",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "once_cell"
|
||||
version = "1.21.3"
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
[workspace]
|
||||
members = ["hkrpg", "launcher", "mhypbase", "ext"]
|
||||
members = ["hkrpg", "launcher", "ext"]
|
||||
|
||||
resolver = "2"
|
||||
|
||||
|
||||
@@ -3,9 +3,9 @@ features:
|
||||
- remove censorship
|
||||
- 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:
|
||||
|
||||
|
||||
@@ -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
|
||||
@@ -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");
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
LIBRARY MHYPBASE
|
||||
EXPORTS
|
||||
Initialize @1
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user