├── .github └── ISSUE_TEMPLATE │ ├── bug_report.yml │ └── feature_request.yml ├── EULA.en.md ├── EULA.zh.md ├── LICENSES ├── asmjit.md ├── detours.txt ├── fmt.txt ├── nlohmann_json.txt ├── parallel-hashmap.txt └── pe_bliss.txt ├── README.md └── tooth.json /.github/ISSUE_TEMPLATE/bug_report.yml: -------------------------------------------------------------------------------- 1 | name: Bug Report 2 | description: Create a report to help us improve 3 | title: "[Bug]: " 4 | labels: ["bug"] 5 | body: 6 | - type: textarea 7 | attributes: 8 | label: Describe the bug 9 | description: A clear and concise description of what the bug is. 10 | validations: 11 | required: true 12 | 13 | - type: textarea 14 | attributes: 15 | label: To Reproduce 16 | description: Steps to reproduce the behavior. 17 | validations: 18 | required: true 19 | 20 | - type: textarea 21 | attributes: 22 | label: Expected behavior 23 | description: A clear and concise description of what you expected to happen. 24 | validations: 25 | required: true 26 | 27 | - type: textarea 28 | attributes: 29 | label: Screenshots 30 | description: If applicable, add screenshots to help explain your problem. 31 | 32 | - type: input 33 | attributes: 34 | label: Platform 35 | description: The platform you are using. (e.g. Windows 10, macOS 10.15, Ubuntu 20.04) 36 | 37 | - type: input 38 | attributes: 39 | label: Version 40 | description: The version of the application you are using. (e.g. 1.0.0) 41 | 42 | - type: textarea 43 | attributes: 44 | label: Additional context 45 | description: Add any other context about the problem here. 46 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.yml: -------------------------------------------------------------------------------- 1 | name: Feature request 2 | description: Suggest an idea for this project 3 | title: "[Feature]: " 4 | labels: ["enhancement"] 5 | body: 6 | - type: textarea 7 | attributes: 8 | label: Is your feature request related to a problem? Please describe. 9 | description: A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 10 | validations: 11 | required: true 12 | 13 | - type: textarea 14 | attributes: 15 | label: Describe the solution you'd like 16 | description: A clear and concise description of what you want to happen. 17 | validations: 18 | required: true 19 | 20 | - type: textarea 21 | attributes: 22 | label: Describe alternatives you've considered 23 | description: A clear and concise description of any alternative solutions or features you've considered. 24 | 25 | - type: textarea 26 | attributes: 27 | label: Additional context 28 | description: Add any other context or screenshots about the feature request here. 29 | -------------------------------------------------------------------------------- /EULA.en.md: -------------------------------------------------------------------------------- 1 | # LeviMC Closed-Source Software End User License Agreement 2 | 3 | *This is a translation of the original Chinese version of the EULA. In case of any discrepancy between the English version and the Chinese version, the Chinese version shall prevail.* 4 | 5 | Version 0.2.0 6 | Date: 2025/1/20 7 | Copyright © LeviMC. All rights reserved. 8 | 9 | --- 10 | 11 | This End User License Agreement (**"EULA"**) is an agreement between you and us ([LeviMC (LiteLDev)](https://github.com/LiteLDev)) regarding the use of LeviMC's closed-source software. This EULA applies to all closed-source software from LeviMC. Please read this EULA carefully to understand your rights and obligations. If you do not agree with any terms and conditions of this EULA, do not distribute, download, install, access, or otherwise use LeviMC's closed-source software. 12 | 13 | Unless specified otherwise, this EULA applies to all closed-source software from LeviMC. 14 | 15 | ## Summary 16 | 17 | This EULA applies to all LeviMC closed-source software, including but not limited to [PreLoader](https://github.com/LiteLDev/PreLoader), [PeEditor](https://github.com/LiteLDev/PeEditor). 18 | 19 | - You may not violate the [Minecraft EULA](https://www.minecraft.net/en-us/eula). 20 | - You may not reverse engineer, decompile, or disassemble LeviMC's closed-source software. 21 | - You may not use LeviMC's closed-source software to develop programs that may harm Minecraft security, or any other product that we deem may harm Minecraft security. 22 | 23 | This summary is not part of the EULA and is provided for your reference. Please read the full EULA to understand your rights and obligations. 24 | 25 | ## 1. Definitions 26 | 27 | "License": Refers to the license granted to the user under this EULA. 28 | 29 | "This Software": Refers to LeviMC's closed-source software. 30 | 31 | "This EULA": Refers to this End User License Agreement. 32 | 33 | "User, You": Refers to the individual, company, or other entity using this software. 34 | 35 | "We": Refers to [LeviMC (LiteLDev)](https://github.com/LiteLDev), the developer of this software. 36 | 37 | ## 2. License Grant 38 | 39 | 2.1 We grant you a limited, non-exclusive, non-transferable, revocable license to use this software. Unless specifically stated otherwise, this EULA applies to all closed-source software from LeviMC. 40 | 41 | 2.2 You may not sell, distribute, license, lease, transfer, or otherwise commercialize this software. 42 | 43 | ## 3. Usage Restrictions 44 | 45 | 3.1 You may not use this software for any illegal activities. 46 | 47 | 3.2 You may not violate the [Minecraft EULA](https://www.minecraft.net/en-us/eula). 48 | 49 | 3.3 You may not reverse engineer, decompile, or disassemble this software or any other software containing closed-source code provided by us, unless explicitly permitted by law. 50 | 51 | 3.4 You may not use this software to develop programs that may harm Minecraft security, or any other product that we deem may harm Minecraft security. 52 | 53 | 3.5 You may not remove, hide, or alter any copyright, trademark, or other proprietary notices contained in this software. 54 | 55 | ## 4. License Fee 56 | 57 | 4.1 You may use this software free of charge. 58 | 59 | ## 5. Liability and Warranty 60 | 61 | 5.1 This software is provided "as is" without any express or implied warranties. 62 | 63 | 5.2 Under no circumstances shall LeviMC be liable for any loss or damage arising from the use of this software. The user assumes all risks associated with using the software. 64 | 65 | 5.3 If you violate any terms of this EULA, the consequences are entirely your responsibility, whether as an individual, organization, or company. LeviMC **assumes no legal responsibility** and **is not responsible** for these outcomes. Please read and comply with this EULA to avoid unnecessary issues. 66 | 67 | ## 6. License Termination 68 | 69 | 6.1 If you violate any term or condition of this EULA, your license will automatically terminate, and you must immediately cease using the software. 70 | 71 | 6.2 After the termination of this EULA, you must immediately stop using the software and destroy all copies of the software that you have downloaded. 72 | 73 | ## 7. Governing Law and Dispute Resolution 74 | 75 | 7.1 This EULA shall be governed by the laws of the People's Republic of China. 76 | 77 | 7.2 This EULA applies to the agreement between you and us regarding the use of this software. 78 | 79 | 7.3 Any disputes arising from this EULA or the software should be resolved through friendly negotiations. If negotiations fail, either party may file a lawsuit in the People's Court located in the city of LeviMC's headquarters (Shanghai). 80 | 81 | 7.4 The final interpretation of this EULA belongs to LeviMC. 82 | 83 | ## 8. Miscellaneous 84 | 85 | We encourage you to do cool things—but please don't do what we have explicitly prohibited. We have compiled detailed [LeviLamina Usage Guidelines](https://lamina.levimc.org/common_guides/usage_guidelines/), outlining what you can and cannot do. These guidelines may change frequently, so please check them regularly. 86 | 87 | These guidelines are not part of this EULA, but we strongly recommend that you read and follow them. If you have any questions, feel free to contact us. 88 | 89 | ### Contact Information 90 | 91 | Our official website: [https://levimc.org/](https://levimc.org/) 92 | Our official Discord: [https://discord.gg/v5R5P4vRZk](https://discord.gg/v5R5P4vRZk) 93 | Our official GitHub: [https://github.com/LiteLDev](https://github.com/LiteLDev) 94 | Our official email: 95 | 96 | ### History of Changes 97 | 98 | - 2025.01.20 Rewritten the entire document 99 | - 2025.01.04 First official version completed 100 | - 2024.12.11 Corrected the name of the initial draft file 101 | - 2024.11.03 Completed the first draft 102 | -------------------------------------------------------------------------------- /EULA.zh.md: -------------------------------------------------------------------------------- 1 | # LeviMC 闭源软件的最终用户许可协议 2 | 3 | 版本 0.2.0 4 | 日期 2025/1/20 5 | 版权所有 © LeviMC,保留所有权利。 6 | 7 | --- 8 | 9 | 本最终用户许可协议 (**"EULA"**) 是您与我们([LeviMC (LiteLDev)](https://github.com/LiteLDev))之间关于使用 LeviMC 的闭源软件之间的协议。本 EULA 适用于所有 LeviMC 的闭源软件。请仔细阅读本 EULA,以了解您的权利和义务。如果您不同意本 EULA 的任何条款和条件,请不要分发、下载、安装、访问和/或以其他方式使用 LeviMC 的闭源软件。 10 | 11 | 除非特别说明,本 EULA 适用于所有 LeviMC 的闭源软件。 12 | 13 | ## 摘要 14 | 15 | 本 EULA 适用于所有 LeviMC 的闭源软件,包括但不限于 [PreLoader](https://github.com/LiteLDev/PreLoader)、[PeEditor](https://github.com/LiteLDev/PeEditor)。 16 | 17 | - 您不得违反 [Minecraft EULA](https://www.minecraft.net/en-us/eula)。 18 | - 您不得对 LeviMC 的闭源软件进行反向工程、反编译或反汇编。 19 | - 您不得使用 LeviMC 的闭源软件开发可能危害 Minecraft 安全的程序,或我们认为可能危害 Minecraft 安全的任何其他产品。 20 | 21 | 本摘要并不是本 EULA 的一部分,仅供您参考。请阅读完整的 EULA 以了解您的权利和义务。 22 | 23 | ## 1. 定义 24 | 25 | “许可”:指根据本 EULA 授予用户的许可。 26 | 27 | “本软件”:指 LeviMC 的闭源软件。 28 | 29 | “本 EULA”:指本最终用户许可协议。 30 | 31 | “用户、您”:指使用本软件的个人、公司或其他实体。 32 | 33 | “我们”:指 [LeviMC (LiteLDev)](https://github.com/LiteLDev/),我们是本软件的开发者。 34 | 35 | ## 2. 许可授予 36 | 37 | 2.1 我们授予您有限、非独占、不可转让、可撤销的许可,以使用本软件。除非特别说明,本 EULA 适用于所有 LeviMC 的闭源软件。 38 | 39 | 2.2 您不得出售、分发、许可、租赁、转让或以其他方式商业化本软件。 40 | 41 | ## 3. 使用限制 42 | 43 | 3.1 您不得使用本软件从事任何非法活动。 44 | 45 | 3.2 您不得违反 [Minecraft EULA](https://www.minecraft.net/en-us/eula)。 46 | 47 | 3.3 您不得对本软件或我们提供的任何其他包含闭源代码的软件进行反向工程、反编译或反汇编,除非法律明确允许。 48 | 49 | 3.4 您不得使用本软件开发可能危害 Minecraft 安全的程序,或我们认为可能危害 Minecraft 安全的任何其他产品。 50 | 51 | 3.5 您不得删除、隐藏或更改本软件中包含的任何版权、商标或其他所有权声明。 52 | 53 | ## 4. 许可费用 54 | 55 | 4.1 您可以免费使用本软件。 56 | 57 | ## 5. 责任与担保 58 | 59 | 5.1 本软件按“原样”提供,不提供任何明示或暗示的担保。 60 | 61 | 5.2 在任何情况下,LeviMC 不对因使用本软件而导致的任何损失或损害承担责任,用户对使用本软件承担全部风险。 62 | 63 | 5.3 如果您违反了本 EULA,所产生的后果**完全由您负责**,无论是个人、组织还是公司。LeviMC **不承担任何法律责任**,并**不对这些结果负责**。请仔细阅读并遵守本 EULA,以避免不必要的问题。 64 | 65 | ## 6. 许可终止 66 | 67 | 6.1 如果您违反本 EULA 的任何条款或条件,您的许可将自动终止,您应立即停止使用本软件。 68 | 69 | 6.2 本 EULA 终止后,您应立即停止使用本软件,并销毁所有已下载的本软件的副本。 70 | 71 | ## 7. 法律管辖与争议解决 72 | 73 | 7.1 本 EULA 受中华人民共和国法律管辖。 74 | 75 | 7.2 本 EULA 适用于您与我们之间关于使用本软件的协议。 76 | 77 | 7.3 任何因本 EULA 或本软件引起的争议应通过友好协商解决。协商不成的,任何一方均可向 LeviMC 所在地(上海市)的人民法院提起诉讼。 78 | 79 | 7.4 本 EULA 的最终解释权归 LeviMC 所有。 80 | 81 | ## 8. 其他 82 | 83 | 我们鼓励您做一些很酷的事情——但请不要做我们已经明确禁止的事情。我们已经整理了详细的 [LeviLamina 使用指南](https://lamina.levimc.org/zh/common_guides/usage_guidelines/),概述了您可以或不能做的事情。指南可能会频繁变动,请您随时查看。 84 | 85 | 该指南不属于本 EULA 的一部分,但我们强烈建议您阅读并遵守。如果您有任何疑问,请随时联系我们。 86 | 87 | ### 联系信息 88 | 89 | 我们的官方网站: [https://levimc.org/](https://levimc.org/) 90 | 我们的官方 Discord: [https://discord.gg/v5R5P4vRZk](https://discord.gg/v5R5P4vRZk) 91 | 我们的官方 GitHub: [https://github.com/LiteLDev](https://github.com/LiteLDev) 92 | 我们的官方邮箱: 93 | 94 | ### 历史变更信息 95 | 96 | - 2025.01.20 重写了整个文件 97 | - 2025.01.04 完成了第一正式版 98 | - 2024.12.11 更正了首个草稿文件的名称 99 | - 2024.11.03 完成了首个草稿 100 | -------------------------------------------------------------------------------- /LICENSES/asmjit.md: -------------------------------------------------------------------------------- 1 | Copyright (c) 2008-2024 The AsmJit Authors 2 | 3 | This software is provided 'as-is', without any express or implied 4 | warranty. In no event will the authors be held liable for any damages 5 | arising from the use of this software. 6 | 7 | Permission is granted to anyone to use this software for any purpose, 8 | including commercial applications, and to alter it and redistribute it 9 | freely, subject to the following restrictions: 10 | 11 | 1. The origin of this software must not be misrepresented; you must not 12 | claim that you wrote the original software. If you use this software 13 | in a product, an acknowledgment in the product documentation would be 14 | appreciated but is not required. 15 | 2. Altered source versions must be plainly marked as such, and must not be 16 | misrepresented as being the original software. 17 | 3. This notice may not be removed or altered from any source distribution. 18 | -------------------------------------------------------------------------------- /LICENSES/detours.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) Microsoft Corporation. 2 | 3 | MIT License 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /LICENSES/fmt.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2012 - present, Victor Zverovich and {fmt} contributors 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining 4 | a copy of this software and associated documentation files (the 5 | "Software"), to deal in the Software without restriction, including 6 | without limitation the rights to use, copy, modify, merge, publish, 7 | distribute, sublicense, and/or sell copies of the Software, and to 8 | permit persons to whom the Software is furnished to do so, subject to 9 | the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be 12 | included in all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | 22 | --- Optional exception to the license --- 23 | 24 | As an exception, if, as a result of your compiling your source code, portions 25 | of this Software are embedded into a machine-executable object form of such 26 | source code, you may redistribute such embedded portions in such object form 27 | without including the above copyright and permission notices. 28 | -------------------------------------------------------------------------------- /LICENSES/nlohmann_json.txt: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2013-2025 Niels Lohmann 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /LICENSES/parallel-hashmap.txt: -------------------------------------------------------------------------------- 1 | 2 | Apache License 3 | Version 2.0, January 2004 4 | https://www.apache.org/licenses/ 5 | 6 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 7 | 8 | 1. Definitions. 9 | 10 | "License" shall mean the terms and conditions for use, reproduction, 11 | and distribution as defined by Sections 1 through 9 of this document. 12 | 13 | "Licensor" shall mean the copyright owner or entity authorized by 14 | the copyright owner that is granting the License. 15 | 16 | "Legal Entity" shall mean the union of the acting entity and all 17 | other entities that control, are controlled by, or are under common 18 | control with that entity. For the purposes of this definition, 19 | "control" means (i) the power, direct or indirect, to cause the 20 | direction or management of such entity, whether by contract or 21 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 22 | outstanding shares, or (iii) beneficial ownership of such entity. 23 | 24 | "You" (or "Your") shall mean an individual or Legal Entity 25 | exercising permissions granted by this License. 26 | 27 | "Source" form shall mean the preferred form for making modifications, 28 | including but not limited to software source code, documentation 29 | source, and configuration files. 30 | 31 | "Object" form shall mean any form resulting from mechanical 32 | transformation or translation of a Source form, including but 33 | not limited to compiled object code, generated documentation, 34 | and conversions to other media types. 35 | 36 | "Work" shall mean the work of authorship, whether in Source or 37 | Object form, made available under the License, as indicated by a 38 | copyright notice that is included in or attached to the work 39 | (an example is provided in the Appendix below). 40 | 41 | "Derivative Works" shall mean any work, whether in Source or Object 42 | form, that is based on (or derived from) the Work and for which the 43 | editorial revisions, annotations, elaborations, or other modifications 44 | represent, as a whole, an original work of authorship. For the purposes 45 | of this License, Derivative Works shall not include works that remain 46 | separable from, or merely link (or bind by name) to the interfaces of, 47 | the Work and Derivative Works thereof. 48 | 49 | "Contribution" shall mean any work of authorship, including 50 | the original version of the Work and any modifications or additions 51 | to that Work or Derivative Works thereof, that is intentionally 52 | submitted to Licensor for inclusion in the Work by the copyright owner 53 | or by an individual or Legal Entity authorized to submit on behalf of 54 | the copyright owner. For the purposes of this definition, "submitted" 55 | means any form of electronic, verbal, or written communication sent 56 | to the Licensor or its representatives, including but not limited to 57 | communication on electronic mailing lists, source code control systems, 58 | and issue tracking systems that are managed by, or on behalf of, the 59 | Licensor for the purpose of discussing and improving the Work, but 60 | excluding communication that is conspicuously marked or otherwise 61 | designated in writing by the copyright owner as "Not a Contribution." 62 | 63 | "Contributor" shall mean Licensor and any individual or Legal Entity 64 | on behalf of whom a Contribution has been received by Licensor and 65 | subsequently incorporated within the Work. 66 | 67 | 2. Grant of Copyright License. Subject to the terms and conditions of 68 | this License, each Contributor hereby grants to You a perpetual, 69 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 70 | copyright license to reproduce, prepare Derivative Works of, 71 | publicly display, publicly perform, sublicense, and distribute the 72 | Work and such Derivative Works in Source or Object form. 73 | 74 | 3. Grant of Patent License. Subject to the terms and conditions of 75 | this License, each Contributor hereby grants to You a perpetual, 76 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 77 | (except as stated in this section) patent license to make, have made, 78 | use, offer to sell, sell, import, and otherwise transfer the Work, 79 | where such license applies only to those patent claims licensable 80 | by such Contributor that are necessarily infringed by their 81 | Contribution(s) alone or by combination of their Contribution(s) 82 | with the Work to which such Contribution(s) was submitted. If You 83 | institute patent litigation against any entity (including a 84 | cross-claim or counterclaim in a lawsuit) alleging that the Work 85 | or a Contribution incorporated within the Work constitutes direct 86 | or contributory patent infringement, then any patent licenses 87 | granted to You under this License for that Work shall terminate 88 | as of the date such litigation is filed. 89 | 90 | 4. Redistribution. You may reproduce and distribute copies of the 91 | Work or Derivative Works thereof in any medium, with or without 92 | modifications, and in Source or Object form, provided that You 93 | meet the following conditions: 94 | 95 | (a) You must give any other recipients of the Work or 96 | Derivative Works a copy of this License; and 97 | 98 | (b) You must cause any modified files to carry prominent notices 99 | stating that You changed the files; and 100 | 101 | (c) You must retain, in the Source form of any Derivative Works 102 | that You distribute, all copyright, patent, trademark, and 103 | attribution notices from the Source form of the Work, 104 | excluding those notices that do not pertain to any part of 105 | the Derivative Works; and 106 | 107 | (d) If the Work includes a "NOTICE" text file as part of its 108 | distribution, then any Derivative Works that You distribute must 109 | include a readable copy of the attribution notices contained 110 | within such NOTICE file, excluding those notices that do not 111 | pertain to any part of the Derivative Works, in at least one 112 | of the following places: within a NOTICE text file distributed 113 | as part of the Derivative Works; within the Source form or 114 | documentation, if provided along with the Derivative Works; or, 115 | within a display generated by the Derivative Works, if and 116 | wherever such third-party notices normally appear. The contents 117 | of the NOTICE file are for informational purposes only and 118 | do not modify the License. You may add Your own attribution 119 | notices within Derivative Works that You distribute, alongside 120 | or as an addendum to the NOTICE text from the Work, provided 121 | that such additional attribution notices cannot be construed 122 | as modifying the License. 123 | 124 | You may add Your own copyright statement to Your modifications and 125 | may provide additional or different license terms and conditions 126 | for use, reproduction, or distribution of Your modifications, or 127 | for any such Derivative Works as a whole, provided Your use, 128 | reproduction, and distribution of the Work otherwise complies with 129 | the conditions stated in this License. 130 | 131 | 5. Submission of Contributions. Unless You explicitly state otherwise, 132 | any Contribution intentionally submitted for inclusion in the Work 133 | by You to the Licensor shall be under the terms and conditions of 134 | this License, without any additional terms or conditions. 135 | Notwithstanding the above, nothing herein shall supersede or modify 136 | the terms of any separate license agreement you may have executed 137 | with Licensor regarding such Contributions. 138 | 139 | 6. Trademarks. This License does not grant permission to use the trade 140 | names, trademarks, service marks, or product names of the Licensor, 141 | except as required for reasonable and customary use in describing the 142 | origin of the Work and reproducing the content of the NOTICE file. 143 | 144 | 7. Disclaimer of Warranty. Unless required by applicable law or 145 | agreed to in writing, Licensor provides the Work (and each 146 | Contributor provides its Contributions) on an "AS IS" BASIS, 147 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 148 | implied, including, without limitation, any warranties or conditions 149 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 150 | PARTICULAR PURPOSE. You are solely responsible for determining the 151 | appropriateness of using or redistributing the Work and assume any 152 | risks associated with Your exercise of permissions under this License. 153 | 154 | 8. Limitation of Liability. In no event and under no legal theory, 155 | whether in tort (including negligence), contract, or otherwise, 156 | unless required by applicable law (such as deliberate and grossly 157 | negligent acts) or agreed to in writing, shall any Contributor be 158 | liable to You for damages, including any direct, indirect, special, 159 | incidental, or consequential damages of any character arising as a 160 | result of this License or out of the use or inability to use the 161 | Work (including but not limited to damages for loss of goodwill, 162 | work stoppage, computer failure or malfunction, or any and all 163 | other commercial damages or losses), even if such Contributor 164 | has been advised of the possibility of such damages. 165 | 166 | 9. Accepting Warranty or Additional Liability. While redistributing 167 | the Work or Derivative Works thereof, You may choose to offer, 168 | and charge a fee for, acceptance of support, warranty, indemnity, 169 | or other liability obligations and/or rights consistent with this 170 | License. However, in accepting such obligations, You may act only 171 | on Your own behalf and on Your sole responsibility, not on behalf 172 | of any other Contributor, and only if You agree to indemnify, 173 | defend, and hold each Contributor harmless for any liability 174 | incurred by, or claims asserted against, such Contributor by reason 175 | of your accepting any such warranty or additional liability. 176 | 177 | END OF TERMS AND CONDITIONS 178 | 179 | APPENDIX: How to apply the Apache License to your work. 180 | 181 | To apply the Apache License to your work, attach the following 182 | boilerplate notice, with the fields enclosed by brackets "[]" 183 | replaced with your own identifying information. (Don't include 184 | the brackets!) The text should be enclosed in the appropriate 185 | comment syntax for the file format. We also recommend that a 186 | file or class name and description of purpose be included on the 187 | same "printed page" as the copyright notice for easier 188 | identification within third-party archives. 189 | 190 | Copyright [yyyy] [name of copyright owner] 191 | 192 | Licensed under the Apache License, Version 2.0 (the "License"); 193 | you may not use this file except in compliance with the License. 194 | You may obtain a copy of the License at 195 | 196 | https://www.apache.org/licenses/LICENSE-2.0 197 | 198 | Unless required by applicable law or agreed to in writing, software 199 | distributed under the License is distributed on an "AS IS" BASIS, 200 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 201 | See the License for the specific language governing permissions and 202 | limitations under the License. 203 | -------------------------------------------------------------------------------- /LICENSES/pe_bliss.txt: -------------------------------------------------------------------------------- 1 | Library is free to use in both commertial and non-commertial projects. You can also modify and redistribute it. If you are using it, please, do not forget to specify the name or other copyright of PE Bliss somewhere in the description of your project. 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # PreLoader 2 | 3 | A library preloader for loading LeviLamina 4 | 5 | This is the library preloader for [LeviLamina](https://github.com/LiteLDev/LeviLamina). It loads LeviLamina before game starts and provides MCAPIs required by LeviLamina and various mods. We uses windows delay load to expose and remap original symbol to our own symbol, and then we will provide them to mods. 6 | 7 | Due to the requirements of the copyright holder, this software has been closed-source since v1.10.0, if you have any problems, feel free to file an issue. 8 | 9 | ## Install 10 | 11 | ```sh 12 | lip install github.com/LiteLDev/PreLoader 13 | ``` 14 | 15 | ## Usage 16 | 17 | This is one of the prerequisites for using LeviLamina. You need to install this library preloader before using LeviLamina. 18 | 19 | ## Used Projects 20 | 21 | | Project | License | Link | 22 | | ---------------- | ---------- | ---------------------------------------------------------------- | 23 | | pe_bliss | Special | | 24 | | fmt | MIT | | 25 | | nlohmann_json | MIT | | 26 | | parallel-hashmap | Apache-2.0 | | 27 | | detours | MIT | | 28 | | asmjit | Zlib | | 29 | 30 | ## License 31 | 32 | Copyright © 2024 LeviMC, All rights reserved. 33 | 34 | Refer to EULA for more information. 35 | -------------------------------------------------------------------------------- /tooth.json: -------------------------------------------------------------------------------- 1 | { 2 | "format_version": 3, 3 | "format_uuid": "289f771f-2c9a-4d73-9f3f-8492495a924d", 4 | "tooth": "github.com/LiteLDev/PreLoader", 5 | "version": "1.15.2", 6 | "info": { 7 | "name": "PreLoader", 8 | "description": "A library preloader for loading LeviLamina", 9 | "tags": [], 10 | "avatar_url": "" 11 | }, 12 | "variants": [ 13 | { 14 | "platform": "win-x64", 15 | "assets": [ 16 | { 17 | "type": "zip", 18 | "urls": [ 19 | "https://{{tooth}}/releases/download/v{{version}}/preloader-v{{version}}-windows-x64.zip" 20 | ], 21 | "placements": [ 22 | { 23 | "type": "file", 24 | "src": "bin/PreLoader.dll", 25 | "dest": "PreLoader.dll" 26 | } 27 | ] 28 | } 29 | ] 30 | } 31 | ] 32 | } 33 | --------------------------------------------------------------------------------