All guides
Wine
Compatibility layer that runs Windows games and programs (32- and 64-bit, old and new) on Linux and macOS. Game-by-game compatibility: WineHQ AppDB and ProtonDB.
Download the emulatorWine runs Windows games under Linux and macOS, without Windows. It is not an emulator: it translates Windows calls, so the game runs at full speed. No BIOS is required.
On a Windows PC, you don’t need Wine: just launch the game. For Windows 95 and 98 games that no longer work, see the 86Box guide.
1. What to download
- Linux: your distribution's
winepackage is enough to get started. Recent ready-to-use builds are also on the page behind the button above (wine-…-amd64.tar.xzarchives; the staging variant has a few extra fixes for games). - Even simpler: Lutris or Bottles handle Wine for you, with separate settings for each game. Games purchased on Steam go through Proton, the version of Wine built into Steam.
- macOS: Wine also exists, but it is more limited. CrossOver (for a fee) is the easiest solution on Mac.
- Batocera: Wine is already integrated, nothing to install (see section 4).
2. Installation and first launch
- Install the package, or unpack the archive into a folder of your own (the program is then
bin/wine). - Type
winecfgin a terminal: Wine creates its folder, which imitates aC:drive, in~/.wine. - In
winecfg, Applications tab, you can choose which Windows version is imitated. For an old game, try Windows XP. - Tip: one Wine folder per game stops one setting from breaking another. Put this in front of each command:
WINEPREFIX=~/Games/GAMENAME.
3. Start a game
- Game to install:
wine setup.exein the installer folder, then go through the installation as on Windows. - Game already ready (a folder with its
.exe): go to this folder and typewine game.exe. Starting the game from its own folder keeps it from losing track of its files. - Many games require Windows libraries (DirectX 9, Visual C++). The
winetrickstool installs them: for examplewinetricks d3dx9 vcrun2019. - For DirectX 9 to 11 games, DXVK (
winetricks dxvk) usually gives much better performance.
4. On Batocera
- Put the game folder in
roms/windowsand add.pcto the end of its name, for exampleMyGame.pc. - In this folder, create a text file named
autorun.cmdthat says what to run: a lineCMD=game.exe, and if the.exeis in a subfolder, a lineDIR=subfolder. - A game can also be compressed into a single
.wsquashfsor.wtgzfile, which Batocera launches directly.
5. Accepted formats
.exe: the game program or installer..pc: game folder prepared for Batocera..wine: complete Wine folder, already configured..wsquashfsand.wtgz: game compressed into a single file (Batocera)..iso: an installation CD is mounted like a disc, then you run itssetup.exe.
6. Controller and recommended settings
- Controller: Xbox and compatible controllers are recognized directly. To check, type
wine controland open Game Controllers. - Virtual desktop: if an old game changes the screen resolution badly, check Emulate a virtual desktop in
winecfg, Graphics tab, with the size of the game (e.g. 800 × 600). - Compatibility database: before searching for ages, check the game's page on appdb.winehq.org or on protondb.com. The right setting is often listed there.
7. Not working?
- The game closes immediately → launch it from a terminal to read the error message; a library is often missing (
winetricks d3dx9,vcrun2019...). - Black screen or very slow → install DXVK, and update your graphics card driver (Vulkan).
- The game requires the CD → mount the
.isoimage before launching the game. - Nothing works any more after some tinkering → create a new Wine folder with
WINEPREFIXand reinstall the game in it.