mirror of
https://github.com/open-goal/jak-project
synced 2026-08-21 23:00:45 -04:00
[gcommon decomp] compiler and decompiler fixes (#239)
* wip * decompile file-io * a * fix
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user