Skip to content

Use internal ProjectSettings over .theatre file#119

Description

@nndda

I just fixed the whole sets of bugs with the .theatre file, why just now I thought of this alternative 馃う

.theatre file, placed at res://.godot/.theatre, is there to keep track of the used Theatre plugin version. If a project has used, parsed, and imported Dialogue resources, using version N, it'll log the version vN to the .theatre. So, if the plugin got updated, it'll see that the newly updated plugin's version doesn't match the one logged in .theatre, and then it'll trigger re-import on the Dialogue resources.

Now, the alternative: ProjectSettings + ProjectSettings.set_as_internal()

It should be feasible, and possibly even faster, since it avoids a whole I/O stuff that is managing the .theatre.

Just like how Godot itself track the Godot's version used by the project, with the config/features=PackedStringArray("4.x")

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions