Skip to content

Instantly share code, notes, and snippets.

View lyuwen's full-sized avatar

LFu lyuwen

View GitHub Profile
@lyuwen
lyuwen / VSCode-LLDB-input-through-stdin.md
Last active August 25, 2022 16:37
VSCode LLDB input through stdin

Pipe input through stdin in VSCode debugging with LLDB

Unlike GDB where you can pipe in file to stdin with "<" in args. With LLDB there a bit extra setup required to make it work. The above launch.json is a configuration template. It took me a bit of searching to find this solution, so I think it's a good idea to keep a brief record here.

@lyuwen
lyuwen / citra_build_guide_apple_m1.md
Last active September 29, 2021 06:35
Resolving graphic and audio glitch for Pokemon games in citra emulator for Apple Silicon

The citra emulator is not officially supporting apple silicon, so all the the support channels on their website and discord server refuse to provide any support regarding glitches when using the emulator.

I have played around with it for a bit and found a solution that allows me to use the emulator to play pokemon x/y without much problems. There are still minor graphic glitches where sometimes there are missing spots on the charactors. But most of the annoying problems are fixed:

  • Most graphic glitches including missing spots on the pokemon models;
  • Model glitches where some parts of the body of the pokemon and charactor models are oriented strangely;
  • Glitches like in pokemon x/y where you ran into an invisible wall in route 6.

The soultion is basically, build the citra app natively with arm64 and FFmpeg decoder.