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

System Directory access #247

Open
RobLoach opened this issue Apr 29, 2024 · 1 comment
Open

System Directory access #247

RobLoach opened this issue Apr 29, 2024 · 1 comment

Comments

@RobLoach
Copy link
Member

Started work on a BIOS checker in Lutro:
https://github.com/RobLoach/lutro-bioscheck

Found that while Lutro can get libretro's system directory, it doesn't have access to the files...

local systemDirectory = love.filesystem.getAppdataDirectory()
print("System Directory: " .. systemDirectory)

print("File: " .. systemDirectory .. "/5200.rom")
local exists = love.filesystem.exists(systemDirectory .. "/5200.rom")
print("Exists: " .. tostring(exists))

While 5200.rom exists, it outputs false.

@RobLoach
Copy link
Member Author

Found that all paths are being prefixed with the gamedir, which breaks all absolute paths.

char fullpath[PATH_MAX_LENGTH];
strlcpy(fullpath, settings.gamedir, sizeof(fullpath));
strlcat(fullpath, path, sizeof(fullpath));

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

1 participant