RehabMan
Moderator
- Joined
- May 2, 2012
- Messages
- 181,006
- Motherboard
- Intel DH67BL
- CPU
- i7-2600K
- Graphics
- HD 3000
- Mac
- Mobile Phone
If you open a draft, it should be force-autosaving a temp file periodically so long as iASL actually allows it; one thing I learned while fully implementing autosave was that even forcing iASL doesnt guarantee an output file, several checks were necessary. This is one reason why users may prefer the DSL format until theyre finished; in fact it's the default file type. But you've touched on something I didn't mention in the Easy IOReg thread, which is that basically any decompiling IDE will never give you the original file to work with, the copy of iASL you use to open it will alter what was originally intended. Only extracting the original data object and placing it in /Extra first before editing will give you the "true" history, and I could technically add such a feature, though it would break the general promise of untitled/draft documents.
--edit
pushed the commits, press Opt/Alt to presave a table, and the colorize default.
I'm not talking about a draft (I don't think so anyway...).
Here is a step-by-step repro for the "autosaved/can't revert bug..."
(I'm going from memory here)
- Download the 4530s DSDT patches/raw DSDT archive from: https://github.com/RehabMan/HP-ProBook-4x30s-DSDT-Patch/archive/master.zip
- Extract it
- Open dsdt4530s/dsdt_f40_hd3k.aml
- Apply patch 01_Compilation.txt
- Allow time (?) for autosave to happen
(At this point dsdt_f40_hd3k.aml has changed, as it has been patched enough to be compiled. It is now different from the original file you opened. If this was in a git repo you would see that it is a modified file)
- Try to use File -> Revert to revert to last opened (the original binary AML which when decompiled->compiled results in errors)
Bug: You cannot revert. And the file has been changed via autosave and there is no way to go back. MaciASL is trying to revert by compiling the text from the decompile instead of just restoring the binary that was opened.