Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ Standard: Cpp03

AccessModifierOffset: -4
AllowShortFunctionsOnASingleLine: Empty
AttributeMacros: [DECOMP_INLINE, DECOMP_DONT_INLINE]
AttributeMacros:
[DECOMP_INLINE, DECOMP_DONT_INLINE, NW4R_EF_MEMORY_MANAGER_MEMBER_ACCESS]
ConstructorInitializerAllOnOneLineOrOnePerLine: true
FixNamespaceComments: true
ForEachMacros: [EGG_NW4R_LIST_FOREACH]
ForEachMacros: [EGG_NW4R_LIST_FOREACH, RP_NW4R_LIST_FOREACH]
IncludeBlocks: Regroup
IndentWidth: 4
InsertNewlineAtEOF: true
Expand Down Expand Up @@ -36,6 +37,7 @@ WhitespaceSensitiveMacros:
NW4R_UT_LINKLIST_FOREACH_SAFE,
NW4R_UT_LIST_FOREACH_SAFE,
NW4R_UT_LIST_FOREACH,
RP_NW4R_LIST_FOREACH,
]

IncludeCategories:
Expand Down
2 changes: 2 additions & 0 deletions .clangd
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CompileFlags:
Add: -ferror-limit=100
7 changes: 6 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter"
},
"C_Cpp.default.defines": ["IEEE_LIBM", "REVOLUTION", "PACK_SPORTS"],
"C_Cpp.default.defines": [
"IEEE_LIBM",
"REVOLUTION",
"PACK_SPORTS",
"NW4R_EF_MEMORY_MANAGER_CONFIGURED"
],
// "editor.tabSize": 4,
// "files.autoSave": "onFocusChange",
"files.insertFinalNewline": true,
Expand Down
13 changes: 8 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,6 @@ ensure consistency across the codebase and its documentation.
> - Source code leaked online, pertaining to any software libraries linked
> within this game
> - Source code acquired through means only intended for licensed developers, such as a software development kit (SDK) distribution
>
> Due to concerns of leaked material in training sets, decompilation created by or with the assistance of large language models (LLMs) will not be accepted.
>
> As such, reviewers reserve the right to make the final call on whether to accept contributions.
>

> [!IMPORTANT]
> "Leaked material" does **NOT** include debugging information **left behind in retail games**, such as:
Expand All @@ -80,3 +75,11 @@ ensure consistency across the codebase and its documentation.
> - Debug builds of the executable
> - Binary object files (`*.o`), and static libraries (`*.a`) that may contain them
<!-- markdownlint-enable MD028 -->

## AI/LLM Policy

Due to concerns of leaked material in training sets, decompilation of SDK code created by or with the assistance of large language models (LLMs) **will not be accepted**. The use of such tools is permitted for game code (Pack Project engine) only, with some restrictions.

The main goal of this repo is to produce sensible, maintainable source code. Pull requests containing heavy use of raw pointer arithmetic and other non-portable expressions may still be rejected when the future effort required for refactoring is deemed to be too much.

**As such, project leads reserve the right to make the final call on whether to accept these types of contributions.**
Loading