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

IOS: Make file creation + open more concise #6784

Merged
merged 1 commit into from May 8, 2018

Conversation

leoetlino
Copy link
Member

@leoetlino leoetlino commented May 8, 2018

Creating a file then opening it in read write mode is a pretty common operation. This commit adds a helper function that makes it easier to read and clearer.

Fixes an oversight which would cause uid.sys and cert.sys not to get created on totally empty NANDs

Creating a file then opening it in read write mode is a pretty common
operation. This commit adds a helper function that makes it easier
to read and clearer.
Result<FileHandle> FileSystem::CreateAndOpenFile(Uid uid, Gid gid, const std::string& path,
Mode owner_mode, Mode group_mode, Mode other_mode)
{
Result<FileHandle> file = OpenFile(uid, gid, path, Mode::ReadWrite);

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

@leoetlino leoetlino merged commit 10d230a into dolphin-emu:master May 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants