{"id":21902491,"url":"https://github.com/leoetlino/wiifs","last_synced_at":"2025-06-25T19:03:32.366Z","repository":{"id":72566120,"uuid":"121804824","full_name":"leoetlino/wiifs","owner":"leoetlino","description":"A Wii NAND file system driver","archived":false,"fork":false,"pushed_at":"2018-03-03T17:45:37.000Z","size":29,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-22T06:27:49.901Z","etag":null,"topics":["filesystem-library","wii"],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leoetlino.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"license.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-02-16T21:53:56.000Z","updated_at":"2024-11-08T03:43:11.000Z","dependencies_parsed_at":"2023-03-02T02:15:21.922Z","dependency_job_id":null,"html_url":"https://github.com/leoetlino/wiifs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/leoetlino/wiifs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leoetlino%2Fwiifs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leoetlino%2Fwiifs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leoetlino%2Fwiifs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leoetlino%2Fwiifs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leoetlino","download_url":"https://codeload.github.com/leoetlino/wiifs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leoetlino%2Fwiifs/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261937020,"owners_count":23232843,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["filesystem-library","wii"],"created_at":"2024-11-28T15:19:20.942Z","updated_at":"2025-06-25T19:03:32.360Z","avatar_url":"https://github.com/leoetlino.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wiifs\n**A Wii NAND file system driver**\n\n## Features\n\nwiifs supports most of the file system and file interface exposed by IOS, including\nmetadata and file read/write, HMAC verification and generation, and ECC data generation.\n\nSome exceptions:\n\n* boot2-related functions (`/dev/boot2`)\n* Undocumented commands such as `/dev/fs` ioctlv 14 and `SetFileVersionControl`\n\nwiifs strives to behave as close as possible to IOS's file system driver so\nthat NAND images which are used with this library can also still be used with IOS.\n\n## Usage\n\n```C++\n#include \u003cwiifs/fs.h\u003e\n\n// Map the NAND image to memory, using mmap or any equivalent API.\nauto* nand =\n  static_cast\u003cu8*\u003e(mmap(nullptr, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0)));\n\n// Fill key information.\nwiifs::FileSystemKeys keys;\nkeys.hmac = nand_hmac_key;\nkeys.aes = nand_aes_key;\n\n// Create a wiifs::FileSystem.\nstd::unique_ptr\u003cwiifs::FileSystem\u003e fs = wiifs::FileSystem::Create(nand, keys);\n```\n\nBefore using any of the file system or file functions, a file descriptor must be\nobtained using `FileSystem::OpenFs` or `FileSystem::OpenFile`.\n\n```C++\nconstexpr wiifs::Uid uid = 0;\nconstexpr wiifs::Gid gid = 0;\nconst auto fs_fd = fs-\u003eOpenFs(uid, gid);\nif (!fs_fd)\n  // ...\n\nconst auto result = fs-\u003eReadDirectory(*fs_fd, \"/\");\nif (!result)\n  // ...\n```\n\nFor more information about the API, please refer to [`wiifs/fs.h`](include/wiifs/fs.h).\n\n## License\n\nwiifs is free software; you can redistribute it and/or\nmodify it under the terms of the GNU General Public License\nas published by the Free Software Foundation; either version 2\nof the License, or (at your option) any later version.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleoetlino%2Fwiifs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleoetlino%2Fwiifs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleoetlino%2Fwiifs/lists"}