Skip to content

CasperH2O/CemuScripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scripts for Cemu

What is this? A collection of scripts for various tasks in relation to Cemu. Why is this? Altough Cemu is already a great emulator, it sometimes crashes, playing on the couch or remotely from the PC can make it burdersome to initiate a restart.

Functionality include:

  • Starting Cemu game in full screen mode.
  • Detecting Cemu has crashed and restarting it.
  • Making a backup of the Cemu saves folder.
  • Starting a speedhack application.
  • Automatically focus window to Cemu.
  • Closing of applications and or script when cemu has been stopped by the user.

All in one scripts explanation

There are two main scripts in the AllInOne folder, a regular one and a simple one.

Detection of crash is done by detecting that the Windows program WerFault.exe is running.

For working result, these scripts have to be run as administrator. Otherwise certain applications don't allow themselves to be stopped and remain open. Obviously first check the script if nothing nasty happens, you are responsible for your own machine!

StartCemuSimple.bat

This script does the following:

  • Check if Cemu is running, if yes, informs user, does nothing and exits
  • Starts Cemu full screen with specified game.
  • Checks if Cemu has crashed, every 5 seconds, if yes, restarts it.
  • In case Cemu has been closed, the script is also closed.

StartCemu.bat

  • Check if Cemu is running, if yes, informs user, does nothing and exits
  • Creates a backup of the Cemu save game folder
  • Starts Cemu full screen with specified game.
  • After a timeout (game has been loaded in Cemu), starts the SuperSpeedHack application.
  • Checks that that SuperSpeedHack application has been started properly, focusses window on Cemu.
  • Checks if Cemu has crashed, every 5 seconds, if yes, restarts everything from the start.
  • In case Cemu has been closed, the script is also closed.

Examples

Below animated gif illustrates the StartCemuSimple.bat script. It is a screencast saved as gif, certain parts have been cut out to speed up video and keep file size low (~3 Mb).

alt text

alt text

Extra, third party and credits.

The script uses and starts several items:

  • Cemu link
  • Super Speedhack link
  • sendKeys.bat link
  • 7zip for backup/archiving link
  • Some code examples taken from stack overflow.

About

Scripts partaining to Cemu

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published