{"id":19320194,"url":"https://github.com/widberg/spaday","last_synced_at":"2025-10-28T07:40:24.484Z","repository":{"id":260183233,"uuid":"880076209","full_name":"widberg/spaday","owner":"widberg","description":"GFWL/Xbox 360 SPAFILE parser","archived":false,"fork":false,"pushed_at":"2025-02-03T23:50:07.000Z","size":40,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-26T23:41:35.194Z","etag":null,"topics":["gfwl","spafile","xbox","xbox-360","xbox-live","xbox360","xdbf"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/widberg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2024-10-29T04:11:07.000Z","updated_at":"2025-05-16T15:26:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"1995bf60-2941-4e27-bbe5-026f8258658f","html_url":"https://github.com/widberg/spaday","commit_stats":null,"previous_names":["widberg/spaday"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/widberg/spaday","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/widberg%2Fspaday","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/widberg%2Fspaday/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/widberg%2Fspaday/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/widberg%2Fspaday/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/widberg","download_url":"https://codeload.github.com/widberg/spaday/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/widberg%2Fspaday/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281403410,"owners_count":26495042,"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","status":"online","status_checked_at":"2025-10-28T02:00:06.022Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["gfwl","spafile","xbox","xbox-360","xbox-live","xbox360","xdbf"],"created_at":"2024-11-10T01:27:45.873Z","updated_at":"2025-10-28T07:40:24.467Z","avatar_url":"https://github.com/widberg.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# spaday\n\nGFWL/Xbox 360 SPAFILE parser\n\n[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/widberg/spaday/build.yml)](https://github.com/widberg/spaday/actions)\n![GitHub Release](https://img.shields.io/github/v/release/widberg/spaday)\n[![Release Nightly](https://img.shields.io/badge/release-nightly-5e025f?labelColor=301934)](https://nightly.link/widberg/spaday/workflows/build/master)\n\nWith a complementary [ImHex](https://imhex.werwolv.net/) pattern, `spafile.hexpat`.\n\n### Usage\n\nspaday can be used to parse the contents of the SPAFILE directly from the executable.\n\n```console\n$ spaday path/to/executable -o path/to/output_dir\n```\n\nAlternatively, spaday can parse a standalone SPAFILE. The SPAFILE resource can be extracted from the executable using [Resource Hacker](https://www.angusj.com/resourcehacker/). It should be under the `RT_RCDATA` folder in the tree view on the left. Once located, right-click on the resource and select \"Save *.bin resource...\". Then spaday can be used to parse the contents of the SPAFILE.\n\n```console\n$ spaday path/to/spafile -o path/to/output_dir\n```\n\n### Issues\n\nIf you find a SPAFILE that fails to parse or yields unexpected results, please open an issue with the offending SPAFILE attached so I can add it to my test corpus. I don't have a large sample size of SPAFILES to test with, so I'm sure there are edge cases that I haven't encountered yet.\n\n### Acknowledgements\n\n* https://free60.org/System-Software/Formats/XDBF/\n* https://free60.org/System-Software/Formats/SPA/\n* https://free60.org/System-Software/Profile_Account/\n\n### Prior Work\n\n* Xenia\n    - [src/xenia/kernel/util/xdbf_utils.cc](https://github.com/xenia-canary/xenia-canary/blob/canary_experimental/src/xenia/kernel/util/xdbf_utils.cc)\n    - [src/xenia/kernel/util/xdbf_utils.h](https://github.com/xenia-canary/xenia-canary/blob/canary_experimental/src/xenia/kernel/util/xdbf_utils.h)\n    - [src/xenia/kernel/util/xlast.cc](https://github.com/xenia-canary/xenia-canary/blob/canary_experimental/src/xenia/kernel/util/xlast.cc)\n    - [src/xenia/kernel/util/xlast.h](https://github.com/xenia-canary/xenia-canary/blob/canary_experimental/src/xenia/kernel/util/xlast.h)\n\n### Notes\n\n#### Binwalk Analysis\n\nSample output from [binwalk](https://github.com/ReFirmLabs/binwalk) for a SPAFILE:\n\n```console\nHEXADECIMAL                        DESCRIPTION\n--------------------------------------------------------------------------------------------------------\n0xBEC5                             PNG image, total size: 10885 bytes\n0xE94A                             PNG image, total size: 8039 bytes\n0x108B1                            PNG image, total size: 9620 bytes\n0x12E45                            PNG image, total size: 9067 bytes\n0x151B0                            PNG image, total size: 8358 bytes\n0x17256                            PNG image, total size: 9409 bytes\n0x19717                            PNG image, total size: 10096 bytes\n0x1BE87                            PNG image, total size: 11186 bytes\n0x1EA39                            PNG image, total size: 8047 bytes\n0x209A8                            PNG image, total size: 9322 bytes\n0x22E12                            PNG image, total size: 9403 bytes\n0x252CD                            PNG image, total size: 9976 bytes\n0x279C5                            PNG image, total size: 9160 bytes\n0x29D8D                            PNG image, total size: 10681 bytes\n0x2C746                            PNG image, total size: 8862 bytes\n0x2E9E4                            PNG image, total size: 10248 bytes\n0x311EC                            PNG image, total size: 8830 bytes\n0x3346A                            PNG image, total size: 8862 bytes\n0x35708                            PNG image, total size: 9574 bytes\n0x37E35                            gzip compressed data, operating system: FAT filesystem (MS-DOS, OS/2,\n                                    NT/Win32, timestamp: 1970-01-01 00:00:00, total size: 32444 bytes\n```\n\nThe PNG images are the game and achievement icons in namespace `2`, and the gzip compressed data is the \".xlast\" XML file in namespace `1`, id `XSRC`. When extracting a SPAFILE with 7-Zip it will only find and extract the XML file. In the few cases I checked these XML files were UTF-16 LE encoded.\n\n#### Deviations from Free60 Documentation\n\n* The \"Record Count\" field in the XPRP structure needed to be changed from a `u32` to a `u16` to avoid overrunning the end of the file.\n* The XPBM and XVC2 structures were implemented based on the Xenia code, as the documentation treated them as unstructured byte arrays.\n* The documentation has XMAT as an unstructured byte array, but it was an XPBM in my limited testing.\n* The documentation says that there will occasionally be unaccounted for bytes following a string in the string tables, but in my testing I never encountered this.\n* The documentation says that endianness is based on the magic, but in my limited testing and the Xenia code it was always big-endian.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwidberg%2Fspaday","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwidberg%2Fspaday","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwidberg%2Fspaday/lists"}