This doesn't have to do with coding--well, kinda--but no one is clear about if such a question is against the rules. It is Computercraft related though!
I wanted to know how the computercraft mod implements it's virtual filesystem. (e.g.: the /rom mount)
This is something I've been investigating for quite a long time but no one seems to have an answer!
Thanks again.
Filesystems
Started by tenshae, Oct 15 2014 08:00 PM
6 replies to this topic
#1
Posted 15 October 2014 - 08:00 PM
#2
Posted 15 October 2014 - 10:41 PM
I think that's done java-side. However, the lua docs are available if you want to look through them: https://github.com/a...mputercraftLua.
#3
Posted 15 October 2014 - 11:48 PM
KingofGamesYami, on 15 October 2014 - 10:41 PM, said:
I think that's done java-side. However, the lua docs are available if you want to look through them: https://github.com/a...mputercraftLua.
#4
Posted 16 October 2014 - 01:28 AM
Computer Craft's file system is just your actual computer's file system. If your looking for the Java class that's used to access the real computer's file system, I believe you're looking for java.io.File
#5
Posted 16 October 2014 - 01:51 AM
natedogith1, on 16 October 2014 - 01:28 AM, said:
Computer Craft's file system is just your actual computer's file system. If your looking for the Java class that's used to access the real computer's file system, I believe you're looking for java.io.File
#6
Posted 16 October 2014 - 02:03 AM
So, you want the actual java code they use to mount the /rom? In that case, I have no idea, I don't know Java. (yet)
#7
Posted 16 October 2014 - 02:09 AM
Take a look at the API for CC. There's an interface called IMount. An addon can create virtual mounts like /rom using IMount.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











