Skip to content

Download EXE and Sync Data

As mentioned in: Docs: The Launcher Installs Wemod the WeMod data will then need to be synced and the WeMod files will need to get set up. The order might seem strange, but it doesn’t matter since the data files will only exist after WeMod has been started once. So:

  1. We check if the prefix should be packaged into a zip. This is used when a prefix needs to be uploaded
  2. We copy the WeMod data folder to the script dir.
  3. If it doesn’t exist we make an empty folder in the script dir.
  4. Next we symlink the folder where WeMod saves the data to that script dir folder.
  5. Now any WeMod data will be saved in the script dir folder (on all games). Therefore it’s synced by basically using the same folder on all games.
  6. Next we check if wemod.exe exists
  7. If not then we run the setup. This will essentially download and extract the wemod-setup.exe. The exe contains all files to run WeMod, like the wemod.exe file. Of course the dependencies are not part of this, they are handled in: Docs: The Launcher Installs Wemod
  8. After that we are done with the setup and can return to: Docs: The Main Flow