We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 934e905 commit c7e7351Copy full SHA for c7e7351
src/PlayLayer.cpp
@@ -154,6 +154,10 @@ class $modify(MyPlayLayer, PlayLayer) {
154
log::info("isNewBestFloat: {}", MyPlayLayer::isNewBestFloat(this));
155
log::info("manager->hasPRNTSCRN: {}", manager->hasPRNTSCRN);
156
if (!manager->hasPRNTSCRN || !MyPlayLayer::isNewBestFloat(this) || !getModBool("screenshotOnDeath")) return;
157
- (void) PRNTSCRN::screenshotNode(CCScene::get());
+ this->scheduleOnce(schedule_selector(MyPlayLayer::PRNTSCRNOnDeath), .275f);
158
+ }
159
+ void PRNTSCRNOnDeath(float) {
160
+ (void) PRNTSCRN::screenshotNodeAdvanced(this, {}, {});
161
+ (void) PRNTSCRN::screenshotNodeAdvanced(CCScene::get(), {}, {});
162
}
163
};
0 commit comments