Skip to content

Commit 39a7fb5

Browse files
authored
Merge new headers & libkiwi (#5)
* temp * new libkiwi * loader * new build tools * fixes
1 parent dcf6bea commit 39a7fb5

805 files changed

Lines changed: 121524 additions & 10899 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.clang-format

Lines changed: 40 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -12,59 +12,52 @@ ConstructorInitializerAllOnOneLineOrOnePerLine: true
1212
FixNamespaceComments: true
1313
AccessModifierOffset: -4
1414
AllowShortFunctionsOnASingleLine: Empty
15-
WhitespaceSensitiveMacros: [
16-
NW4R_UT_LINKLIST_FOREACH,
17-
NW4R_UT_LINKLIST_FOREACH_SAFE,
18-
NW4R_UT_LIST_FOREACH,
19-
NW4R_UT_LIST_FOREACH_SAFE,
20-
NW4R_EF_LIST_FOREACH,
21-
NW4R_EF_LIST_FOREACH_SAFE,
22-
EGG_ASSERT,
23-
EGG_ASSERT_MSG,
24-
K_ASM,
25-
KOKESHI_BY_PACK,
26-
KM_BRANCH_MF,
27-
KM_BRANCH,
28-
KM_CALL_MF,
29-
KM_CALL,
30-
ASM,
31-
TRAMPOLINE,
32-
TRAMPOLINE_EX,
33-
]
34-
AttributeMacros: [DECOMP_INLINE, DECOMP_DONT_INLINE]
35-
InsertNewlineAtEOF: true
3615
ForEachMacros: [K_FOREACH]
16+
AttributeMacros: [DECOMP_INLINE, DECOMP_DONT_INLINE]
17+
WhitespaceSensitiveMacros:
18+
[
19+
DECOMP_FORCEACTIVE,
20+
DECOMP_FORCELITERAL,
21+
DECOMP_FORCEACTIVE_DTOR,
22+
NW4R_UT_LINKLIST_FOREACH,
23+
NW4R_UT_LINKLIST_FOREACH_SAFE,
24+
NW4R_UT_LIST_FOREACH,
25+
NW4R_UT_LIST_FOREACH_SAFE,
26+
NW4R_EF_LIST_FOREACH,
27+
NW4R_EF_LIST_FOREACH_SAFE,
28+
EGG_ASSERT,
29+
EGG_ASSERT_MSG,
30+
KOKESHI_BY_PACK,
31+
KM_BRANCH,
32+
KM_CALL,
33+
KM_BRANCH_MF,
34+
KM_CALL_MF,
35+
]
3736

3837
IncludeCategories:
39-
- Regex: '<types.h>'
40-
Priority: -1
41-
42-
- Regex: '"'
43-
Priority: 1
44-
45-
- Regex: '^<(nw4r|egg|Pack)?(\/)?types' # "Types" headers
46-
Priority: 2
47-
CaseSensitive: true
38+
- Regex: '^<(nw4r|egg|Pack)?(\/)?types' # "Types" headers
39+
Priority: 0
40+
CaseSensitive: true
4841

49-
- Regex: '<libkiwi.h>' # libkiwi public headers
50-
Priority: 4
51-
CaseSensitive: true
42+
- Regex: "<libkiwi.h>" # libkiwi public headers
43+
Priority: 2
44+
CaseSensitive: true
5245

53-
- Regex: '<egg\/[[:lower:].]+h>' # EGG public headers
54-
Priority: 5
55-
CaseSensitive: true
46+
- Regex: '<egg\/[[:lower:].]+h>' # EGG public headers
47+
Priority: 3
48+
CaseSensitive: true
5649

57-
- Regex: '<nw4r\/[[:lower:].]+h>' # NW4R public headers
58-
Priority: 6
59-
CaseSensitive: true
50+
- Regex: '<nw4r\/[[:lower:].]+h>' # NW4R public headers
51+
Priority: 4
52+
CaseSensitive: true
6053

61-
- Regex: '^<revolution\/[[:upper:].]+h>' # RVL SDK public headers
62-
Priority: 7
63-
CaseSensitive: true
54+
- Regex: '^<revolution\/[[:upper:].]+h>' # RVL SDK public headers
55+
Priority: 5
56+
CaseSensitive: true
6457

65-
- Regex: '<[[:alnum:].]+>' # STL headers
66-
Priority: 8 # Priority 0 is header mapped to src file
67-
CaseSensitive: true
58+
- Regex: "<[[:alnum:].]+>" # STL headers
59+
Priority: 6 # Priority 0 is header mapped to src file
60+
CaseSensitive: true
6861

69-
- Regex: '.*' # All other headers
70-
Priority: 3
62+
- Regex: ".*" # All other headers
63+
Priority: 1

.gitignore

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
#=========================================================#
2+
# OS Files
3+
#=========================================================#
4+
.DS_Store
5+
16
#=========================================================#
27
# IDE Configuration
38
#=========================================================#
@@ -10,19 +15,17 @@
1015
# Base ROM filesystem
1116
romfs/**
1217
# Base ROM executable(s)
13-
baserom*.dol
18+
base/**.dol
1419

1520
#=========================================================#
1621
# Tools
1722
#=========================================================#
18-
# Kamek
19-
tools/Kamek/*
20-
tools/Kamek*.*
23+
# Executables
24+
tools/kamek/*
25+
!tools/kamek/.gitkeep
2126
# CodeWarrior
22-
tools/mwasmeppc.exe
23-
tools/mwcceppc.exe
24-
tools/mwldeppc.exe
25-
tools/*.dll
27+
tools/codewarrior/*
28+
!tools/codewarrior/.gitkeep
2629
# Compiled Python
2730
tools/**/*.pyc
2831

@@ -33,3 +36,7 @@ tools/**/*.pyc
3336
build/**
3437
# Symbol maps
3538
*.MAP
39+
# Ninja artifacts
40+
.ninja_deps
41+
.ninja_log
42+
build.ninja

Makefile

Lines changed: 0 additions & 93 deletions
This file was deleted.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ Kokeshi supports the following games:
3535
#### Tools
3636
1. Install GNU `make`. If you have DevKitPRO or Windows Subsystem for Linux you may already have the tool installed.
3737
2. Download the latest release of [the PackProject fork of Kamek](https://github.com/PackProject/Kamek/releases/latest).
38-
1. Install the contents of the zip file to the `tools/` directory.
38+
1. Install the contents of the zip file to the `tools/kamek` directory.
3939
3. Download the Wii v1.7 version of [the CodeWarrior compiler](https://files.decomp.dev/compilers_20230715.zip).
40-
1. Install the contents of the `Wii/1.7/` folder to the `tools/` directory.
40+
1. Install the contents of the `Wii/1.7/` folder to the `tools/codewarrior` directory.
4141

4242
#### Filesystem
4343
1. For each game that you want to build for, extract its filesystem using Dolphin Emulator.

0 commit comments

Comments
 (0)