Skip to content

Commit

Permalink
hopslide replaces nopslide
Browse files Browse the repository at this point in the history
Every branch in the hopslide lands in the same spot right before mini b9s installer. this should be more reliable.
  • Loading branch information
zoogie committed Aug 9, 2023
1 parent abcc1c9 commit 4150eeb
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 22 deletions.
32 changes: 14 additions & 18 deletions build.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
import os,sys,struct

data=struct.pack("<I", 0xe1a0600f)*(0xe0000//4)
temp=b"var i=0/*aaa" + data + b"*/"

with open("lenny.js","wb") as f:
f.write(temp)

size=0xfbe00
data=[]
jump=0xea000000+(size//4)
movR6PC=0xe1a0600f
for i in range(0, size, 4):
data.append(struct.pack("<I", jump))
jump-=1
data=b''.join(data)
data+=struct.pack("<I", movR6PC)*8
with open("mini_b9s_installer/mini_b9s_installer.bin","rb") as f:
#with open("3ds_ropkit2/ropkit.bin","rb") as f:
b9s=f.read()
b9s=f.read()+(b"\x00"*0x1000)
data+=b9s
temp=b"var i=0/*aaa" + data + b"*/var x=2"

mlen=len(temp)
b9slen=len(b9s)

target=(mlen-b9slen-0x20) & 0xfffffffc

with open("lenny.js","rb+") as f:
for i in range(0x10000,0xe0000-1,0x20000):
f.seek(i)
f.write(b9s)
with open("lenny.js","wb") as f:
f.write(temp)
11 changes: 7 additions & 4 deletions old.html → index.html
Original file line number Diff line number Diff line change
@@ -1,21 +1,24 @@
<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
<title>Page Title</title>
<title>MSET9</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="stylesheet" href="">
<style>
</style>
<script src="lenny.js"></script>
<body>

<!--<img src="img_la.jpg" alt="LA" style="width:100%">-->

<div class="">
<h1>This is a Heading</h1>
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
<p>This is Lenny.</p>
<p>This is Lenny.</p>
<p>This is Lenny.</p>
<p>This is Lenny.</p>
<p>This is Lenny.</p>
<p>This is a paragraph.</p>
<h1>This is a Heading</h1>
</div>

</body>
Expand Down
Binary file modified lenny.js
Binary file not shown.

0 comments on commit 4150eeb

Please sign in to comment.