A basic SDL2 text editor designed for easy use on a video game console using a controller or touch screen. The primary goal of this project is to allow you to not have to turn to another device to edit text files.
- Install dkp-pacman
- Install devkitA64 and needed Switch dependencies via dkp-pacman:
sudo dkp-pacman -S devkitA64 libnx switch-tools switch-bzip2 switch-freetype switch-libjpeg-turbo switch-sdl2 switch-sdl2_gfx switch-sdl2_image switch-sdl2_ttf switch-libpng switch-mesa
- Once it's all setup, recursively clone the repo and run make:
git clone --recursive https://github.com/vgmoose/vgedit.git
cd vgedit
make -f Makefile.switch
If all goes well, vgedit.nro
should be sitting in the current directory.
The below instructions are currently for Linux and macOS
- Install dkp-pacman
- Setup wiiu-fling according to the instructions
- Install sdl2, wut, devkitPPC and other dependencies (on macOS, use
wut-osx
instead ofwut-linux
)
sudo dkp-pacman -S wut-linux wiiu-sdl2 devkitPPC wiiu-libromfs wiiu-sdl2_gfx wiiu-sdl2_image wiiu-sdl2_ttf ppc-bzip2 ppc-freetype ppc-libpng
- Once the environment is setup:
git clone --recursive https://github.com/vgmoose/vgedit.git
cd vgedit
make -f Makefile.wiiu
If all goes well, vgedit.rpx
should be sitting in the current directory.
There's a separate makefile for building the SDL2 app for PC. Below instructions are for Ubuntu, but should be similar on other platforms:
sudo apt-get install libsdl2-dev libsdl2-ttf-dev libsdl2-image-dev libsdl2-gfx-dev gcc g++ git
git clone --recursive https://github.com/vgmoose/vgedit.git
cd vgedit
make -f Makefile.pc
This software is licensed the GPLv3
Folder and file icons by Alfredo Hernandez under the Flaticon Basic License
It's not required, but running a clang-format before making a PR helps to clean up styling issues:
find . \( -name "*.cpp" -or -name "*.hpp" \) -not -path "./libs/*" -exec clang-format -i {} \;
Any and all PRs are welcome and appreciated! In particular, there is still some work to be done to properly align the cursor on text files with long lines, or when switching between touch screen and controller. You can also find me to talk directly about these issues on discord as vgmoose#3545 .