{"id":19838473,"url":"https://github.com/dreamycecil/se1-injector","last_synced_at":"2026-05-14T10:37:17.113Z","repository":{"id":160937112,"uuid":"624648809","full_name":"DreamyCecil/SE1-Injector","owner":"DreamyCecil","description":"Simple library that can inject its own code into games on Serious Engine 1 upon engine initialization.","archived":false,"fork":false,"pushed_at":"2024-02-12T23:44:49.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-11T11:17:53.172Z","etag":null,"topics":["ansi-c","injector","injector-games","serious-engine","windows"],"latest_commit_sha":null,"homepage":"","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/DreamyCecil.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}},"created_at":"2023-04-07T00:08:54.000Z","updated_at":"2023-04-07T05:17:28.000Z","dependencies_parsed_at":"2023-09-14T02:05:42.835Z","dependency_job_id":null,"html_url":"https://github.com/DreamyCecil/SE1-Injector","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DreamyCecil%2FSE1-Injector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DreamyCecil%2FSE1-Injector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DreamyCecil%2FSE1-Injector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DreamyCecil%2FSE1-Injector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DreamyCecil","download_url":"https://codeload.github.com/DreamyCecil/SE1-Injector/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241203621,"owners_count":19926823,"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":["ansi-c","injector","injector-games","serious-engine","windows"],"created_at":"2024-11-12T12:17:54.743Z","updated_at":"2026-05-14T10:37:17.082Z","avatar_url":"https://github.com/DreamyCecil.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Serious Engine 1 Injector\n\nThis is a simple library that can inject its own code into games on Serious Engine 1 via replacing optional modules of the engine that are dynamically loaded upon engine initialization.\n\n### Supported injections\n- `ImmWrapper.dll` - Obsolete IFeel support\n- `eview3d.dll` - Exploration 3D module\n- `amp11lib.dll` - MP3 playback support\n- `vorbisfile.dll`/`libvorbisfile.dll` - OGG playback support\n- `Game.dll`/`GameMP.dll` - Main Game module\n- `GameGUI.dll`/`GameGUIMP.dll` - Extra GUI module\n\n## How it works\n\nWhen the engine starts, it dynamically loads specific libraries and hooks their methods via C API. What this injector does is substitute those methods with its own, which in turn call methods from the original library under a different file name.\n\nThis injector also exports its own custom symbols that you may utilize:\n- `char INJ_strOriginalLib[256]` - Null-terminated ASCII string that contains a path to the original library for hooking its methods.\n- `void INJ_LoadLibrary(void)` - Method for loading a new library if the path to it has been changed.\n- `int INJ_FreeLibrary(void)` - Method for freeing the last loaded library. Return value is the same as from Windows' `FreeLibrary()`.\n- `void INJ_HookOriginalMethods(void)` - Method for \"rehooking\" methods from the library. Needs to be called after loading a new one.\n\n### File structure\n- `Injector.c` - Main injector code. Defines methods that call original methods.\n- `Injector.h` - Main injector interface. Can be used for linking the injector library.\n- `Main.c` - Defines injector's entry point and hooks original methods upon loading the injector library.\n\n## Building\n\nThis project is written in ANSI C using **Visual Studio 2010** but can be compiled virtually by any C compiler.\n\nBatch script for building using **MSVC**:\n```bat\ncl.exe Main.c /LD /DINJECTOR_LIB_PATH=\"\\\"GameMP.dll\\\"\"\n```\n\n### Notes\n- Don't forget to specify the path to the original library in the `INJ_strOriginalLib` variable using the `INJECTOR_LIB_PATH` macro. It can either be absolute or relative to the executable that loaded the injector.\n- If you wish to build the entire working library, you can simply compile `Main.c` source file, since it includes `Injector.c` inline.\n- If you wish to just link the injector instead, you need to include the `Injector.h` file and link the static library manually.\n\n## License\n\nTo avoid potential issues with linking Serious Engine 1 to this project, **Serious Engine 1 Injector** is licensed under GNU GPL v2 (see LICENSE file).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdreamycecil%2Fse1-injector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdreamycecil%2Fse1-injector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdreamycecil%2Fse1-injector/lists"}