Shortcut Tiles to open Games in CEMU?

Discussion in 'Wii U - Emulation & CEMU' started by JohnnyGui, Mar 30, 2017.

  1. JohnnyGui
    OP

    JohnnyGui Member

    Newcomer
    18
    2
    Mar 23, 2017
    Netherlands
    Hello,

    Couldn't find exactly how to do this.

    What I want to do is create a shortcut tile in the Start Menu of Windows 10 that, when clicked on, automatically loads a specific Wii U game in Cemu. The game being an .rpx file.
    I've tried putting the paths of both the game and CEMU in the "Target" and "Start in" fields in the Properties menu of a newly created shortcut, but for some reason the shortcut then only loads CEMU without loading the game in it.

    Is there a way to do this?
     
  2. riefu24

    riefu24 Newbie

    Newcomer
    5
    1
    Mar 30, 2017
    United States
    In your shortcut properties, the target should include in quotes "<your Cemu.exe path>" and then -g "<your game.rpx path>" and then -f if you want it to boot into fullscreen mode by default. Your Start in field should include the containing folder of your Cemu.exe. So for example:
    Target -
    "C:\Users\Anon\Emulators\Cemu 1.7.3\Cemu.exe" -g "C:\Users\Anon\Games\Wii U\Xenoblade Chronicles X\code\spaceTravel.rpx" -f
    Start in -
    "C:\Users\Anon\Emulators\Cemu 1.7.3\"
     
    Justin20020 likes this.
  3. JohnnyGui
    OP

    JohnnyGui Member

    Newcomer
    18
    2
    Mar 23, 2017
    Netherlands
    Great, this worked! Thanks a lot :)
     
  4. JohnnyGui
    OP

    JohnnyGui Member

    Newcomer
    18
    2
    Mar 23, 2017
    Netherlands
    Apologies, but I seem to have a bit of a complex problem.

    I want to customize the tile icon for the newly created shortcut that loads a game in Cemu. To customize this tile icon (the icon filling the whole tile in the Start Menu), I'd have to put a PNG file and an XML file
    in the same path as where Cemu.exe is (the root .exe file). The XML file must contain directories to the PNG file and Cemu.exe

    However, if I make ANOTHER shortcut that loads another game with Cemu and give that shortcut a customized tile icon as well, I'd have to make a PNG and an XML file for that game as well and
    put it also in the path of Cemu.exe. However, in that case there will be 2 XML files directing to Cemu.exe and both XML files will tell Cemu.exe to show a different PNG icon.

    How do I solve this? Is the only solution making multiple copies of Cemu.exe for each specified game?
     
    Last edited by JohnnyGui, Mar 30, 2017
  5. riefu24

    riefu24 Newbie

    Newcomer
    5
    1
    Mar 30, 2017
    United States
    Hmm... Maybe try making a .bat file, which is just a file with preloaded commands, with the same stuff you put in your Shortcut Target. You can make the bat file by just opening notepad and copy-pasting the shortcut target into the text, then save the file as a .txt, and rename the extension to .bat. Then after that, you can convert your .bat file into an executable (.exe), https://www.howtogeek.com/50364/convert-a-batch-bat-script-to-an-executable-exe-file/. Then you can just have small executables rather than making whole copies of Cemu. I haven't attempted to use this conversion method, so I don't know if it will work for certain. Best of luck.
     
  6. JohnnyGui
    OP

    JohnnyGui Member

    Newcomer
    18
    2
    Mar 23, 2017
    Netherlands
    Good idea, I'll go give this a try.

    So if I understand correctly, the only line I'd have to put in the .bat file is in your given example:

    "C:\Users\Anon\Emulators\Cemu 1.7.3\Cemu.exe" -g "C:\Users\Anon\Games\Wii U\Xenoblade Chronicles X\code\spaceTravel.rpx" -f

    So I don't need to put the line for the "Start in" field?
     
  7. riefu24

    riefu24 Newbie

    Newcomer
    5
    1
    Mar 30, 2017
    United States
    Yes, you don't need "Start in", just that 2nd line.
     
    Last edited by riefu24, Mar 30, 2017
  8. JohnnyGui
    OP

    JohnnyGui Member

    Newcomer
    18
    2
    Mar 23, 2017
    Netherlands
    Wow, this actually worked. Thanks a lot! Was worried I'd have to copy the whole exe file several times. It's just 5.7 mb but still, 70.5kb is way better!
     
  9. riefu24

    riefu24 Newbie

    Newcomer
    5
    1
    Mar 30, 2017
    United States
    Happy to hear that it did.
     
  10. JohnnyGui
    OP

    JohnnyGui Member

    Newcomer
    18
    2
    Mar 23, 2017
    Netherlands
    I realised something but I'm not sure if it's going to work. Isn't it better to make shortcuts of the .rpx files instead and use a command line for each of those .rpx shortcuts to open in Cemu.exe? In that case I won't need to make batch files and convert them to .exe files for each game.
    The problem is however that if I make an .rpx shortcut of each game and use your mentioned command line in its properties, the shortcut would be automatically transformed into a shortcut to Cemu.exe. Is there a way to make a shortcut of an .rpx file and make it open in Cemu.exe when I click on it but without turning that .rpx shortcut into a shortcut of Cemu.exe?

    PS: I tried opening a root .rpx file by double-clicking on it and then choosing Cemu.exe in the pop-up menu, but then only Cemu loads without loading the game's .rpx file. So, if there's a command line for that, I'm not sure if that's going to work.
     
    Last edited by JohnnyGui, Apr 3, 2017
  11. riefu24

    riefu24 Newbie

    Newcomer
    5
    1
    Mar 30, 2017
    United States
    As far as I know, the -g <.rpx path> is the only way to get cemu to open with the specified game preloaded. If you associate the .rpx file type with cemu.exe, it will effectively use the command "<cemu.exe>" "<game.rpx>", it doesn't put a -g before the rpx, so cemu doesn't recognize it and it doesn't boot into the game.

    I don't know of a way to create a shortcut to a program, and then have it not be a shortcut to that program? If I am understanding you correctly, does that mean that you don't want it to show the cemu icon? I think you can customize your shortcut with different icons if you wanted to say change it to the picture of the game it opens.

    From what you told me earlier, you wanted to make a tile that would open a specified game in Cemu. To do that you need an xml in the root directory of the exe that your tile shortcuts to. What we used as a workaround for having multiple tiles linking to the same exe is to create a redirect exe for each game that you want to create rather than make copies of Cemu in new directories for each xml.
     
  12. JohnnyGui
    OP

    JohnnyGui Member

    Newcomer
    18
    2
    Mar 23, 2017
    Netherlands
    Yes, that's indeed what I did with the .xml files. However, I thought that if I could make shortcuts to the .rpx files themselves and make these shortcuts automatically open with Cemu.exe, then I won't need to create redirect exes for every game, since I'd just put each .xml file in the same root directory of its corresponding .rpx file. Not sure if that'd change the icon of the shortcut to the .rpx file since the .xml file is not directed to an exectuable but to an .rpx file instead.

    But this procedure is apparently already not possible since associating .rpx files with cemu.exe won't make cemu recognize it, as you described.