Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Citron as Switch player #732

Open
adriansticoid opened this issue Nov 21, 2024 · 13 comments
Open

Add Citron as Switch player #732

adriansticoid opened this issue Nov 21, 2024 · 13 comments

Comments

@adriansticoid
Copy link

Please add Citron, a new Switch emulator as a platform player.

https://citron-emu.org/

@tschertel
Copy link

I came here to ask this too!
Thanks for your work, Tapioca.

@tschertel
Copy link

tschertel commented Dec 9, 2024

Please add Citron, a new Switch emulator as a platform player.

https://citron-emu.org/

Hi Adrian,
I managed to add Citron to Daijishou.

Add a new player and add this to the player's arguments:

-n org.citron.citron_emu/org.citron.citron_emu.activities.EmulationActivity -a android.intent.action.VIEW -d {file.uri}

The files' regex should be the same as any other Switch player.

@tschertel
Copy link

Just created a PR for this.

@adriansticoid
Copy link
Author

Please add Citron, a new Switch emulator as a platform player.
https://citron-emu.org/

Hi Adrian, I managed to add Citron to Daijishou.

Add a new player and add this to the player's arguments:

-n org.citron.citron_emu/org.citron.citron_emu.activities.EmulationActivity -a android.intent.action.VIEW -d {file.uri}

The files' regex should be the same as any other Switch player.

This worked. Thank you so much!

@tschertel
Copy link

Please add Citron, a new Switch emulator as a platform player.
https://citron-emu.org/

Hi Adrian, I managed to add Citron to Daijishou.
Add a new player and add this to the player's arguments:
-n org.citron.citron_emu/org.citron.citron_emu.activities.EmulationActivity -a android.intent.action.VIEW -d {file.uri}
The files' regex should be the same as any other Switch player.

This worked. Thank you so much!

I'm glad to help. :)

@epicyeeto
Copy link

doesnt work for me unable to find explicit actrivity class

@VeiledHunter
Copy link

doesnt work for me unable to find explicit actrivity class

I was having the same issue, Citron changed the package name to "com.miHoYo.Yuanshen" so that some devices with frame-gen "Samsung" could leverage it and not get flagged.

Mine is working now with, i used "Package Name Viewer" from the Play Store to find this.
-n com.miHoYo.Yuanshen/org.citron_emu.ui.main.MainActivity

@epicyeeto
Copy link

epicyeeto commented Feb 5, 2025

So I used yours, and it still doesn't work for the same reason.

Here is my setup

Player name
switch - citron

Player am start arguments
-a android.intent.action.VIEW
-n com.miHoYo.Yuanshen/org.citron_emu.ui.main.MainActivity
-d {file.path}

Player accepted filename regex:

^(x*).(?:ext1|ext2|ext3)$

sorry if I made a simple error

@SquidKidG
Copy link

Player am start arguments -a android.intent.action.VIEW -n com.miHoYo.Yuanshen/org.citron_emu.ui.main.MainActivity -d {file.path}

I keep getting the error, should I look to see if my com.miHoYo is named something else?

@tschertel
Copy link

Player accepted filename regex:

^(x*).(?:ext1|ext2|ext3)$

File extensions are wrong. They should be:
^(.*).(?:nro|nso|nca|xci|nsp)$

But it doesn't solve the problem.
I think the problem is the package itself. We should send a message to Citron developer.

@tschertel
Copy link

Just solve it...

Player am start arguments:

-n com.miHoYo.Yuanshen/org.citron.citron_emu.activities.EmulationActivity
  -a android.intent.action.VIEW
  -d {file.uri}

Player accepted filename regex:

^(.*)\.(?:nro|nso|nca|xci|nsp)$

@OrionSpark26
Copy link

OrionSpark26 commented Feb 5, 2025

I dont know who you are Mr tschertel and i didnt even speak english but i just want to say that i made this account with the only purpous of thanking you. I just got a RP 5 and wanted to use citron with Daijisho and You answered my fatefull call one hour ago... Thank you so much for your work!!! It worked for me!!!

@sparkvondich
Copy link

sparkvondich commented Feb 8, 2025

(Version 0.4)
Problem solved! To make things easier for the next person, I'm sharing the entire code.

   , {
  "name": "switch - Citron",
  "uniqueId": "switch.com.miHoYo.Yuanshen",
  "description": "Supported extensions: nro, nso, nca, xci, nsp.",
  "acceptedFilenameRegex": "^(.*)\\.(?:nro|nso|nca|xci|nsp)$",
  "amStartArguments": "-n com.miHoYo.Yuanshen/org.citron.citron_emu.activities.EmulationActivity -a android.intent.action.VIEW -d {file.uri}",
  "killPackageProcesses": false,
  "killPackageProcessesWarning": false,
  "extra": ""
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants