Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use relative paths when loading autoloads instead of global #241

Merged
merged 1 commit into from
Nov 9, 2023

Conversation

Stronkkey
Copy link
Contributor

@Stronkkey Stronkkey commented Nov 9, 2023

Description

Use relative paths when loading autoloads instead of global.
This allows moving the beehave folder anywhere without it breaking.

Previous:

	add_autoload_singleton("BeehaveGlobalMetrics", "res://addons/beehave/metrics/beehave_global_metrics.gd")
	add_autoload_singleton("BeehaveGlobalDebugger", "res://addons/beehave/debug/global_debugger.gd")

This PR:

	add_autoload_singleton("BeehaveGlobalMetrics", "./metrics/beehave_global_metrics.gd")
	add_autoload_singleton("BeehaveGlobalDebugger", "./debug/global_debugger.gd")

Addressed issues

Probably Closes #237

Screenshots

N/A Not required.

@bitbrain
Copy link
Owner

bitbrain commented Nov 9, 2023

Thank you.

@bitbrain bitbrain merged commit 8b7d4ba into bitbrain:godot-4.x Nov 9, 2023
3 checks passed
@Stronkkey Stronkkey deleted the relative branch November 10, 2023 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Broken/brittle resource paths in plugin.gd script
2 participants