Browse Source

Fix dynstring-concat to append, update readme

windows-imgui
Macoy Madson 2 months ago
parent
commit
05c11d3c70
3 changed files with 11 additions and 3 deletions
  1. +7
    -0
      ReadMe.org
  2. +3
    -3
      src/DynamicArray.cake
  3. +1
    -0
      tools/gamelib.el

+ 7
- 0
ReadMe.org View File

@ -66,6 +66,13 @@ Refer to ~test/~ for project setup.
./test/RemoveSubmodules.sh
#+END_SRC
This shouldn't be necessary because ~test/~ is set up to not clone dependencies as submodules, but if you are testing the submodules feature, this script helps undo them.
** Platform setup
*** Ogre
You may need X11 headers to build on Ubuntu:
#+BEGIN_SRC sh
sudo apt install libx11-xcb-dev
#+END_SRC
There is a TODO to automatically install these.
* Asset pipeline
You should do it manually once to ensure your environment is properly configured, then refer to ~test/src/VocalGame.cake~ function ~process-3d-assets~ for how to automate it.
** Blender setup


+ 3
- 3
src/DynamicArray.cake View File

@ -207,15 +207,15 @@
(dynstring-printf (addr my-string) "Short %d" 42)
(print-dynstring-details my-string)
(dynstring-concat (addr my-string) "/")
(dynstring-concat (addr my-string) "Test")
(dynstring-append (addr my-string) "/")
(dynstring-append (addr my-string) "Test")
(print-dynstring-details my-string)
(dynstring-create-f my-quick-string "The answer is %d" 42)
(print-dynstring-details my-quick-string)
(var my-uninitialized-string dynstring null)
(dynstring-concat (addr my-uninitialized-string) "/")
(dynstring-append (addr my-uninitialized-string) "/")
(dynarray-free my-uninitialized-string)
(dynarray-free my-string)


+ 1
- 0
tools/gamelib.el View File

@ -3,6 +3,7 @@
(defun gamelib-cakelisp-mode ()
(put 'each-in-strdict 'lisp-indent-function 2)
(put 'each-item-in-dict-true 'lisp-indent-function 4)
(put 'each-in-dynarray 'lisp-indent-function 2)
(put 'each-item-in-dynarray 'lisp-indent-function 4)
(put 'each-item-addr-in-dynarray 'lisp-indent-function 4)


Loading…
Cancel
Save