Files
GDevelop-Unlocked/patches/05-preview-debugger.patch
BillyOutlast 30da3f8b4e Surgical conversion: Tier-1 patcher + launcher hook, Tier-2 extraction (Phases 1-5)
Replaces the 205-file fork delivery vehicle with patches/ + launcher/
+ versioned packages, per the implementation plan:

Phase 1: seam tripwires (27 tests) freezing every surgical target in
upstream (Usage predicate, %16 gate, SubscriptionChecker, debugger,
LoadingScreen branding, Electron hook surface, no-plugin-registry
verdict).

Phase 2: 5 generated Tier-1 hunks (round-trip verified; 3 files reach
byte-identical fork parity) + apply driver (dry-run gate, marker
verify, asar extract/repack).

Phase 3: launcher hook (preload fetch/XHR spoof of the two usage GETs,
BrowserWindow wrap, webRequest fallback, updater pin) + 06 loader
patch. Module._load interception dropped: renderers run a webpack
bundle, so the spoof rides the axios/XHR path the provider hydrates
from instead.

Phase 4: Tier-2 verbatim extraction (CustomAIClient + 12 Studio
modules + offline mock harness, manifest-pinned) + 07/08 verbatim
glue patches + pure generation shim with fail-closed leak guard.

Phase 5: web userscript demo (Tier-1 only, documented CORS/LAN/churn
limits). Phase 6 runbook + upstream provider-interface RFC draft
included; fork archiving left to owners (destructive).

Suite: 66 tests green (seams, patcher incl. re-apply refusal,
launcher incl. vm-sandbox fallback eval, tier-2 provenance, web).
2026-10-10 20:41:35 -04:00

47 lines
1.3 KiB
Diff

--- a/newIDE/app/src/ExportAndShare/LocalExporters/LocalPreviewLauncher/index.js
+++ b/newIDE/app/src/ExportAndShare/LocalExporters/LocalPreviewLauncher/index.js
@@ -437,12 +437,6 @@
});
}
if (!previewOptions.isForInGameEdition) {
- if (
- this.state.hotReloadsCount % 16 === 0 &&
- this._hotReloadSubscriptionChecker
- ) {
- this._hotReloadSubscriptionChecker.checkUserHasSubscription();
- }
this.setState(state => ({
hotReloadsCount: state.hotReloadsCount + 1,
}));
@@ -487,9 +481,7 @@
}
_checkSubscriptionForNetworkPreview = (): any => {
- if (!this._networkPreviewSubscriptionChecker) return true;
-
- return this._networkPreviewSubscriptionChecker.checkUserHasSubscription();
+ return true;
};
render(): any {
--- a/newIDE/app/src/MainFrame/EditorContainers/DebuggerEditorContainer.js
+++ b/newIDE/app/src/MainFrame/EditorContainers/DebuggerEditorContainer.js
@@ -133,16 +133,7 @@
}
_checkUserHasSubscription() {
- if (
- this._subscriptionChecker &&
- this.props.isActive &&
- !this.state.subscriptionChecked
- ) {
- this._subscriptionChecker.checkUserHasSubscription();
- this.setState({
- subscriptionChecked: true,
- });
- }
+ // Unlocked in GDevelop-Heretek
}
render(): any {