2.0 PROD #1

Merged
xeon merged 6 commits from 2.0_beta into master 2025-06-03 16:34:37 +00:00
Showing only changes of commit 25a6caf0a3 - Show all commits

View file

@ -34,8 +34,10 @@ impl NapModule for NapModuleContext<CensorshipPatch> {
impl CensorshipPatch {
pub unsafe extern "win64" fn on_set_dither_config(reg: *mut Registers, _: usize) {
if LAST_ENTER_SCENE_TYPE.load(Ordering::SeqCst) == SCENE_TYPE_HALL {
println!("SetDitherConfig: disabling dither alpha");
*(((*reg).rdx as *mut u8).wrapping_add(DITHER_CONFIG_AVATAR_USING_DITHER_ALPHA)) = 0;
if (*reg).rdx != 0 {
println!("SetDitherConfig: disabling dither alpha");
*(((*reg).rdx as *mut u8).wrapping_add(DITHER_CONFIG_AVATAR_USING_DITHER_ALPHA)) = 0;
}
} else {
println!("SetDitherConfig: not in hall, ignoring");
}