[gcommon decomp] compiler and decompiler fixes (#239)

* wip

* decompile file-io

* a

* fix
This commit is contained in:
water111
2021-02-07 18:21:00 -05:00
committed by GitHub
parent f8b63a3f92
commit e01e065170
31 changed files with 925 additions and 164 deletions
+2 -1
View File
@@ -425,7 +425,8 @@ u64 kopen(u64 fs, u64 name, u64 mode) {
file_stream->flags = 0;
printf("****** CALL TO kopen() ******\n");
char buffer[128];
sprintf(buffer, "host:%s", Ptr<String>(name)->data());
// sprintf(buffer, "host:%s", Ptr<String>(name)->data());
sprintf(buffer, "%s", Ptr<String>(name)->data());
if (!strcmp(info(Ptr<Symbol>(mode))->str->data(), "read")) {
file_stream->file = sceOpen(buffer, SCE_RDONLY);
} else {