Skip to content
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
Expand Up @@ -9,7 +9,7 @@ endif

ELF := byepervisor.elf

CFLAGS := -std=c++11 -Wall -Werror -g -I./include -DHEN_BIN_PATH="\"hen/hen.bin\""
CFLAGS := -std=c++11 -Wall -Werror -g -I./include -DHEN_BIN_PATH="\"hen/hen.bin\"" -lSceSystemService

all: $(ELF)

Expand Down
8 changes: 5 additions & 3 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ extern "C"
int sceKernelSleep(int secs);
int sceKernelLoadStartModule(char *name, size_t argc, const void *argv, uint32_t flags, void *unk, int *res);
int __sys_is_development_mode();
int sceSystemStateMgrEnterStandby(void);
}

void dump_kernel_to_client(int client)
Expand Down Expand Up @@ -133,9 +134,10 @@ int main()
if (kernel_read4(kdlsym(KERNEL_SYM_DATA_CAVE)) != 0x1337) {
// Notify the user that they have to suspend/resume their console
SOCK_LOG("[+] System needs to be suspended and resumed...\n");
flash_notification("Byepervisor\nEnter rest mode & resume");
flash_notification("Entering rest mode for Byepervisor in 3 secs");
kernel_write4(kdlsym(KERNEL_SYM_DATA_CAVE), 0x1337);

sleep(3);
sceSystemStateMgrEnterStandby();
return 0;
}

Expand Down Expand Up @@ -181,4 +183,4 @@ int main()
// run_dump_server(9003);
reset_mirrors();
return 0;
}
}