All guides
Windows

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.

Medium20 minNo BIOS needed
Download the emulator
In this guide

Wine 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 wine package is enough to get started. Recent ready-to-use builds are also on the page behind the button above (wine-…-amd64.tar.xz archives; 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

  1. Install the package, or unpack the archive into a folder of your own (the program is then bin/wine).
  2. Type winecfg in a terminal: Wine creates its folder, which imitates a C: drive, in ~/.wine.
  3. In winecfg, Applications tab, you can choose which Windows version is imitated. For an old game, try Windows XP.
  4. 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

  1. Game to install: wine setup.exe in the installer folder, then go through the installation as on Windows.
  2. Game already ready (a folder with its .exe): go to this folder and type wine game.exe. Starting the game from its own folder keeps it from losing track of its files.
  3. Many games require Windows libraries (DirectX 9, Visual C++). The winetricks tool installs them: for example winetricks d3dx9 vcrun2019.
  4. For DirectX 9 to 11 games, DXVK (winetricks dxvk) usually gives much better performance.

4. On Batocera

  1. Put the game folder in roms/windows and add .pc to the end of its name, for example MyGame.pc.
  2. In this folder, create a text file named autorun.cmd that says what to run: a line CMD=game.exe, and if the .exe is in a subfolder, a line DIR=subfolder.
  3. A game can also be compressed into a single .wsquashfs or .wtgz file, 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.
  • .wsquashfs and .wtgz: game compressed into a single file (Batocera).
  • .iso: an installation CD is mounted like a disc, then you run its setup.exe.

6. Controller and recommended settings

  • Controller: Xbox and compatible controllers are recognized directly. To check, type wine control and 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 .iso image before launching the game.
  • Nothing works any more after some tinkering → create a new Wine folder with WINEPREFIX and reinstall the game in it.