Skip to content

Instantly share code, notes, and snippets.

@saidelike
Created February 17, 2022 15:24
Show Gist options
  • Save saidelike/df6d918521250ab617b0918bfde91ef1 to your computer and use it in GitHub Desktop.
Save saidelike/df6d918521250ab617b0918bfde91ef1 to your computer and use it in GitHub Desktop.
unsigned int __fastcall pjl_handle_ldlwelcomescreen_internal(const char *filename)
{
// [COLLAPSED LOCAL DECLARATIONS. PRESS KEYPAD CTRL-"+" TO EXPAND]
if ( !filename )
return 0xFFFFFFFF;
fd = open(filename, 0xC1, 0777); // open(filename,O_WRONLY|O_CREAT|O_EXCL, 0777)
if ( fd == 0xFFFFFFFF )
return 0xFFFFFFFF;
ret = pjl_ldwelcomescreen_internal2(0, 1, pjl_getc_, write_to_file_, &fd);// goes here
if ( !ret && pjl_unk_function && pjl_unk_function(filename) )
pjl_process_ustatus_device_(20001);
close(fd);
remove(filename);
return ret;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment