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

Load fails with nested folder structures #7

Open
Nisto opened this issue May 2, 2019 · 1 comment
Open

Load fails with nested folder structures #7

Nisto opened this issue May 2, 2019 · 1 comment

Comments

@Nisto
Copy link
Contributor

Nisto commented May 2, 2019

I noticed that recursive loads do not work, since base_path is not updated.

Imagine you have the following setup:

A.MINIPSF at C:\ with tag _lib=sub\B.psflib
B.PSFLIB at C:\sub\ with tag _lib=sub\C.psflib
C.PSFLIB at C:\sub\sub\

Then it would try to load sub\C.PSFLIB from C:\ instead of C:\sub\:

Opened file: A.minipsf
From base path: C:\
Tag detected, attempting to read it.
Found _lib: sub\B.psflib
 Opened file: sub\B.psflib
 From base path: C:\
 Tag detected, attempting to read it.
 Found _lib: sub\C.psflib
  Error opening file: sub\C.psflib
  From base path: C:\
Done.

I can try to fix this myself, but I usually fail at writing clean C code. :(

@kode54
Copy link
Owner

kode54 commented Mar 17, 2021

You need to specify a string of path separator characters for the filesystem handler. Also, it should be appending the _lib to the base path.

Also wtf, how did I not notice this issue sooner?

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

No branches or pull requests

2 participants