Skip to content
Karak Studio icon

Desktop · Windows

Karak Studio

Changing things

Add an entry to THEMES in main.rs and change the array’s size. A look is a set of colours plus an arrangement (Three, Split or Stack), a tab style and a corner radius. The settings.txt value is the index into this array.

Each chapter is a text file in the course folder, listed in order in FILES at the top of src/course.rs (the file explains the format: a header with title, blurb, Discord slang and level, then ## headings, paragraphs, - lists, | tables, fenced code, > tips, @link lines, ???/!!! exercises and an @quiz section). Add the file to FILES where it belongs. Quizzes and slang live inside each chapter, so reordering chapters never mismatches them. cargo test reads every chapter and checks every quiz.

  1. Write a program in practice\src\bin\, following the existing ones.
  2. Build it and copy the exe to src\practice\.
  3. Add a Challenge to CHALLENGES in practice.rs, with hints, a solution and a check function that mirrors the program’s rule.
  4. Open the built exe in the app and make sure the hints describe what is really there.

Solved state is stored as one bit per challenge, by position.

Add a row to RULES in triage.rs: a title, a one-line note, and the function names.

Add a line to meaning in explain.rs. The key is the instruction name in lower case.

Add a case to Lifter::step in decomp.rs. Read the operands with read, build a formula, and store it with write. Return false for anything you cannot handle, and it will fall back to __asm.