commit b7798d7ef2d00945d01036f0e1a373ec72d962f2 Author: Lephenixnoir Date: Fri Jun 17 22:03:27 2022 +0100 meta: initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2c4f84b --- /dev/null +++ b/.gitignore @@ -0,0 +1,13 @@ +# Build files +/build-fx +/build-cg +/*.g1a +/*.g3a + +# Python bytecode + __pycache__/ + +# Common IDE files +*.sublime-project +*.sublime-workspace +.vscode diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..477a00c --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,25 @@ +# Configure with [fxsdk build-fx] or [fxsdk build-cg], which provide the +# toolchain file and module path of the fxSDK + +cmake_minimum_required(VERSION 3.15) +project(HexEdit) + +include(GenerateG3A) +include(Fxconv) +find_package(Gint 2.8 REQUIRED) +find_package(JustUI 1.0 REQUIRED) + +set(SOURCES + src/main.c +) +set(ASSETS +) + +fxconv_declare_assets(${ASSETS} WITH_METADATA) + +add_executable(hexedit ${SOURCES} ${ASSETS}) +target_compile_options(hexedit PRIVATE -Wall -Wextra -Os) +target_link_libraries(hexedit JustUI::JustUI Gint::Gint) + +generate_g3a(TARGET hexedit OUTPUT "HexEdit.g3a" + NAME "HexEdit" ICONS assets-cg/icon-uns.png assets-cg/icon-sel.png) diff --git a/README.md b/README.md new file mode 100644 index 0000000..04c229a --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# Hex Editor for fx-CG + +This is a hex editor for fx-CG. Builds with [gint](https://gitea.planet-casio.com/Lephenixnoir/gint) and [JustUI](https://gitea.planet-casio.com/Lephenixnoir/JustUI). diff --git a/assets-cg/fxconv-metadata.txt b/assets-cg/fxconv-metadata.txt new file mode 100644 index 0000000..e69de29 diff --git a/assets-cg/icon-sel.png b/assets-cg/icon-sel.png new file mode 100644 index 0000000..7137b50 Binary files /dev/null and b/assets-cg/icon-sel.png differ diff --git a/assets-cg/icon-uns.png b/assets-cg/icon-uns.png new file mode 100644 index 0000000..3c99f62 Binary files /dev/null and b/assets-cg/icon-uns.png differ diff --git a/src/main.c b/src/main.c new file mode 100644 index 0000000..1a9e9b4 --- /dev/null +++ b/src/main.c @@ -0,0 +1,12 @@ +#include +#include + +int main(void) +{ + dclear(C_WHITE); + dtext(1, 1, C_BLACK, "Sample fxSDK add-in."); + dupdate(); + + getkey(); + return 1; +}