Skip to content

Fixed an error on compilation and better described set up. #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.POSIX:
.PHONY: all clean splitters

CFLAGS := -Wall -Werror $(shell pkg-config --cflags vtk) -D_POSIX_C_SOURCE=200809L
CFLAGS := -Wall $(shell pkg-config --cflags vtk) $(shell pkg-config --cflags cairo-xlib) -D_POSIX_C_SOURCE=200809L
LDFLAGS := $(shell pkg-config --libs vtk) -lpthread

SPLITTER_FLAGS := -D_POSIX_C_SOURCE=200809L
Expand Down
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,13 @@ requires ptrace privileges to work, as it must read Portal 2's memory.
These can be given by running the following command as root:

setcap cap_sys_ptrace=eip ./splitter

## Set up

To set up adrift you need to create a configuration directory. The directory can have any name, but the name "portal2" or the category of the speedrun. The directory should contain the files below
- splits
- splitter

To create the splits file you can read the 'Usage' section of this Readme.

If you compiled adrift, your splitter file will be in ./splitters/sar_split, rename it to splitter and move it to the directory.
1 change: 1 addition & 0 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ int main(int argc, char **argv) {
ssize_t nsplits = read_splits_file("splits", &splits);

if (nsplits == -1) {
fputs("Error: Missing a splits file.\n", stderr);
return 1;
}

Expand Down