Any help would be appreciated. I am doing stack traces on various points but this all seems pretty overwhelming to me so I thought I would reach out.
Also, thank you for making this project it is quite impressive to me.
Just to be clear writing/reading would be done after wine has been fully loaded
I'm not sure what you are trying to do. Are you trying to modify/add/remove files that Wine or the app uses while it is running?
If you are editing a file while the file is not open, that might work. But add/remove file while running will cause trouble because Boxedwine caches the file system entries in memory, so it knows which files are in which directory and won't query those directories again.
But it is fine to change the file system before launching Boxedwine. You can also modify the file system zip for permanent changes.
Hello, thanks for the reply and I am sorry for not being clear. Yes I am trying to modify files while Wine is running.
So you are saying a way around it would be just to create dumby files at boot then write to them, given the system is not accessing these files while conducting a write?
Thank you so much for the help I really appreciate it.
Yes, that could work, as long as the program doesn't need to see the size/date time change happen in real time. If the program just periodically opens the file to re-read the contents, it should work.
Yes that is exactly the functionality I need. What API would I use to achieve this? Do I need to use the BrowserFS object?
If you finish your project and its public, feel free to post a link here, I'm always curious how people might use this project.
I was also playing with the local storage option, and noticed that newly created files were added to local storage. Would it be possible to simply create a file in wine then just modify it through local storage? The problem is I don't really understand how to interpret any meta data you attached. When I try to modify the contents it seems to crash the program, maybe I can just hack an interface together doing that?
Thanks so much anyways. If this challenge doesn't defeat me I of course will post a link.
Just wanted to update that I got it working by decoding local storage data and modifying the Metadata, along with the file.
Boxedwine already includes functionality to add (upload & drag and drop) as well as get files from JS.
To use set:
Config.showUploadDownload = true;
DEFAULT_AUTO_RUN = false;
After adding files, click start button to launch.
The files are added to d:/
Files can be added using either the emscripten FS object or BrowserFS API.
Have a look at the createFile(), createFolder() functions. If you find something is missing or not working, I should be able to assist.
You can also use the app and overlay url parameters and even send a zip file dynamically to boxedwine as a base64 encoded string via app-payload and/or overlay-payload. See buildFlags.txt for instructions.