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
AMIGAOS: Mutliple fixes #3854
AMIGAOS: Mutliple fixes #3854
Conversation
raziel-
commented
May 2, 2022
- Add FS directory creation
- Remove hardcoded newlib toolchain (there may be follow-up FR's)
backends/fs/amigaos/amigaos-fs.cpp
Outdated
if (lock) { | ||
IDOS->UnLock(lock); | ||
debug("AmigaOSFilesystemNode::createDirectory() -> Directory '%s' already exists!", _sPath.c_str()); | ||
return _bIsValid && _bIsDirectory; // TODO: Should we make sure it's really a directory? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand this comment. Is there a possibility that a node with _bIsDirectory = true is not a directory?
Could you please fix the commit log messages to have the proper "AMIGAOS: " prefixes? |
I have no idea how to do that from github web page. |
- Remove hardcoded newlib toolchain (there´s an open-source clib2 toolchain available). Let the user decide which toolchain using LDFLAGS env var. - Minor comment fixes.
@raziel- and other devs Is it so that before calling backend's createDirectory, FSNode actually checks the existence and type: https://github.com/scummvm/scummvm/blob/master/common/fs.cpp#L156 In that case, backend could be simplified to something like:
This is still untested. |
- Change warnings to debug - Fix trailing slash
Would that be applicable? Tested locally and working |
This looks good now, and is aligned with what other platforms do in the same function. Since the changes are working for you @raziel, they should be fine to merge. Thanks for your work! |