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

Reslib : error in ressource path on android #11

Closed
Madour opened this issue Dec 19, 2021 · 0 comments
Closed

Reslib : error in ressource path on android #11

Madour opened this issue Dec 19, 2021 · 0 comments
Labels
android bug Something isn't working

Comments

@Madour
Copy link
Owner

Madour commented Dec 19, 2021

The file path becomes incorrect when path is empty string.

auto file_path = path + "/" + file_name;

possible fix :

std::string file_path;
if (!path.empty())
    file_path = path + "/" + file_name;
else
    file_path = file_name;
@Madour Madour added android bug Something isn't working labels Dec 19, 2021
@Madour Madour closed this as completed Dec 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant