from pathlib import Path p=Path(r'C:\Users\wolff\Documents\SDKVita\YouTubeVita\experiments\cobalt\vita\evergreen_inspect.c') s=p.read_text() a=' log_msg(message);\n check(read_ok && pos==length,"complete 33 MB Cobalt ELF read in Vita3K");' b=' log_msg(message);\n stream_hash=checksum;\n check(read_ok && pos==length,"complete 33 MB Cobalt ELF read in Vita3K");' assert a in s s=s.replace(a,b) a=''' check(read_ok&&copied==length && memcmp(base,ELFMAG,SELFMAG)==0 && ((uint8_t*)base)[length-1]!=0xFF, "complete official ELF copied to contiguous Vita memory");''' b=''' uint32_t copy_hash=0; for(int64_t i=0;i