Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ppc2cpp integration; use ppcdis for dol disasm #286

Open
wants to merge 485 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
485 commits
Select commit Hold shift + click to select a range
8c53c2d
tu_detect/sdata_accesses: sdata2/text TU detection
Mar 24, 2022
0acc10c
tu_detect/sdata_accesses: remove psq detection
Mar 24, 2022
163719e
tu_detect/sdata_accesses: comments
Mar 24, 2022
25f8253
Split ut_LinkList
riidefi Mar 24, 2022
682de0e
Split ut_binaryFileFormat
riidefi Mar 24, 2022
e528d3b
Remove duplicate symbols
riidefi Mar 24, 2022
694e5f0
Split ut_CharStrmReader
riidefi Mar 24, 2022
eed59d1
.github: remove lint
riptl Mar 24, 2022
bb22a08
Continue to split nw4r::g3d::Camera (#155)
riptl Mar 27, 2022
f954f16
.github: only run publish on master
riptl Mar 27, 2022
fb4c4eb
rename ut_font placeholder to lyt_textBox
riptl Mar 27, 2022
69fc386
split ut_font
riptl Mar 27, 2022
8361454
gen_asm: omit slices smaller than 4 bytes (#156)
riptl Mar 27, 2022
a68d761
README: link progress batches to website
riptl Mar 27, 2022
73bb1d2
split ut_romFont
riptl Mar 27, 2022
1d7f542
split ut_resFontBase
riptl Mar 27, 2022
8f11ee2
ut_resFontBase: simplify code
riptl Mar 27, 2022
68c3999
split ut_resFont
riptl Mar 27, 2022
35d3d25
new slices
riptl Mar 27, 2022
9cbee0d
Basic inline asm linter (#160)
riptl Mar 28, 2022
f5b5491
tools/lint_inline_asm: add float hints (#161)
riptl Mar 31, 2022
f6b6cfa
.github: run lint_inline_asm in CI (#162)
riptl Mar 31, 2022
97170c7
.github: skip pytest if mkwutil unchanged (#163)
riptl Mar 31, 2022
261c73b
tools/lint_inline_asm: show sdata refs
riptl Mar 31, 2022
ef0379c
tools/lint_inline_asm: print signed short for lha
riptl Mar 31, 2022
0171118
make rvl/nand relocatable (#166)
riptl Apr 1, 2022
611a8b6
osFatal: reloc
riptl Apr 1, 2022
021d8cd
sdata relocs
riptl Apr 1, 2022
5cdabe1
split rvl/kpad
riptl Apr 1, 2022
ff4cd96
label kpad/wpad functions
riptl Apr 1, 2022
6889205
label funcs from stebler's Ghidra
riptl Apr 1, 2022
1ff9720
split rvl/ax/ax
riptl Apr 1, 2022
de24c57
split rvl/ax/rvlAxAlloc
riptl Apr 1, 2022
62231dc
split rvl/ax/rvlAxAux
riptl Apr 1, 2022
2944783
split rvl/ax/rvlAxCl
riptl Apr 1, 2022
e04c687
split rvl/ax/rvlAxComp
riptl Apr 1, 2022
8568eca
add data syms to symbols.txt
riptl Apr 2, 2022
f8ac75c
gen_asm: fix asm with misaligned symbols
riptl Apr 3, 2022
dd1809c
black format
riptl Apr 3, 2022
a249398
split rvlAxOut (#169)
riptl Apr 4, 2022
943d25e
split rvlAxSpb
riptl Apr 4, 2022
f889a9b
fix sources.py
riptl Apr 4, 2022
c8505fb
remove useless comment (#170)
riptl Apr 4, 2022
ac8557e
split rvlAxVpb
riptl Apr 5, 2022
cf78193
rvl/ax: dedup function declarations
riptl Apr 5, 2022
1206290
split rvlAxProf
riptl Apr 5, 2022
1e5d437
split rvlAxFxReverbHi
riptl Apr 5, 2022
4a913fb
split rvlAxFxReverbHiExp, rvlAxFxReverbHiExpDpl2 (#171)
riptl Apr 5, 2022
4431261
split rvlAxFxReverbStdExp (#172)
riptl Apr 5, 2022
ad7869a
split .init (#174)
riptl Apr 5, 2022
448e67b
build.py: rename flag single_file to match (#173)
riptl Apr 8, 2022
9411e40
Install Dependabot for GH actions and PIP (#178)
riptl May 6, 2022
7280471
Kill dependabot for pip
riptl May 6, 2022
77f007b
Bump actions/setup-python from 2 to 3 (#180)
dependabot[bot] May 6, 2022
f4f48e7
Bump JamesIves/github-pages-deploy-action from 4.2.5 to 4.3.3 (#179)
dependabot[bot] May 6, 2022
08cc5f9
ppc_dis: reloc sdata (#181)
riptl May 14, 2022
bd0538e
Add REL .c source generator
riidefi Jun 1, 2022
6023021
Bump actions/setup-python from 3 to 4 (#187)
dependabot[bot] Jun 9, 2022
61668ff
Split DvdArchive
riidefi Jun 11, 2022
78237ef
Split EGG g3d::ScnRfl
riidefi Jun 11, 2022
4cc3a38
Split eggTextureBuffer.cpp
riidefi Jun 11, 2022
60f4b87
Split eggSaveBanner.cpp
riidefi Jun 11, 2022
8fe1a92
Split eggIScnProc.cpp
riidefi Jun 11, 2022
0536a3b
Split eggLightManager.cpp, eggLightObject.cpp
riidefi Jun 11, 2022
7b85981
Split eggFog.cpp, eggFogManager.cpp
riidefi Jun 11, 2022
7694b85
Split eggEffect.cpp
riidefi Jun 11, 2022
9bcb519
CI: Specify full python version
riidefi Jun 11, 2022
5743bb2
CI: Don't use cached ASM
riidefi Jun 11, 2022
d54877e
symbols.txt: Add unk_* data
riidefi Jun 11, 2022
73aa518
Decompile more of eggSceneManager.cpp
riidefi Jun 11, 2022
b1ef0f9
Split eggScnRenderer.cpp
riidefi Jun 11, 2022
7ee6bd8
Split MultiDvdArchive.cpp
riidefi Jun 11, 2022
8205e7f
Decompile DvdArchive constructor/destructor
vabold Jun 13, 2022
48dfc73
Fix capitalization of ut_CharStrmReader.hpp
riidefi Jun 13, 2022
9d50d20
Add primitive .rel diffing
riidefi Jun 13, 2022
efacd93
build.py: Check if compiled .o files match sizes specified in slices …
riidefi Jun 13, 2022
3afd793
test.yml: Specify exact python version
riidefi Jun 13, 2022
902ea8c
Decomp: DvdArchive (#189)
vabold Jun 13, 2022
b51a842
Tidy up DvdArchive
riidefi Jun 13, 2022
de2a045
Rename KMP from JmpResourceCourse (MK7 name) to CourseMap (inferred f…
riidefi Jun 13, 2022
1d546d2
Decompile Useful part of eggDecomp (#190)
SwareJonge Jun 13, 2022
a860d26
Match MessageGroup::getSlot
riidefi Jun 14, 2022
c19b5eb
Split eggEffectCreator.cpp
riidefi Jun 14, 2022
5452881
Split eggCompress.cpp
riidefi Jun 14, 2022
c472347
Update default REL flags
riidefi Jun 14, 2022
f28d32e
Update default EGG flags
riidefi Jun 14, 2022
cc239bc
Decompile eggCompress.cpp (SZS)
riidefi Jun 15, 2022
964669b
Decompile MultiDvdArchive class and derived classes (#191)
em-eight Jun 16, 2022
8bef3b1
Reduce build log spam
riidefi Jun 16, 2022
fc5f0d2
Tidy up DvdArchive system code
riidefi Jun 16, 2022
953f593
gen_asm: include symbols in REL text output
riidefi Jun 16, 2022
7360e9d
Split ResourceManager.cpp
riidefi Jun 16, 2022
485677d
Split eggStream.cpp
riidefi Jun 16, 2022
5edf87a
Match EGG::DvdRipper::loadToMainRAMDecomp
riidefi Jun 16, 2022
31f3c26
Start System::ResourceManager (vabold, em-eight) (merged vabold/resou…
vabold Jun 17, 2022
4b2f07d
Decompile ResourceManager ctor/dtor/singleton
riidefi Jun 20, 2022
7b0789a
Bump JamesIves/github-pages-deploy-action from 4.3.3 to 4.3.4 (#193)
dependabot[bot] Jun 30, 2022
107930e
Decomp: ResourceManager (#192)
vabold Jul 7, 2022
d90a6ea
Update asm differ
SeekyCt Jul 7, 2022
7f5bb83
diff.py rel support
SeekyCt Jul 7, 2022
1122132
Fix the start address of the system directory (#195)
stblr Jul 8, 2022
2ff919c
More diff.py improvements (#196)
SeekyCt Jul 8, 2022
1b5f223
Terraform GitHub issue labels (#202)
riptl Jul 14, 2022
6b3fd47
Add script for .text function symbol extraction, update symbol map
Thodoris1999 Jul 19, 2022
005673e
Merge pull request #203 from em-eight/elf_symbol_extractor
riptl Jul 19, 2022
fd3ebba
diff.py improvements (#204)
em-eight Jul 21, 2022
54baac8
Bump JamesIves/github-pages-deploy-action from 4.3.4 to 4.4.0 (#205)
dependabot[bot] Jul 22, 2022
e1eed88
Split RVL/BTE (code only) (#207)
riptl Jul 23, 2022
f8db338
mkwutil: add slices.csv saving (#212)
riptl Jul 24, 2022
caa176b
mkwutil: let new_source.py add new entry to sources.py
riptl Jul 24, 2022
2c8b56a
Split RVL/CNT (#214)
riptl Jul 24, 2022
923f9c7
Split RVL/CX (#215)
riptl Jul 24, 2022
779fbbd
Split RVL/DARCH (#216)
riptl Jul 24, 2022
a5f7607
Split RVL/DB (#217)
riptl Jul 24, 2022
2606138
Split RVL/DSP (#219)
riptl Jul 24, 2022
65560e4
Split RVL/DVD (#220)
riptl Jul 24, 2022
45f5e1e
Partial split RVL/ENC (#221)
riptl Jul 24, 2022
a4a3a4b
Split RVL/ESP (#222)
riptl Jul 24, 2022
c8a7a22
Split RVL/EUART, RVL/EXI (#223)
riptl Jul 24, 2022
74112e0
Split RVL/GX
riptl Jul 24, 2022
c59ebeb
Add unknown labels to symbols.txt
riptl Jul 25, 2022
d55e874
Split RVL/GX
riptl Jul 25, 2022
9020e91
Autocontext creation (#218)
em-eight Jul 25, 2022
e3851b5
Decompile RaceConfig [Part 1] (#201)
vabold Jul 25, 2022
5890c33
GhostFile: Decompile RawGhostFile compress, decompress (#208)
AtishaRibeiro Jul 26, 2022
d56a090
Generate and match relocations on StaticR.rel (#230)
em-eight Sep 11, 2022
90979ca
Ninja build (#231)
em-eight Sep 14, 2022
ab33e3c
Raceconfig progress (#232)
em-eight Sep 30, 2022
d216160
RaceConfig refactoring (#233)
vabold Oct 14, 2022
923d26c
install mkwutil as a module locally (#235)
em-eight Oct 16, 2022
b49b808
Remove rel_repack.py and rel bins (#236)
em-eight Oct 16, 2022
bbc9bd6
Match Scenario copy (#238)
em-eight Oct 16, 2022
656856e
Add artifacts/orig/pal/rel to git (#239)
em-eight Oct 16, 2022
ba1dd2a
Decomp.me scratch generation (#237)
em-eight Oct 16, 2022
6a78653
Fix CAsmGenerator.disassemble_function
riidefi Oct 17, 2022
27070c9
Split NandUtil.cpp
riidefi Oct 17, 2022
7f582ba
Decompile NandUtil safeOpen, open, safeClose, close
riidefi Oct 17, 2022
0e117d9
init, initGhost, initControllers (#240)
em-eight Oct 18, 2022
81bd910
Split CourseMap (#243)
em-eight Oct 23, 2022
c830db0
RaceConfig wrap up (#241)
vabold Oct 31, 2022
12fa899
Add postprocess and use it to match a simple template func (#244)
em-eight Nov 12, 2022
6fb48b7
Fix `MapdataStartPoint`
riidefi Nov 12, 2022
e53bd48
Add C++17 equivalent of static_assert
vabold Nov 24, 2022
c3b2ac1
Make full error log toggleable
vabold Nov 24, 2022
b9f2654
CourseMap: loadFile, instance management renames
vabold Nov 19, 2022
d822106
Replace jmap/resource with CourseMap
vabold Nov 25, 2022
f12920d
Some CourseMap small funcs (#247)
em-eight Nov 27, 2022
b633e79
Match area vtables and AreaBase ctor (and CourseMap::parseGeoObjs) (#…
em-eight Dec 5, 2022
12cdba7
Raceinfo split and automatic data generation (#251)
em-eight Dec 13, 2022
abe7cb9
CourseMap: initial parse progress; Area work (#249)
vabold Dec 13, 2022
f3135a7
Update KMP symbols (#253)
em-eight Dec 14, 2022
d737d62
decomp: Rating (#254)
em-eight Jan 8, 2023
4eee0ac
Slice KartObjectProxy
em-eight Jan 9, 2023
07b8c30
REL auto symbol update
em-eight Jan 9, 2023
4ed7698
Take into account word boundary in set_symbol regex (#256)
em-eight Jan 12, 2023
dd89a1c
Start decompiling `game/ui/Page` (#257)
GnomedDev Feb 2, 2023
0ea119b
Add a contributing guide
em-eight May 11, 2023
b3eb2df
Merge pull request #258 from em-eight/document_a_little
riptl May 11, 2023
3c40443
Fix typos
em-eight May 15, 2023
9859bd1
Split Section.cpp
riidefi Jun 18, 2023
802a803
Split SectionManager.cpp
riidefi Jun 18, 2023
9cac242
Rename `SectionManager` -> `SectionDirector`
riidefi Jun 18, 2023
7a5e478
Split SectionAutogens.cpp
riidefi Jun 18, 2023
977412a
Decompile Section_getSoundType
riidefi Jun 18, 2023
11e0011
Decompile Section_getSceneId
riidefi Jun 18, 2023
6e0f27c
Decompile Section_addPages, Section_addActivePages, Section_getSoundT…
riidefi Jun 18, 2023
8452093
Switch slices from CSV to YML
riidefi Jul 17, 2023
5fe33ca
Condense slices YML
riidefi Jul 17, 2023
13f51b8
Split CourseCheckpoints.cpp
riidefi Jul 17, 2023
9e5df63
Add vabold's `MapdataCheckPoint::checkSector`
riidefi Jul 17, 2023
31ce63b
EGG::SceneManager::createChildScene
riptl Aug 1, 2023
b508c0f
EGG::SceneManager::destroyCurrentSceneNoIncoming
riptl Aug 1, 2023
aeb7cd8
EGG::SceneManager::destroyToSelectSceneID
riptl Aug 1, 2023
d67ac7e
EGG::SceneManager::destroyScene
riptl Aug 1, 2023
b7498be
EGG::SceneManager::incomingCurrentScene
riptl Aug 1, 2023
dd8c9df
EGG::SceneManager::calcCurrentScene
riptl Aug 1, 2023
ddfc5a5
eggSceneManager non-matching
riptl Aug 1, 2023
a72ddff
EGG::SceneManager::outgoingParentScene
riptl Aug 1, 2023
8f2bb0e
EGG::SceneManager::findParentScene
riptl Aug 1, 2023
c216fb7
EGG::SceneManager::drawCurrentFader
riptl Aug 1, 2023
c498c9c
EGG::SceneManager::changeSiblingScene
riptl Aug 1, 2023
aa21d95
EGG::SceneManager::changeUncleScene
riptl Aug 1, 2023
0ea768f
EGG::SceneManager::changeSiblingSceneAfterFadeOut
riptl Aug 1, 2023
5459e4e
EGG::SceneManager::changeSiblingScene
riptl Aug 1, 2023
926e4bb
EGG::SceneManager::drawCurrentScene
riptl Aug 1, 2023
2493eda
cleanup
riptl Aug 1, 2023
8636fa0
EGG::SceneManager::createScene
riptl Aug 2, 2023
4f32846
EGG::SceneManager::calcCurrentFader
riptl Aug 2, 2023
021b1bd
EGG::SceneManager::createDefaultFader
riptl Aug 2, 2023
ed5b634
clang-format
riptl Aug 2, 2023
018e24e
EGG::Viewport
riptl Aug 2, 2023
fe602c3
EGG::Xfb::calcXfbSize
riptl Aug 2, 2023
e7095f8
EGG::Xfb
riptl Aug 2, 2023
904499f
remove terraform
riptl Aug 2, 2023
33042d6
split EGG::ProcessMeter
riptl Aug 2, 2023
1768db0
Decompile eggProcessMeter
stblr Aug 2, 2023
b72a851
Import eggAsyncDisplay.hpp from ogws
riptl Aug 2, 2023
c28cf8e
Add EGG::Display and EGG::AsyncDisplay vtables
riptl Aug 2, 2023
ae2b0ab
Progress eggDisplay
riptl Aug 2, 2023
302f61a
Decompile eggXfbManager
riptl Aug 3, 2023
6066c59
Wire up eggFog vtable
riptl Aug 3, 2023
1c1cc4c
egg fog pain
riptl Aug 3, 2023
11ea5af
Symbol name corrections
riptl Aug 3, 2023
f2a00b1
Support main as branch name
riptl Aug 3, 2023
3282b4f
Support main as branch name
riptl Aug 3, 2023
b6934cd
Update dev container
riptl Aug 3, 2023
303ea02
Configure: Fix module path usage
riptl Aug 3, 2023
070c6af
switch to deploy-pages
riptl Aug 3, 2023
fa9b630
RFLMakeIcon
riptl Aug 8, 2023
454ba2d
EGG: Improve SceneManager code clarity
vabold Aug 10, 2023
de1c7a8
Decompile ResourceManager process and flush
narahiero Aug 13, 2023
81f4839
ResourceManager 100%
em-eight Aug 14, 2023
83186fb
unused garbage matching
em-eight Aug 17, 2023
e8b1a73
Add all ppcdis symbols to symbol map (#270)
em-eight Aug 19, 2023
b646178
Correct host_sys flags
riidefi Aug 19, 2023
7aff819
Remove false positive functions from symbols.txt
riidefi Aug 19, 2023
4b94dcf
Fix DOLSrcGenerator
riidefi Aug 19, 2023
f40bf66
[RKSystem] Untangle sInstance, spInstance
riidefi Aug 19, 2023
b7aa1c8
Attempt to fix DOLSrcGenerator
riidefi Aug 20, 2023
6067c84
Mostly split RKSystem.cpp
riidefi Aug 20, 2023
80db7b0
Split ObjKoopaFigure64, ObjKuribo, ObjFloat, ObjOilSFC
riidefi Aug 20, 2023
6042bf9
Slices: Remove `enabled: 1` boilerplate
riidefi Aug 20, 2023
9064f05
gen_asm: Don't emit `__dl__FPv` extern
riidefi Aug 20, 2023
eff7e29
Split MapObjSniper, ObjSound, ObjSunDS, ObjSunDSManager, ObjTaimatsu
riidefi Aug 20, 2023
764aac8
Fix RKScene slice
em-eight Aug 20, 2023
4f95d97
match ModuleSymbols.cpp
em-eight Aug 20, 2023
cba2771
BaseSystem headers and RKSystem slice
narahiero Aug 22, 2023
038119e
Match all RKSceneManager + some RKSystem functions
narahiero Aug 22, 2023
911540e
Update Python packages
riptl Aug 23, 2023
4701319
Create and match eggSystem slice + TSystem WIP
narahiero Aug 24, 2023
ad148e6
WIP decomp of RKSystem
narahiero Aug 27, 2023
7f11b3c
Create first KPad slice
narahiero Aug 28, 2023
169be79
Match KPadInputState functions + some refactoring
narahiero Aug 29, 2023
a89306c
Fix KPadRaceInputState op== & undo bad refactoring
narahiero Aug 29, 2023
426672d
Fix float literal reloc issues (credits to m8)
narahiero Aug 29, 2023
4f07330
Define some KPadController classes + RVL structs
narahiero Aug 30, 2023
9231707
More class definitions in KPadController header
narahiero Aug 31, 2023
a7734cc
Create KPadDirector slice and header
narahiero Sep 1, 2023
ae620c7
Decompile basic access methods
vabold Sep 1, 2023
6e1c430
Split KartMove
vabold Sep 4, 2023
0d7dd74
Decompile basic KartMove access methods
vabold Sep 4, 2023
51b3db0
Print slice of mismatch
riidefi Sep 4, 2023
40c587a
Add @vabold's newer `setScale` match
riidefi Sep 4, 2023
b1ad958
ppc2cpp integration; use ppcdis for dol disasm
em-eight Sep 10, 2023
d1db00b
Remove accidentally added InputManager and unused configure.py func
em-eight Sep 10, 2023
64fa999
Remove thing left from debugging
em-eight Sep 10, 2023
fd43de4
Switch to new ppc2cpp release, with windows support
em-eight Sep 25, 2023
00b57ac
up ppcdis-protobuf version
em-eight Sep 25, 2023
a5acfeb
Merge pull request #7 from em-eight/ppc2cpp
em-eight Oct 22, 2023
60ce69c
Fix flow checking issues
em-eight Oct 29, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
121 changes: 121 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
Language: Cpp
# BasedOnStyle: LLVM
AccessModifierOffset: -2
AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
AlignEscapedNewlines: Right
AlignOperands: true
AlignTrailingComments: true
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: All
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: false
AlwaysBreakTemplateDeclarations: MultiLine
BinPackArguments: true
BinPackParameters: true
BraceWrapping:
AfterClass: false
AfterControlStatement: false
AfterEnum: false
AfterFunction: false
AfterNamespace: false
AfterObjCDeclaration: false
AfterStruct: false
AfterUnion: false
AfterExternBlock: false
BeforeCatch: false
BeforeElse: false
IndentBraces: false
SplitEmptyFunction: true
SplitEmptyRecord: true
SplitEmptyNamespace: true
BreakBeforeBinaryOperators: None
BreakBeforeBraces: Attach
BreakBeforeInheritanceComma: false
BreakInheritanceList: BeforeColon
BreakBeforeTernaryOperators: true
BreakConstructorInitializersBeforeComma: false
BreakConstructorInitializers: BeforeColon
BreakAfterJavaFieldAnnotations: false
BreakStringLiterals: true
ColumnLimit: 80
CommentPragmas: '^ IWYU pragma:'
CompactNamespaces: false
ConstructorInitializerAllOnOneLineOrOnePerLine: false
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4
Cpp11BracedListStyle: true
DerivePointerAlignment: false
DisableFormat: false
ExperimentalAutoDetectBinPacking: false
FixNamespaceComments: true
ForEachMacros:
- foreach
- Q_FOREACH
- BOOST_FOREACH
IncludeBlocks: Preserve
IncludeCategories:
- Regex: '^"(llvm|llvm-c|clang|clang-c)/'
Priority: 2
- Regex: '^(<|"(gtest|gmock|isl|json)/)'
Priority: 3
- Regex: '.*'
Priority: 1
IncludeIsMainRegex: '(Test)?$'
IndentCaseLabels: false
IndentPPDirectives: None
IndentWidth: 2
IndentWrappedFunctionNames: false
JavaScriptQuotes: Leave
JavaScriptWrapImports: true
KeepEmptyLinesAtTheStartOfBlocks: true
MacroBlockBegin: ''
MacroBlockEnd: ''
MaxEmptyLinesToKeep: 1
NamespaceIndentation: None
ObjCBinPackProtocolList: Auto
ObjCBlockIndentWidth: 2
ObjCSpaceAfterProperty: false
ObjCSpaceBeforeProtocolList: true
PenaltyBreakAssignment: 2
PenaltyBreakBeforeFirstCallParameter: 19
PenaltyBreakComment: 300
PenaltyBreakFirstLessLess: 120
PenaltyBreakString: 1000
PenaltyBreakTemplateDeclaration: 10
PenaltyExcessCharacter: 1000000
PenaltyReturnTypeOnItsOwnLine: 60
PointerAlignment: Left
ReflowComments: true
SortIncludes: false
SortUsingDeclarations: true
SpaceAfterCStyleCast: false
SpaceAfterTemplateKeyword: true
SpaceBeforeAssignmentOperators: true
SpaceBeforeCpp11BracedList: false
SpaceBeforeCtorInitializerColon: true
SpaceBeforeInheritanceColon: true
SpaceBeforeParens: ControlStatements
SpaceBeforeRangeBasedForLoopColon: true
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 1
SpacesInAngles: false
SpacesInContainerLiterals: true
SpacesInCStyleCastParentheses: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
Standard: Cpp11
StatementMacros:
- Q_UNUSED
- QT_REQUIRE_VERSION
TabWidth: 8
UseTab: Never
---
Language: Json
BasedOnStyle: llvm
43 changes: 43 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.222.0/containers/python-3/.devcontainer/base.Dockerfile

ARG VARIANT="3.11-bookworm"
FROM mcr.microsoft.com/vscode/devcontainers/python:1-${VARIANT}

# [Choice] Node.js version: none, lts/*, 16, 14, 12, 10
ARG NODE_VERSION="none"
RUN if [ "${NODE_VERSION}" != "none" ]; then su vscode -c "umask 0002 && . /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi

# [Optional] If your pip requirements rarely change, uncomment this section to add them to the image.
COPY requirements.txt /tmp/pip-tmp/
RUN pip3 --disable-pip-version-check --no-cache-dir install -r /tmp/pip-tmp/requirements.txt \
&& rm -rf /tmp/pip-tmp

# [Optional] Uncomment this section to install additional OS packages.
RUN dpkg --add-architecture i386 \
&& apt-get update \
&& export DEBIAN_FRONTEND=noninteractive \
&& apt-get -y install --no-install-recommends wine wine32 unzip ninja-build

# [Optional] Uncomment this line to install global node packages.
# RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && npm install -g <your-package-here>" 2>&1

WORKDIR /blobs
ARG TOOLS_URL="https://www.dropbox.com/s/4b0hwciadfk8yuo/tools.zip?dl=1"
ADD ${TOOLS_URL} ./tools.zip
RUN mkdir -p ./artifacts/orig/pal \
&& echo "40cbee5ce207d8ca71b6611f8f7560e6f135562c25e8fa303f916011e99517ca tools.zip" | sha256sum --check --status \
&& unzip -o tools.zip \
&& rm tools.zip \
&& chmod +x ./tools/devkitppc/bin/powerpc-eabi-as \
&& chmod +x ./tools/devkitppc/bin/powerpc-eabi-gcc \
&& mv ./tools/blobs/* ./artifacts/orig/pal

# install devkitpro
WORKDIR /tmp/devkitpro
RUN mkdir -p /usr/local/share/keyring/ \
&& wget -O /usr/local/share/keyring/devkitpro-pub.gpg https://apt.devkitpro.org/devkitpro-pub.gpg \
&& echo "deb [signed-by=/usr/local/share/keyring/devkitpro-pub.gpg] https://apt.devkitpro.org stable main" > /etc/apt/sources.list.d/devkitpro.list \
&& apt-get update \
&& apt-get -y install devkitpro-pacman \
&& ln -s /proc/self/mounts /etc/mtab \
&& dkp-pacman -S --noconfirm wii-dev
54 changes: 54 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
// https://github.com/microsoft/vscode-dev-containers/tree/v0.222.0/containers/python-3
{
"name": "Python 3",
"build": {
"dockerfile": "Dockerfile",
"context": "..",
"args": {
// Update 'VARIANT' to pick a Python version: 3, 3.10, 3.9, 3.8, 3.7, 3.6
// Append -bullseye or -buster to pin to an OS version.
// Use -bullseye variants on local on arm64/Apple Silicon.
"VARIANT": "3.11-bookworm",
// Options
"NODE_VERSION": "lts/*"
}
},

// Set *default* container specific settings.json values on container create.
"settings": {
"python.defaultInterpreterPath": "/usr/local/bin/python",
"python.linting.enabled": true,
"python.linting.pylintEnabled": true,
"python.formatting.autopep8Path": "/usr/local/py-utils/bin/autopep8",
"python.formatting.blackPath": "/usr/local/py-utils/bin/black",
"python.formatting.yapfPath": "/usr/local/py-utils/bin/yapf",
"python.linting.banditPath": "/usr/local/py-utils/bin/bandit",
"python.linting.flake8Path": "/usr/local/py-utils/bin/flake8",
"python.linting.mypyPath": "/usr/local/py-utils/bin/mypy",
"python.linting.pycodestylePath": "/usr/local/py-utils/bin/pycodestyle",
"python.linting.pydocstylePath": "/usr/local/py-utils/bin/pydocstyle",
"python.linting.pylintPath": "/usr/local/py-utils/bin/pylint"
},

// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"ms-python.python",
"ms-python.vscode-pylance"
],

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "cp -rvf /blobs/ /workspaces/mkw/",

// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "vscode",
"features": {
"git": "latest",
"git-lfs": "latest",
"github-cli": "latest",
"desktop-lite": "latest"
}
}
20 changes: 20 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
root = true

[*]
end_of_line = lf

[*.{h,c,hpp,cpp}]
indent_style = space
indent_size = 2

[*.py]
indent_style = space
indent_size = 4

[Makefile]
indent_style = tab
indent_size = 4

[*.tf]
indent_style = space
indent_size = 2
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
30 changes: 30 additions & 0 deletions .github/disabled-workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
on:
push:
paths:
- 'clang_check.py'
- '**.h'
- '**.c'
- '**.hpp'
- '**.cpp'
pull_request:
paths:
- 'clang_check.py'
- '**.h'
- '**.c'
- '**.hpp'
- '**.cpp'
name: Check
jobs:
clang_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions/setup-python@v2
with:
python-version: '3.x'
architecture: 'x64'

- name: Run clang_check.py
run: python clang_check.py
Loading