{"id":21252507,"url":"https://github.com/axertheaxe/unitymain-patch","last_synced_at":"2025-07-11T01:32:50.164Z","repository":{"id":258399375,"uuid":"870042248","full_name":"AxerTheAxe/unitymain-patch","owner":"AxerTheAxe","description":"Executable to patch some Windows Unity games on Linux.","archived":false,"fork":false,"pushed_at":"2024-11-16T21:46:09.000Z","size":21,"stargazers_count":9,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-16T22:27:57.876Z","etag":null,"topics":["linux","patch","proton","reverse1999","steam","unity","wine"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AxerTheAxe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-10-09T10:42:49.000Z","updated_at":"2024-11-16T21:46:13.000Z","dependencies_parsed_at":"2024-10-18T20:32:19.168Z","dependency_job_id":"2daf0037-79a7-451b-8f7e-6dde1e1ecab0","html_url":"https://github.com/AxerTheAxe/unitymain-patch","commit_stats":null,"previous_names":["axertheaxe/unitymain-patch"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AxerTheAxe%2Funitymain-patch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AxerTheAxe%2Funitymain-patch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AxerTheAxe%2Funitymain-patch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AxerTheAxe%2Funitymain-patch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AxerTheAxe","download_url":"https://codeload.github.com/AxerTheAxe/unitymain-patch/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225669678,"owners_count":17505386,"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":["linux","patch","proton","reverse1999","steam","unity","wine"],"created_at":"2024-11-21T03:47:51.824Z","updated_at":"2024-11-21T03:47:52.322Z","avatar_url":"https://github.com/AxerTheAxe.png","language":"C","readme":"# UnityMain Patch\n\nExecutable to patch some Windows targeted Unity games that fail to call the UnityMain function when run on Linux using Wine / Proton.\n\nPlease note that this patch is not guaranteed to fix any Unity game on Proton / Wine. Other issues may require different fixes.\n\n**The original concept and implementation for this patch can be found [here](https://notabug.org/Krock/dawn/issues/454).**\n\n## Games\n\nThis patch is currently known to fix the following games on Linux when ran with Proton / Wine.\n\n* Punishing: Gray Raven\n* Reverse: 1999\n\n## Installation\n\n1. Download the `patch.exe` from [releases](https://github.com/axertheaxe/unitymain-patch/releases) or [compile from source](#Compilation).\n2. Move the `patch.exe` to the location of the games executable.\n3. Delete or rename the games executable.\n4. Rename `patch.exe` to the original name of the games executable.\n\n**Note:** Make sure to back up the original game executable before deleting it.\n\n## Compilation\n\nThe patch needs to be compiled with a Windows C99 compatible compiler, which can be done on Linux using a cross-compiler like [MinGW](https://www.mingw-w64.org).\n\n### 1. Clone and enter the repository\n\n```sh\ngit clone https://github.com/axertheaxe/unitymain-patch.git\ncd unitymain-patch\n```\n\n### 2. Compile with a cross-compiler like MinGW\n\n```sh\nmkdir -p build \u0026\u0026 x86_64-w64-mingw32-gcc src/patch.c -municode -o build/patch.exe\n# or build automatically with make\nmake\n```\n\nThe resulting `patch.exe` will be in the `build` directory.\n\n### Nix\n\nNix users can make use of the included flake.nix as a development shell to automatically obtain MinGW and Make for compilation alongside Wine64 for debugging.\n\n```sh\nnix develop\nmake\n# For debugging\nwine64 build/patch.exe\n```\n\n## Contributing\n\nWhether you have code to submit or want to add a game to the list of known fixes, feel free to [open an issue](https://github.com/axertheaxe/unitymain-patch/issues/new)\nor [submit a pull request](https://github.com/axertheaxe/unitymain-patch/compare).\n\n## Unlicense\n\nThis project is under the [Unlicense](UNLICENSE).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxertheaxe%2Funitymain-patch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faxertheaxe%2Funitymain-patch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxertheaxe%2Funitymain-patch/lists"}