Skip to content

Commit afbd973

Browse files
authored
Unconditionaly call calcInit()
when a vbak programm exited the vbak would not be updated with the vram contents and on yal exit the old (aka program) contents of vbak would get copied to vram
1 parent aa600c4 commit afbd973

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/loaders/elf/loading.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,7 @@ int ELFLoader::execute() {
8888
calcExit();
8989
auto ret = reinterpret_cast<int (*)(int argc, char **argv, char **envp)>(
9090
ehdr->e_entry)(sizeof(argv) / sizeof(*argv), argv, environ);
91-
if (!in_vbak)
92-
calcInit();
91+
calcInit();
9392

9493
return ret;
9594
}

0 commit comments

Comments
 (0)