From fad3936042daf2596420eb1a92307860b9f9e856 Mon Sep 17 00:00:00 2001 From: SirObby <70753342+SirObby@users.noreply.github.com> Date: Fri, 30 Sep 2022 21:57:43 +0800 Subject: [PATCH 1/5] cairo pkg-config in Makefile --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6601ced..363cca5 100644 --- a/Makefile +++ b/Makefile @@ -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 From b6d19421f8bd6b9763577af6ee44346a6d9b3def Mon Sep 17 00:00:00 2001 From: SirObby <70753342+SirObby@users.noreply.github.com> Date: Fri, 30 Sep 2022 21:59:31 +0800 Subject: [PATCH 2/5] Added a error message for missing splits file. --- main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/main.c b/main.c index 7151681..41230ac 100644 --- a/main.c +++ b/main.c @@ -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; } From 293f19e1fcfdd4bbe0674314a0f5447b065e1b9b Mon Sep 17 00:00:00 2001 From: SirObby <70753342+SirObby@users.noreply.github.com> Date: Fri, 30 Sep 2022 22:04:56 +0800 Subject: [PATCH 3/5] Documented Set up section for README --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index e1b89be..cff56be 100644 --- a/README.md +++ b/README.md @@ -73,3 +73,10 @@ 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 +- splits +- splitter +Both of which are documented in this readme section. The directory can also contain a config file. \ No newline at end of file From 00090738ad573d5819c467f738123ab82388394f Mon Sep 17 00:00:00 2001 From: SirObby <70753342+SirObby@users.noreply.github.com> Date: Fri, 30 Sep 2022 22:10:54 +0800 Subject: [PATCH 4/5] Describe how to get files. --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index cff56be..5661664 100644 --- a/README.md +++ b/README.md @@ -76,7 +76,10 @@ These can be given by running the following command as root: ## 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 +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 -Both of which are documented in this readme section. The directory can also contain a config file. \ No newline at end of file + +To create the splits file you can read the 'Usage' section of this Readme. +For the splitter file you can download the splitter from the releases page. +If you compiled adrift, your splitter file will be in ./splitters/sar_split, rename it to splitter and move it to the directory. \ No newline at end of file From 879962923a10b7c7c955b3b10108d1d978060977 Mon Sep 17 00:00:00 2001 From: SirObby <70753342+SirObby@users.noreply.github.com> Date: Fri, 30 Sep 2022 22:12:18 +0800 Subject: [PATCH 5/5] Described splitter better. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5661664..0121bdb 100644 --- a/README.md +++ b/README.md @@ -81,5 +81,5 @@ To set up adrift you need to create a configuration directory. The directory can - splitter To create the splits file you can read the 'Usage' section of this Readme. -For the splitter file you can download the splitter from the releases page. + If you compiled adrift, your splitter file will be in ./splitters/sar_split, rename it to splitter and move it to the directory. \ No newline at end of file