feat: partial support for patches
This commit is contained in:
@ -39,7 +39,7 @@ pub enum Status {
|
||||
}
|
||||
|
||||
#[bitflags]
|
||||
#[repr(u8)]
|
||||
#[repr(u16)]
|
||||
#[derive(Copy, Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub enum Feature {
|
||||
Mod,
|
||||
@ -48,6 +48,10 @@ pub enum Feature {
|
||||
Mu3Hook,
|
||||
Mu3IO,
|
||||
ChusanHook,
|
||||
ChuniIO,
|
||||
Mempatcher,
|
||||
GameDLL,
|
||||
AmdDLL
|
||||
}
|
||||
|
||||
#[derive(Clone, Serialize, Deserialize)]
|
||||
@ -224,6 +228,12 @@ impl Package {
|
||||
flags |= Feature::Aime;
|
||||
} else if module == "mu3io" {
|
||||
flags |= Feature::Mu3IO;
|
||||
} else if module == "chuniio" {
|
||||
flags |= Feature::ChuniIO;
|
||||
} else if module == "mempatcher" {
|
||||
flags |= Feature::Mempatcher;
|
||||
} else if module == "game-dll" {
|
||||
flags |= Feature::GameDLL;
|
||||
}
|
||||
}
|
||||
return Status::OK(flags);
|
||||
|
Reference in New Issue
Block a user