Getting Citra Log C#

I want to make a program with C# which changes the screen layout by setting custum layout values in the config file. When the user selects a layout, it should go through these steps by reading the log and sending inputs:

Check if a game is running (log)

  • Save the game with safestates (input)
  • Wait until saved (log)
  • Stop the game (input) (optional)
  • Wait until stopped (log) (optional)

Close the application (input)
Edit the configs
Reopen the application (input)
Wait until Citra has loaded (log)
Open the latest file/game (input)
Wait until game has loaded (log)
Load the newest savestate (input)

I also want to make other tools like setting specific settings when launching a game.

To do these things I definitely need access to the live log, users can see when activating the log window in the debug settings or attatching Visual Studio. I tried it with the Process Class and the Log file. The Process Class doesn’t get output from Citra and the Log file doesn’t update while playing.
Is there another way to get the log?

You can get my code at Github

I look forward to any help :grinning:

In order for us to provide better support, we need to see the log generated by Citra. This guide will walk you through how you can obtain the log file: How to Upload the Log File.