POKEMON DS WIDESCREEN FOR PC
============================

The Pokemon DS games on one widescreen display, with the two DS screens merged into one view,
the world drawn out to the sides of a 16:9 screen, 60 fps and controller support.
It plays your own copies of:

  Pokemon Black, White, Black 2 and White 2 (English, US or Europe)
  Pokemon SoulSilver and HeartGold (English, US or Europe)
  Pokemon Platinum (English, US or Europe)

Nothing of the games comes with this download: you need your own ROMs (.nds files).


GETTING STARTED
---------------

1. Unpack the download anywhere you like (not inside Program Files).
2. Put your ROMs in the roms folder. Any file names are fine.
3. Start Pokemon Fulldex.exe (Windows) or pokemon-ds-wide (Linux).
4. Pick a game from the list: arrow keys or a controller's D-pad, then Enter or A.
   You can also double-click a game. Press O in the list to open the roms folder, and H (or
   a controller's Y) for the settings: the Esc menu's options, each explained.
   The list shows every game under its console's heading; the tabs at the top (Q and E, a
   controller's shoulder buttons, or a click) show one console's games.

Windows may warn that the program is from an unknown publisher the first time: choose
"More info", then "Run anyway".
On Linux there is nothing else to install: SDL2 comes with it (libSDL2-2.0.so.0).

Choose the Linux download for your processor, not the ROM's console:
  - Intel/AMD PCs and Steam Deck: pokemon-ds-wide-pc-linux-x86_64.tar.gz
  - 64-bit ARM Linux devices: pokemon-ds-wide-pc-linux-aarch64.tar.gz
The AppImages use the same x86_64 / aarch64 names. Unpack the entire tar.gz before
starting pokemon-ds-wide; keep its libraries beside it.

If a shell says "exec format error", check these from the unpacked folder:
  uname -m
  file ./pokemon-ds-wide
An x86_64 system needs an x86-64 ELF executable; aarch64 needs an ARM aarch64 ELF.
If they differ, download and unpack the matching archive into a separate folder.
If they match and it still fails, report both outputs and the exact archive name.
"Permission denied" is a different error: only then check executable permission
(chmod +x ./pokemon-ds-wide). Changing permissions cannot repair a wrong format.


OMEGA RUBY AND ALPHA SAPPHIRE (WINDOWS)
--------------------------------------

The Windows download also plays your own copies of Pokemon Omega Ruby and Alpha Sapphire (3DS).
1. Put your dump (a .3ds file) in the roms folder. It shows in the 3DS tab.
2. The first time you choose it, it is prepared: the game's code is built from your dump, once,
   on your PC (5 to 15 minutes, using every core). The list shows how it is going; you can carry
   on choosing other games meanwhile. This needs no download.
3. Then choose it again to play. Quitting it brings you back to the list.
Each game keeps its own folder, with its saves and settings, in 3ds (3ds\000400000011C400 is
Omega Ruby, 3ds\000400000011C500 Alpha Sapphire).
For the Switch, use Game Options > Put On My Switch in FullDex 1.7 or newer on Windows.
Choose the Switch's SD card, or Save To A Folder Instead and copy the finished game folder
into /switch/ on the card. Wait until every step succeeds; .c, .o and .h files alone are not
a playable folder. For Android, use Game Options > Put On My Phone and copy the file it
makes to the phone's ROMs folder. The separate FullDex Builder 0.1 is obsolete.
Ultra Sun and Ultra Moon get battle buttons and an X menu made for the One screen layout (an
SDL2.dll in front of the program's own, SDL2_real.dll). To turn them off for a game, put an empty
file named usumfix_off.txt in its folder (3ds\00040000001B5000 is Ultra Sun).


STEAM DECK
----------

1. In Desktop Mode, unpack the Linux download (for example into your Games folder) and put
   your ROMs in its roms folder.
2. Quit Steam. Open pokemon-ds-wide from your apps menu; add the launcher itself from
   Settings > Shortcuts > STEAM LAUNCHER, or add one game from its menu (A on the game) > ADD TO STEAM.
   The same menu item says ADD TO DESKTOP when Steam is not found, and makes the normal
   desktop shortcut instead (automatic fallback). Entries are user-selected: nothing is
   added automatically. If you switch Steam accounts or move Steam, Settings > Shortcuts > STEAM
   ACCOUNT > REFRESH finds the account's shortcuts file again.
3. Start Steam again, then start pokemon-ds-wide or the game from your library in Gaming
   Mode with a gamepad controller layout.
4. The Deck's screen is 1280x800: set 3D RESOLUTION to 720P in the settings (Y in the game
   list), full sharpness there and easier on the battery.


LINUX ON ARM
------------

The ARM64 AppImage (pokemon-ds-wide-pc-linux-aarch64.AppImage) is for 64-bit ARM handhelds
such as those running Armada. Add it to Gear Lever, or mark it executable and start it.
ROMs, saves and settings go in ~/.local/share/pokemon-ds-wide (O in the game list opens its
roms folder). Set 3D RESOLUTION to 720P for a handheld screen.


PICTURE SETTINGS (Esc menu)
---------------------------

  WORLD ON GPU       ON: the widescreen world is drawn by your graphics card (OpenGL 4.3 or
                     newer). Turn it OFF if the world looks wrong or the game will not start.
  3D RESOLUTION      how sharp the widescreen 3D world is: 1080P to start, or 720P,
                     1440P (2K), 2160P (4K) and lower for slow PCs. The 2D sprites and
                     text stay the DS's own pixels. With WORLD ON GPU, 1080P or 1440P
                     suits most PCs; 2160P needs a good graphics card.
  LOWER RES WHEN BUSY      off to start. ON: lowers the 3D RESOLUTION for a moment when the PC
                     cannot keep up, instead of slowing down.
  FAST FORWARD LOW RES     off to start. ON: the 3D world drops to 360P while you fast forward,
                     for more FPS (a faster fast forward if your PC cannot keep up).
  BORDERLESS FULLSCREEN    on to start: fills your screen at its own resolution as a
                     borderless window, so switching to other windows is instant. F11
                     switches between it and a window.
  DESKTOP SHORTCUTS        (settings page only) CREATE puts a shortcut for each game in the list
                     on your desktop (Linux: also in your apps menu), with its picture. It
                     starts that game straight away; QUIT in the pause menu still comes back
                     to the list. The same from a command line:
                     "Pokemon Fulldex.exe" --game IREO (the game codes are under icons/).
                     A game's menu (A) adds just that game, or the launcher itself in
                     Settings > Shortcuts > STEAM LAUNCHER: ADD TO STEAM when Steam is found, otherwise
                     ADD TO DESKTOP (the automatic fallback).


WHERE THINGS ARE KEPT
---------------------

  roms/           your ROMs
  icons/          pictures for the game list, if you want them: a JPEG or PNG named by the
                  game's code (IREO.jpg Black 2, IRDO White 2, IRBO Black, IRAO White,
                  IPKE HeartGold, IPGE SoulSilver, CPUE Platinum), in place of the box art
                  the list shows. A picture named like the ROM (Black 2.jpg beside Black 2.nds)
                  works too.
  saves/          your saved games, one per game (black2.sav, soulsilver.sav, ...)
  settings.cfg    your settings
  game.log        what happened in the last session (send it with a bug report)

To carry on a game from another emulator, put its .sav file in the saves folder with the name
above (for example saves/platinum.sav). Back your saves up before you do.


CONTROLS
--------

Controller (Xbox, PlayStation, Switch Pro and others): plays as a DS, with the touch screen's
buttons shown in the view. Hold the right trigger to fast forward (up to 4x).
Its START (Menu on Xbox, Options on PlayStation) opens the menu; START BUTTON in the settings
makes it the DS's START instead.

Keyboard:
  Arrow keys       D-pad
  X / Z            A / B
  S / A            X / Y
  Q / W            L / R
  Enter            START
  Backspace        SELECT
  Mouse            touch screen (click to touch)
  Esc              menu (settings, save state, QUIT back to the game list)
  F11              fullscreen
  Tab              next screen layout
  F1               swap screens
  Left Shift       fast forward while held
  F5               save state
  F8               load state

Changing them: CONTROLS > KEYS AND BUTTONS in the menu (Esc), and on the game list's settings page,
lists the DS's buttons, the menu, fast forward, swapping the screens, save state and load state,
with the key or button each has. Choose one and press the key or button to give it (Esc, or waiting
5 seconds, leaves it as it was); CHANGING at the top switches between the keyboard and a controller.
Save state starts as F5 and load state as F8; on a controller those two start unset. Giving one a
key or button another one had swaps the two. RESET ALL puts them back. The game list follows the
ones you change (A plays, B goes back, Y opens the settings).


SOURCE AND LICENCE
------------------

This program is free software under the GNU General Public License version 3 (LICENSE.txt),
built on melonDS. Its source code:
  https://github.com/mamesj/fulldex
SDL2 (SDL2.dll on Windows, libSDL2-2.0.so.0 on Linux) is under the zlib licence
(LICENSE-SDL2.txt).
Pokemon is a trademark of Nintendo, Creatures and GAME FREAK. This project is not affiliated
with or endorsed by them. The box art in the game list belongs to Nintendo, Creatures,
GAME FREAK and The Pokemon Company and is shown only to tell the games apart; if you hold the
rights and want it removed, open an issue on the GitHub page and it will be taken out.
