Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A2CLOUD: have ADTPro notice changes to disk image #11

Open
knghtbrd opened this issue Oct 26, 2015 · 1 comment
Open

A2CLOUD: have ADTPro notice changes to disk image #11

knghtbrd opened this issue Oct 26, 2015 · 1 comment
Labels

Comments

@knghtbrd
Copy link
Member

From @IvanExpert on October 25, 2015 21:51

For speed, ADTPro now loads the disk image of a virtual disk into RAM rather than access the disk file each time out, and then flushes on writes (or might even do live writes as it used to do live reads). This causes issues if the disk image is modified outside of ADTPro. ADTPro should have a way of recognizing changes to the disk image it has in RAM. This is really an ADTPro issue, and has been submitted there:
http://sourceforge.net/p/adtpro/feature-requests/10/

Copied from original issue: RasppleII/a2server#19

@knghtbrd knghtbrd added the bug label Oct 26, 2015
@knghtbrd
Copy link
Member Author

It's really hard to do this in Java. If we ever were to replace the ADTPro server with something Linux-specific (at least when built for Linux) this is easily done. But the best thing you can do in Java generally is to reread the whole file periodically to look for differences or keep reading the directory to see if the file's mod time changes. That's a pain in the butt for sure!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant