Closed bluewave41 closed 10 months ago
Hey, do yourself a favor and use typescript, you could quickly see the apis.
The line that actually does something is:
this.field<Il2Cpp.String>("PersistentDataPath").value = Il2Cpp.string("/sdcard/Android/data/com.a.b/files")
However, for some reason I cannot recall now (I should investigate), it won't work.
You could do this instead:
this.field<Il2Cpp.String>("PersistentDataPath").value.content = "/sdcard/Android/data/com.a.b/files";
Keep in mind overwriting the content of a string is an unsafe operation (#332)
I confirm it's a bug on my end. Thanks for reporting!
In the meantime, you can do:
Il2Cpp.api.fieldSetStaticValue(this.field<Il2Cpp.String>("PersistentDataPath"), Il2Cpp.string("hello"));
Hey, do yourself a favor and use typescript, you could quickly see the apis.
Haha, I do this is just quick proof of concept thing so I half ass it together. :)
This APK was never meant to run on phones so I have a convoluted script setup to even get it working somewhat which makes it a pain to share.
So there's a class
I need to change the PersistentDataPath so I've done the following.
This prints out
I'm using the latest version, 0.8.8. I'm unsure what it's doing here as I've used this same approach in other projects and it worked fine there.