Skip to content

Commit

Permalink
Formatting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jackoalan committed Nov 26, 2016
1 parent 9da08a3 commit 1b1f2fc
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### Hanafuda
## Hanafuda

**Hanafuda** is a special-purpose compiler toolchain for *directly* patching
[DOL executable files](http://wiibrew.org/wiki/DOL) deployed on the Nintendo
Expand Down Expand Up @@ -29,29 +29,29 @@ assembled into a list file of the form:
Game modders may distribute this list in a modding kit along with header files
redeclaring the classes, functions and variables.

#### Installing From Packages
### Installing From Packages

Hanafuda may be installed alongside an existing LLVM toolchain. The package is
uniquely identified with `AxioDL` as vendor and `ProgramFiles/llvm-hanafuda` or
`opt/hanafuda` as install prefix.

##### Windows 7+
#### Windows 7+

[llvm-hanafuda-4.0.0svn-win64.exe](https://github.com/AxioDL/hanafuda/releases/llvm-hanafuda-4.0.0svn-win64.exe).

Windows 7 users may need the
[v14 Visual C++ runtime](https://www.microsoft.com/en-us/download/details.aspx?id=53840)
if not already installed.

##### macOS 10.9+
#### macOS 10.9+

[llvm-hanafuda-4.0.0svn-x86_64-apple-darwin.tar.gz](https://github.com/AxioDL/hanafuda/releases/llvm-hanafuda-4.0.0svn-x86_64-apple-darwin.tar.gz).

##### Arch Linux
#### Arch Linux

[llvm-hanafuda-4.0-1-x86_64.pkg.tar.xz](https://github.com/AxioDL/hanafuda/releases/llvm-hanafuda-4.0-1-x86_64.pkg.tar.xz).

#### Building From Source
### Building From Source

Hanafuda uses a CMake cache-based method for configuring the toolchain build.

Expand Down Expand Up @@ -80,7 +80,7 @@ ninja package
The LLVM website has a [plethora of documentation](http://llvm.org/docs/CMake.html)
on fine-tuning the build for your host system.

#### Using Hanafuda
### Using Hanafuda

`hanafuda` and `hanafuda++` work just like the `clang` and `clang++` drivers
(which work much like `gcc` and `g++`).
Expand All @@ -98,7 +98,7 @@ Here's an example:
hanafuda++ -o patched_boot.dol --hanafuda-base-dol=RippedGame/boot.dol --hanafuda-dol-symbol-list=GamePatchingKit/GameSymbols.lst -I GamePatchingKit/include patch.cpp
```

#### Defining Patches
### Defining Patches

With hanafuda, patches are defined from within the source itself using
`#pragma patch_dol(old_decl, new_decl)`. Any references to `old_decl` in the ripped
Expand Down Expand Up @@ -126,7 +126,7 @@ int patched_main(int argc, char** argv) {
}
```
#### Verbose Feedback
### Verbose Feedback
To see actions taken by the hanafuda linker, add `-Xlinker -verbose` to the
command-line.
Expand Down

0 comments on commit 1b1f2fc

Please sign in to comment.