-
Notifications
You must be signed in to change notification settings - Fork 53
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
RFC: Move filefinder to liblcf #137
Comments
Looks good to me, however there will need to pass some output logging level from liblcf to player (debug, warning, error) from filefinder messages. Will this feature move/improve encoding detection into liblcf too? |
I think it could be useful for Editor project import, specially the RTP table replacement. Also, moving map tile reading logic would benefit dupe code in Editor and reusable in other potential tools like map rendering or exporting to pictures, but I think this is out of the scope of this RFC. |
@carstene1ns proposed the first LCF Tool that needs filefinding but not LCF parsing (gencache). Potential candidates we already have are: So maybe it makes sense to not merge the filefinder into liblcf (except stuff that will be only useful in combination with liblcf, like the RTP table) and create another library instead 😱 |
Based on current development I don't think that a filefinder is needed anymore in liblcf. The requirements per application are too different. The editor also got a file finder now but it is not comparable to the player filefinder at all. Only has case insensitive search in a folder via Qt and multi extension search. Is very compact code. All the complexity for caching, platform dependent optimization etc is not needed here. The tools could use std:: filesystem but this is c++17. |
Having own implementation in Editor already and if we can use c++17 in tools if needed (not a critical component to be portable on exotic platforms), I'm in favor to reject this RFC. |
imo this isn't really needed anymore, lcf consumes normal i/ostreams and the requirements are too different depending on the app. |
Having a filefinder when only working with liblcf would be quite useful sometimes.
For LCF2XML I added my own case-insensitive RPG_RT.ini search but for more complex programs targeting liblcf file finding is probably needed...
Your opinion?
There are 2 boost dependencies:
Flat-map could be replaced with std::map and boost::optional with maybe... empty string?
Another issue is the reference of Main_Data::project_path and Utils::ToWideString.
RTP stuff could be kept in the Player, is not generally useful.
The text was updated successfully, but these errors were encountered: