Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal
  • 0
Sign in to follow this  
Snakybo

Force reload of hard disk content

Question

Is there a way to 'force' a reload of a hard disk, after you modify the files externally? It's quite a pain to remove and reinsert the disk drive each time I want to test a small change.

Share this post


Link to post
Share on other sites

6 answers to this question

Recommended Posts

  • 0

Yeah, I've tried that a few months ago. It created some issues, although I don't remember what exactly.

 

Any way to do it without disabling the disk buffering?

Share this post


Link to post
Share on other sites
  • 0

There were some reported issues in unbuffered mode, but those should be ironed out in the latest version.

Please give it a try and report any issues you have with that!

Share this post


Link to post
Share on other sites
  • 0

I don't know if you still need help, but what I've been doing is:

1. Turn off the computer.

2. Take out the hard drive.

3. Close then reopen the computer interface.

4. Put back in the hard drive.

5. Turn on the computer.

Share this post


Link to post
Share on other sites
  • 0

I can confirm that at least since 1.2.3, the unbuffered config setting works exactly as advertised. The only case where updating files doesn't seem to have effect immediately is with libs, which are buffered not by the mod but by the package api. A reboot will reload all libs, or you can add this to the top of the program you're testing the lib with to force the api to reload each time:

--discard the loaded version
package.loaded["mylib"]=nil
--require will now search for and reload it
mylib=require("mylib")
:edit: note that if loading the API sets up event listeners, like several of the built-in OS libraries do, then you should just reboot, as you'll end up with multiple versions of the lib actively in memory and running, which can cause all manner of undesired side-effects.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.