Skip to content

Commit

Permalink
FEAT: get rid of crutches and macro mess
Browse files Browse the repository at this point in the history
  • Loading branch information
9214 committed Jan 2, 2018
1 parent cd35d7e commit 9037912
Show file tree
Hide file tree
Showing 9 changed files with 64 additions and 707 deletions.
1 change: 0 additions & 1 deletion .gitattributes

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.config
make*
/bin
19 changes: 0 additions & 19 deletions CONTRIBUTING.org

This file was deleted.

25 changes: 3 additions & 22 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -15,26 +15,11 @@ Grab [[https://github.com/9214/daruma/releases/latest][latest release]] for your
*Please note* that only Win version was tested, and MacOS bundle just cross-compiled. For Linux folks - sorry guys, GTK graphical backend is a work-in-progress, hence no GUI and executable. Either use Wine or other fan-made implementations.

** From source
- *prerequisite:* Internet connection;
- download [[http://www.red-lang.org/p/download.html][Red toolchain]] ([[http://red.github.io/#download][mirror]]);
- fork or download this repo;
- create a ~.config~ file in downloaded (and unpacked) directory in the following format:
- compile ~./src/main.red~ with ~-e~ and ~-r~ flags. If you want to cross-compile, specify ~-t~ flag and target platform. Example:
#+BEGIN_SRC red
red: "<path/to/red/toolchain/in/system/specific/format>"
opt: "<compilation options (call toolchain with --help flag to list them)>"
#+END_SRC
example:
#+BEGIN_SRC red
red: "/home/user/dev/red/red-latest"
opt: "-c -t WindowsXP -o /home/user/daruma"
#+END_SRC

- call toolchain with ~--cli~ flag and:
#+BEGIN_SRC red
>> cd %/red/file/path/to/daruma/dir/
>> do %make.red
== OK
>> compile
./red -e -r -t WindowsXP ./src/main.red -o ./daruma.exe
#+END_SRC
- that's it, compiled binary should be in a root/specified directory.

Expand All @@ -52,14 +37,10 @@ If *you* place *daruma* in a *gamedir* and launch it, it will /silently/ patch a
** Decoder
If *you* launch *daruma* in any other directory that /doesn't looks like/ *gamedir* (i.e. doesn't contain any of the save files), a tiny window will pop up for you to enter 16-character Internet code. Well, just do it and hit Enter. Then, if everything is fine, write-down decoded locker code and use it to grab 13th MDisk.

* Contributing
Even though codebase is miniscule, there're a few things to do for those who are new to programming and open source. Don't be shy and consult [[./CONTRIBUTING.org][CONTRIBUTING]] file for details.

* Repo structure
- ~src/~ :: main directory with all scripts;
- ~tb/~ :: testing data and crude tests for decoder;
- ~msc/~ :: miscellaneous files and resources (mainly original disassembly dump, app's icon and macro for save harvesting);
- ~make.red~ :: "makefile" for debugging/releasing.
- ~msc/~ :: miscellaneous files and resources (mainly app icon, original disassembly and macro for save harvesting).

* API
Two words are exposed into global context:
Expand Down
29 changes: 0 additions & 29 deletions make.red

This file was deleted.

Loading

0 comments on commit 9037912

Please sign in to comment.