Files
ss/.clang-format
T
Elijah Thomas 9c3c480b24 g3d source (#123)
* g3d_calcvtx

GetData seems to have changed -> dwarf says r is a local and using ofs_to_ptr didnt work

* g3d_light and g3d_fog

sdata2 splits and func ordering

* g3d_scnproc

* g3d_init

* g3d_scnmdl

* g3d_scnmdlsmpl

* g3d_scnroot

* g3d_scnobj

* g3d_res* progress

* g3d_resmdl OK

* g3d_restev OK

* g3d_resmat OK

* g3d_resvtx and g3d_restex OK

* g3d_resnode OK

* g3d_resanm OK

* g3d_resanmchr Progress

* the rest of g3d_res* OK

* g3d_anmvis OK

* g3d_anmclr OK

* Some Splitting

* more OK, Inline Issue in g3d_anmtexsrt

* g3d_obj, g3d_anmobj, g3d_gpu, g3d_tmem, g3d_cpu OK

* g3d_state OK

* g3d/dcc OK

* Include fixup

* More Fixups

* g3d_camera OK

* g3d_draw OK

* g3d_calcworld OK

* g3d_calcworld actually OK

* g3d_workmem, g3d_dcc OK

* g3d_calcview OK

* g3d_anmtexsrt OK with DONT_INLINE

* g3d_transform OK (Feels Cheaty)

* g3d_resanmchr OK

* g3d_draw1mat1shp Close

* g3d_draw1mat1shp OK (Thanks Lago!). Ran symbol applying script
2025-03-16 11:26:15 -04:00

113 lines
3.1 KiB
YAML

AccessModifierOffset: -4
AlignAfterOpenBracket: BlockIndent
AlignArrayOfStructures: Right
AlignConsecutiveAssignments: None
AlignConsecutiveBitFields: None
AlignConsecutiveDeclarations: None
AlignConsecutiveMacros: None
AlignConsecutiveShortCaseStatements:
Enabled: true
AcrossEmptyLines: true
AcrossComments: true
AlignCaseColons: false
AlignOperands: AlignAfterOperator
AlignTrailingComments: Always
AlignEscapedNewlines: Right
AllowAllArgumentsOnNextLine: True
AllowAllParametersOfDeclarationOnNextLine: True
AllowShortBlocksOnASingleLine: Empty
AllowShortCaseLabelsOnASingleLine: True
AllowShortEnumsOnASingleLine: False
AllowShortFunctionsOnASingleLine: Empty
AllowShortIfStatementsOnASingleLine: Never
AllowShortLoopsOnASingleLine: False
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: True
AlwaysBreakTemplateDeclarations: Yes
BinPackArguments: True
BitFieldColonSpacing: Both
BreakBeforeBraces: Custom
BraceWrapping:
AfterCaseLabel: False
AfterClass: False
AfterControlStatement: Never
AfterEnum: False
AfterFunction: False
AfterNamespace: False
AfterUnion: False
AfterExternBlock: False
BeforeCatch: True
BeforeElse: False
BeforeWhile: False
BreakBeforeBinaryOperators: None
BreakBeforeTernaryOperators: False
BreakStringLiterals: True
ColumnLimit: 120
ConstructorInitializerAllOnOneLineOrOnePerLine: true
ContinuationIndentWidth: 4
FixNamespaceComments: true
IncludeBlocks: Regroup
IndentAccessModifiers: False
IndentCaseLabels: True
IndentGotoLabels: True
IndentWidth: 4
InsertBraces: True
InsertNewlineAtEOF: true
KeepEmptyLinesAtTheStartOfBlocks: False
MaxEmptyLinesToKeep: 1
Language: Cpp
Standard: C++03
PointerAlignment: Right
SortIncludes: CaseSensitive
SpaceAfterCStyleCast: False
SpaceAfterLogicalNot: False
SpaceBeforeAssignmentOperators: True
SpaceBeforeCaseColon: False
SpaceBeforeParens: ControlStatements
SpaceBeforeSquareBrackets: False
SpaceInEmptyBlock: False
SpaceInEmptyParentheses: False
SpacesBeforeTrailingComments: 1
SpacesInCStyleCastParentheses: False
SpacesInConditionalStatement: False
SpacesInLineCommentPrefix:
Minimum: 1
Maximum: 1
SpacesInParentheses: False
SpacesInSquareBrackets: False
UseTab: Never
WhitespaceSensitiveMacros: [
NW4R_UT_LINKLIST_FOREACH,
NW4R_UT_LINKLIST_FOREACH_SAFE,
NW4R_UT_LIST_FOREACH,
NW4R_UT_LIST_FOREACH_SAFE,
NW4R_EF_LIST_FOREACH,
NW4R_EF_LIST_FOREACH_SAFE
]
AttributeMacros: [DECOMP_INLINE, DECOMP_DONT_INLINE]
# Taken from ogws :)
IncludeCategories:
- Regex: '^<(nw4r|egg|Pack)?(\/)?types' # "Types" headers
Priority: 0
CaseSensitive: true
- Regex: '"egg\/[[:lower:].]+h"' # EGG public headers
Priority: 2
CaseSensitive: true
- Regex: '"nw4r\/[[:lower:].]+h"' # NW4R public headers
Priority: 3
CaseSensitive: true
- Regex: '^"rvl\/[[:upper:].]+h"' # RVL SDK public headers
Priority: 4
CaseSensitive: true
- Regex: '<[[:alnum:].]+>' # STL headers
Priority: 5 # Priority 0 is header mapped to src file
CaseSensitive: true
- Regex: '.*' # All other headers
Priority: 1