Small Changes
This commit is contained in:
parent
82b9edcefc
commit
a78b35ecd0
@ -22,6 +22,11 @@ static int ends_with(const char *s, const char *t) {
|
||||
#define MODS_FOLDER "./mods/"
|
||||
|
||||
static void set_and_print_env(char *name, char *value) {
|
||||
int length = strlen(value);
|
||||
if (value[length - 1] == ':') {
|
||||
value[length - 1] = '\0';
|
||||
}
|
||||
|
||||
fprintf(stderr, "Set %s = %s\n", name, value);
|
||||
setenv(name, value, 1);
|
||||
}
|
||||
|
@ -8,3 +8,5 @@ services:
|
||||
- '~/.minecraft-pi:/root/.minecraft'
|
||||
environment:
|
||||
- 'DISPLAY=unix${DISPLAY}'
|
||||
ports:
|
||||
- "4711:4711/tcp"
|
||||
|
@ -3,6 +3,4 @@
|
||||
__attribute__((constructor)) static void init() {
|
||||
unsigned char patch_data[4] = {0x01, 0x00, 0x50, 0xe3};
|
||||
patch((void *) 0x292fc, patch_data);
|
||||
//unsigned char patch_data_2[4] = {0x00, 0x30, 0xa0, 0xe3};
|
||||
//patch((void *) 0x3d9b8, patch_data_2);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user