You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
2
2
3
3
4
-
libfizmo aims to provide a Z-Machine interpreter core library in plain C. The goal is to have an interpreter library with as little dependencies as possible to allow for easy portability. In order to use it stand-alone, you have to invoke the “fizmo_start” function in “src/interpreter/fizmo.c” with a screen interface. Check fizmo-console for an example.
4
+
libfizmo aims to provide a Z-Machine interpreter core library in plain C. The goal is to have an interpreter library with as little dependencies as possible to allow for easy portability. In order to use it stand-alone, you have to invoke the “fizmo\_start” function in “src/interpreter/fizmo.c” with a screen interface. Check fizmo-console for an example.
5
5
6
6
Currently the interpreter is in beta status, which means it seems to run all non-version-6 games quite well without any known bugs.
Copy file name to clipboardexpand all lines: libfizmo-initialization.md
+10-10
Original file line number
Diff line number
Diff line change
@@ -12,19 +12,19 @@ _2011-08-23_
12
12
There are six initialization steps:
13
13
14
14
15
-
-`fizmo_register_screen_interface`
16
-
-`fizmo_register_sound_interface`
17
-
- optional: `parse_fizmo_config_files`
18
-
-`fizmo_start`
19
-
-`parse_fizmo_config_files` if not happened before
20
-
- implicit: `link_active_interface_to_story`
15
+
-`fizmo\_register\_screen\_interface`
16
+
-`fizmo\_register\_sound\_interface`
17
+
- optional: `parse\_fizmo\_config\_files`
18
+
-`fizmo\_start`
19
+
-`parse\_fizmo\_config\_files` if not happened before
20
+
- implicit: `link\_active\_interface\_to\_story`
21
21
22
22
23
23
fizmo config files:
24
24
25
25
26
26
-`/etc/fizmo.conf`, always parsed.
27
-
- All `fizmo/config` files in all directories from colon-spearated `XDG_CONFIG_DIRS` path.
27
+
- All `fizmo/config` files in all directories from colon-spearated `XDG\_CONFIG\_DIRS` path.
28
28
-`$HOME/.config.fizmo`
29
29
30
30
@@ -33,13 +33,13 @@ fizmo config files:
33
33
**Color initialization**
34
34
35
35
36
-
The screen default colors are stored in variables `default_foreground_colour` and `default_background_colour` inside `output.c`. By default, the foreground is initialized as white, the background as black. Initialization is as follows:
36
+
The screen default colors are stored in variables `default\_foreground\_colour` and `default\_background\_colour` inside `output.c`. By default, the foreground is initialized as white, the background as black. Initialization is as follows:
37
37
38
38
39
39
1. By default, the foreground color is set to white, the background to black in `output.c`.
40
-
2. The screen interface's functions `get_default_foreground_colour` and `get_default_background_colour` are evaluated. In case these return valid z_colour values, these are used as the default colors. That means that by returning -1 for one or both of the functions, the screen interface may choose not to alter the interpreter's default values.
40
+
2. The screen interface's functions `get\_default\_foreground\_colour` and `get\_default\_background\_colour` are evaluated. In case these return valid z\_colour values, these are used as the default colors. That means that by returning -1 for one or both of the functions, the screen interface may choose not to alter the interpreter's default values.
41
41
3. The `foreground-color` and `background-color` config variables are evaluated from the configuration file(s).
42
-
4. The `fizmo-start` function's variables `screen_default_foreground_color` and `screen_default_background_colour` are evaluated. In case these contains valid z_colour values, they're used as the new default. As in step 2, that means that the default, as evaluated up to this step, may be kept by setting one or both of the values to -1.
42
+
4. The `fizmo-start` function's variables `screen\_default\_foreground\_color` and `screen\_default\_background\_colour` are evaluated. In case these contains valid z\_colour values, they're used as the new default. As in step 2, that means that the default, as evaluated up to this step, may be kept by setting one or both of the values to -1.
43
43
44
44
45
45
Why the additional step 4? While it's already possible to read color information from the screen interface in step 2, step 4 ensures that it's possible to still override the information parsed from the config files in step 3 from the screen interface.
0 commit comments