• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

.tx/H30-Sep-2020-97

CMake/H30-Sep-2020-1,6031,401

Data/H03-May-2022-36,15129,154

Externals/H30-Sep-2020-1,067,377757,087

Installer/H03-May-2022-371282

Languages/H30-Sep-2020-302,019242,726

Source/H03-May-2022-394,950304,118

Tools/H30-Sep-2020-868619

docs/H30-Sep-2020-11,0237,728

.editorconfigH A D30-Sep-2020416 2821

.git-blame-ignore-revsH A D30-Sep-2020323 128

.gitignoreH A D30-Sep-2020790 4140

.gitmodulesH A D30-Sep-2020134 65

.mailmapH A D30-Sep-20202.7 KiB5554

AndroidSetup.mdH A D30-Sep-20202.7 KiB5132

CMakeSettings.jsonH A D30-Sep-20202.1 KiB8080

Contributing.mdH A D30-Sep-202010.7 KiB275216

Readme.mdH A D30-Sep-20209 KiB230171

Readme.md

1# Dolphin - A GameCube and Wii Emulator
2
3[Homepage](https://dolphin-emu.org/) | [Project Site](https://github.com/dolphin-emu/dolphin) | [Forums](https://forums.dolphin-emu.org/) | [Wiki](https://wiki.dolphin-emu.org/) | [Issue Tracker](https://bugs.dolphin-emu.org/projects/emulator/issues) | [Coding Style](https://github.com/dolphin-emu/dolphin/blob/master/Contributing.md) | [Transifex Page](https://www.transifex.com/projects/p/dolphin-emu/)
4
5Dolphin is an emulator for running GameCube and Wii games on Windows,
6Linux, macOS, and recent Android devices. It's licensed under the terms
7of the GNU General Public License, version 2 or later (GPLv2+).
8
9Please read the [FAQ](https://dolphin-emu.org/docs/faq/) before using Dolphin.
10
11## System Requirements
12
13### Desktop
14
15* OS
16    * Windows (7 SP1 or higher).
17    * Linux.
18    * macOS (10.12 Sierra or higher).
19    * Unix-like systems other than Linux are not officially supported but might work.
20* Processor
21    * A CPU with SSE2 support.
22    * A modern CPU (3 GHz and Dual Core, not older than 2008) is highly recommended.
23* Graphics
24    * A reasonably modern graphics card (Direct3D 11.1 / OpenGL 3.3).
25    * A graphics card that supports Direct3D 11.1 / OpenGL 4.4 is recommended.
26
27### Android
28
29* OS
30    * Android (5.0 Lollipop or higher).
31* Processor
32    * A processor with support for 64-bit applications (either ARMv8 or x86-64).
33* Graphics
34    * A graphics processor that supports OpenGL ES 3.0 or higher. Performance varies heavily with [driver quality](https://dolphin-emu.org/blog/2013/09/26/dolphin-emulator-and-opengl-drivers-hall-fameshame/).
35    * A graphics processor that supports standard desktop OpenGL features is recommended for best performance.
36
37Dolphin can only be installed on devices that satisfy the above requirements. Attempting to install on an unsupported device will fail and display an error message.
38
39## Building for Windows
40
41Use the solution file `Source/dolphin-emu.sln` to build Dolphin on Windows.
42Visual Studio 2019 16.3 or later is a hard requirement. Other compilers might be
43able to build Dolphin on Windows but have not been tested and are not
44recommended to be used. Git and Windows 10 SDK must be installed when building.
45
46Make sure to pull submodules before building:
47```sh
48git submodule update --init
49```
50
51The "Release" solution configuration includes performance optimizations for the best user experience but complicates debugging Dolphin.
52The "Debug" solution configuration is significantly slower, more verbose and less permissive but makes debugging Dolphin easier.
53
54An installer can be created by using the `Installer.nsi` script in the
55Installer directory. This will require the Nullsoft Scriptable Install System
56(NSIS) to be installed. Creating an installer is not necessary to run Dolphin
57since the Binary directory contains a working Dolphin distribution.
58
59## Building for Linux and macOS
60
61Dolphin requires [CMake](https://cmake.org/) for systems other than Windows. Many libraries are
62bundled with Dolphin and used if they're not installed on your system. CMake
63will inform you if a bundled library is used or if you need to install any
64missing packages yourself.
65
66### macOS Build Steps:
67
681. `mkdir build`
692. `cd build`
703. `cmake ..`
714. `make`
72
73An application bundle will be created in `./Binaries`.
74
75### Linux Global Build Steps:
76
77To install to your system.
78
791. `mkdir build`
802. `cd build`
813. `cmake ..`
824. `make`
835. `sudo make install`
84
85### Linux Local Build Steps:
86
87Useful for development as root access is not required.
88
891. `mkdir Build`
902. `cd Build`
913. `cmake .. -DLINUX_LOCAL_DEV=true`
924. `make`
935. `ln -s ../../Data/Sys Binaries/`
94
95### Linux Portable Build Steps:
96
97Can be stored on external storage and used on different Linux systems.
98Or useful for having multiple distinct Dolphin setups for testing/development/TAS.
99
1001. `mkdir Build`
1012. `cd Build`
1023. `cmake .. -DLINUX_LOCAL_DEV=true`
1034. `make`
1045. `cp -r ../Data/Sys/ Binaries/`
1056. `touch Binaries/portable.txt`
106
107## Building for Android
108
109These instructions assume familiarity with Android development. If you do not have an
110Android dev environment set up, see [AndroidSetup.md](AndroidSetup.md).
111
112If using Android Studio, import the Gradle project located in `./Source/Android`.
113
114Android apps are compiled using a build system called Gradle. Dolphin's native component,
115however, is compiled using CMake. The Gradle script will attempt to run a CMake build
116automatically while building the Java code.
117
118## Uninstalling
119
120When Dolphin has been installed with the NSIS installer, you can uninstall
121Dolphin like any other Windows application.
122
123Linux users can run `cat install_manifest.txt | xargs -d '\n' rm` as root from the build directory
124to uninstall Dolphin from their system.
125
126macOS users can simply delete Dolphin.app to uninstall it.
127
128Additionally, you'll want to remove the global user directory (see below to
129see where it's stored) if you don't plan to reinstall Dolphin.
130
131## Command Line Usage
132
133`Usage: Dolphin [-h] [-d] [-l] [-e <str>] [-b] [-V <str>] [-A <str>]`
134
135* -h, --help Show this help message
136* -d, --debugger Show the debugger pane and additional View menu options
137* -l, --logger Open the logger
138* -e, --exec=<str> Load the specified file (DOL,ELF,WAD,GCM,ISO)
139* -b, --batch Exit Dolphin with emulator
140* -V, --video_backend=<str> Specify a video backend
141* -A, --audio_emulation=<str> Low level (LLE) or high level (HLE) audio
142
143Available DSP emulation engines are HLE (High Level Emulation) and
144LLE (Low Level Emulation). HLE is faster but less accurate whereas
145LLE is slower but close to perfect. Note that LLE has two submodes (Interpreter and Recompiler)
146but they cannot be selected from the command line.
147
148Available video backends are "D3D" and "D3D12" (they are only available on Windows), "OGL", and "Vulkan".
149There's also "Null", which will not render anything, and
150"Software Renderer", which uses the CPU for rendering and
151is intended for debugging purposes only.
152
153## Sys Files
154
155* `wiitdb.txt`: Wii title database from [GameTDB](https://www.gametdb.com/)
156* `totaldb.dsy`: Database of symbols (for devs only)
157* `GC/font_western.bin`: font dumps
158* `GC/font_japanese.bin`: font dumps
159* `GC/dsp_coef.bin`: DSP dumps
160* `GC/dsp_rom.bin`: DSP dumps
161* `Wii/clientca.pem`: Wii network certificate
162* `Wii/clientcacakey.pem`: Wii network certificate
163* `Wii/rootca.pem`: Wii network certificate
164
165The DSP dumps included with Dolphin have been written from scratch and do not
166contain any copyrighted material. They should work for most purposes, however
167some games implement copy protection by checksumming the dumps. You will need
168to dump the DSP files from a console and replace the default dumps if you want
169to fix those issues.
170
171Wii network certificates must be extracted from a Wii IOS. A guide for that can be found [here](https://wiki.dolphin-emu.org/index.php?title=Wii_Network_Guide).
172
173## Folder Structure
174
175These folders are installed read-only and should not be changed:
176
177* `GameSettings`: per-game default settings database
178* `GC`: DSP and font dumps
179* `Maps`: symbol tables (dev only)
180* `Shaders`: post-processing shaders
181* `Themes`: icon themes for GUI
182* `Resources`: icons that are theme-agnostic
183* `Wii`: default Wii NAND contents
184
185## Packaging and udev
186
187The Data folder contains a udev rule file for the official GameCube controller
188adapter and the Mayflash DolphinBar. Package maintainers can use that file in their packages for Dolphin.
189Users compiling Dolphin on Linux can also just copy the file to their udev
190rules folder.
191
192## User Folder Structure
193
194A number of user writeable directories are created for caching purposes or for
195allowing the user to edit their contents. On macOS and Linux these folders are
196stored in `~/Library/Application Support/Dolphin/` and `~/.dolphin-emu`
197respectively, but can be overwritten by setting the environment variable
198`DOLPHIN_EMU_USERPATH`. On Windows the user directory is stored in the `My Documents`
199folder by default, but there are various way to override this behavior:
200
201* Creating a file called `portable.txt` next to the Dolphin executable will
202  store the user directory in a local directory called "User" next to the
203  Dolphin executable.
204* If the registry string value `LocalUserConfig` exists in
205  `HKEY_CURRENT_USER/Software/Dolphin Emulator` and has the value **1**,
206  Dolphin will always start in portable mode.
207* If the registry string value `UserConfigPath` exists in
208  `HKEY_CURRENT_USER/Software/Dolphin Emulator`, the user folders will be
209  stored in the directory given by that string. The other two methods will be
210  prioritized over this setting.
211
212List of user folders:
213
214* `Cache`: used to cache the ISO list
215* `Config`: configuration files
216* `Dump`: anything dumped from Dolphin
217* `GameConfig`: additional settings to be applied per-game
218* `GC`: memory cards and system BIOS
219* `Load`: custom textures
220* `Logs`: logs, if enabled
221* `ScreenShots`: screenshots taken via Dolphin
222* `StateSaves`: save states
223* `Wii`: Wii NAND contents
224
225## Custom Textures
226
227Custom textures have to be placed in the user directory under
228`Load/Textures/[GameID]/`. You can find the Game ID by right-clicking a game
229in the ISO list and selecting "ISO Properties".
230