Lecrapouille / gdcef

[Plugin][Version 0.10.0][Functional] Chromium Embedded Framework Webview for Godot 3 and 4
https://discord.gg/EckEwy7S5U
MIT License
224 stars 27 forks source link

User-configutable resource directory #15

Closed daniel-sanche closed 1 year ago

daniel-sanche commented 1 year ago

Right now, the CEF resources directory is hard-coded to be at /build in the godot project root. This probably doesn't make sense for most projects. And it is especially problematic for multi-platform projects, since each OS needs to read a different set of resources, which can't all be stored in the same folder.

One solution would be to allow the user to pass in a directory as part of the library initialization process

Lecrapouille commented 1 year ago

@daniel-sanche nice work :) I'll test it. For the few I reviewed, your code seems good.

Lecrapouille commented 1 year ago

I've merged them. I do not have time right now:

Lecrapouille commented 1 year ago

@daniel-sanche Finally waiting my wife getting ready, I added time to fix several points on my list. I'll commit them to night or tomorrow.

daniel-sanche commented 1 year ago

Sounds good, let me know if you want me to take a look at anything on the list. I'd add:

daniel-sanche commented 1 year ago

Add example of JS injection in demo. As a non JS-dev I do not really understand why people want to execute JS

My motivation was to use it to inject tokens to avoid a sign-in page. I don't do a lot of JS either, so I'm not sure what a good demo scenario would look like

Lecrapouille commented 1 year ago

@daniel-sanche

Also:

Lecrapouille commented 1 year ago

Now initialize() only takes Dictionary. Ideally would be nice to use back _init() like done before and define global CEF config with the dictionary.

daniel-sanche commented 1 year ago

Cool, looks great! Feel free to close this issue if you think it's all done

Lecrapouille commented 1 year ago

Not all but mostly. let open other tickets if needed