Skip to content

Commit

Permalink
Merge branch 'change_disp_scene'
Browse files Browse the repository at this point in the history
  • Loading branch information
ePi5131 committed Jul 9, 2023
2 parents bbfa905 + a2afac2 commit 10df15f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions patch/patch_scene_cache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ namespace {
int32_t make_key1(int scene_idx) {
return GLOBAL::exedit_base + OFS::ExEdit::get_scene_image
+ scene_idx
+ (*reinterpret_cast<int*>(GLOBAL::exedit_base + OFS::ExEdit::is_saving) & 1 << state_shift)
+ (*reinterpret_cast<int*>(GLOBAL::exedit_base + OFS::ExEdit::fast_process) & 1<< (state_shift + 1));
+ ((*reinterpret_cast<int*>(GLOBAL::exedit_base + OFS::ExEdit::is_saving) & 1) << state_shift)
+ ((*reinterpret_cast<int*>(GLOBAL::exedit_base + OFS::ExEdit::fast_process) & 1) << (state_shift + 1));
}
int32_t make_key2(int frame, int subframe) {
return (frame << 7) | subframe;
return frame * 100 + subframe;
}

struct SceneCacheHeader {
Expand Down

0 comments on commit 10df15f

Please sign in to comment.