-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add Commodity, Tools menu, vbcc support #5
base: main
Are you sure you want to change the base?
Conversation
Fixes: Missing includes Missing OpenLibrarys Wrong types (mostly BPTR=NULL changed to 0) Bug in UnlockPubScreen Added makefile for vbcc The semicolon at the start of main.c needs to be removed for the makefile to work.
This adds an "Eject ADF" item to the Workbench Tools menu. With any number of disk icons selected, choosing Eject ADF will attempt to eject them.
Check name is '' before searching list
Attach CX Hide/Show to the same functions (but without AppIcon/AppMenu so it is hidden rather than iconified)
Note: CX_POPKEY not implemented Also react correctly to CXCMD_UNIQUE
Menu items opening requesters should end with ellipsis
Nice, but it no longer compiles with SAS |
I don't have SAS/C so couldn't test it. Some error messages would help? |
|
I'm going to ignore the warnings as they may well have been there before - I had lots with vbcc too and didn't look at fixing them (except in the cases where the code didn't work after compilation).
Appears I added that line - SAS must define it internally. Probably needs
No clue - that isn't even something I've added. Maybe rename
That's an easy one! That line needs moving up two lines to the top of the function. |
enum { }; is missing ; at the end, that fixes a lot of issues ;-) but then the problem comes from all added BASEDEF Error 510: _IconBase symbol - Near Reference to data item not in near data section Commenting them out builds the code, but the executable does not work |
Also wondering what version of reaction.lib you use to build under VBCC, I made a setup for it, but it gives errors with 1.0, 1.5 and 47.3 |
vbcc 0.906 (0.9f?) according to various files in that directory. reaction.lib is from 2007 (20484 bytes) - I assume this came with it as this is the first time I've needed it. I've fixed the semicolon and the declaration in the wrong place.
Hmm, not sure. Is it to do with |
Interesting, you should make that special lib available, I can't find a VBCC compatible version of it, old/new ones are only for SAS. |
Here you go: reaction.lib.zip |
Well, this finally links under VBCC, but has the same issue as original, too many enforcer hits due to incorrect initialization of listbrowser, almost endless loop of hits
|
Ohh... the REFRESH button in the GUI crashes the machine instantly. to reproduce: |
To make the GUI a little bit nicer, I would remover the outer group bevel and maybe add a little spacer below the buttons so they do not touch the border when spacing is set below 4. |
Load and create windows GUI needs revising, they probably should not allow vertical stretching, it just looks bad when spaced out and some elements stretched vertically. |
That's probably the same as the other listbrowser issue (which I didn't touch, but I noticed the program crashes immediately under OS4 so figured there were some bugs with initialisation other than the one I fixed). The refresh button basically wipes out the listbrowser and recreates it. Also... you do realise I didn't write this? 😀 Probably best to raise issues separately for the other problems (or do your own PR). |
I understand, let's hope it will be picked up and finished properly and none hacky way. So extra details and fixes required
since list is not initialized at all, could have two side-effects. In main.c/createADFList() there's a free(buffer) call which should be removed
|
I fixed this one in my fork already - I think it crashed here after I'd built it with vbcc. |
Sorry but SAS/C does not compile your edited/added lines. |
With 3.2.1 update, added an "Eject ADF" item to the tools menu (highlight mounted disk and eject from WB) |
I think that if you are coding with reaction library, SAS/C is good/stable solution. |
It would be better not to use it to begin with. Reaction GUI application do not require the reaction.lib link library. eg. 3.2 ShowConfig is an example and it uses all the same classes and function as this tool. |
It would compile if you comment out some of BASEDEF() at start of file, but this is not the main problem, which ever branch you take and which compiler is used the code produces is of poor quality and can not work reliably since it trashes memory due to improper initialization and clearing of the list. |
You're are right. for Load/Change and Create ADF Window, They have horizontal resize only but not vertical. |
OS 3.2 includes ReAction preferences and OS3.2 CD includes c source codes/samples to compile with reaction lib. But NDK3.2 does not include reaction lib/src. It has only header files. |
What does reaction.lib do other than open the classes automatically? |
So I use reaction.lib |
That didn't answer the question. I know you use it, I was wondering if it did anything other than opening the classes, as if not it can be easily avoided. |
Following classes/gadgets are openning by reaction. window.class |
OK, so we could open those manually (the ones you use) and not need reaction.lib? |
so something like this
|
I missed this when it was released, but vbcc 0.9h contains reaction.lib:
|
I believe it is reimplementation of the lib based on OS 3.2 project and NDK |
This PR allows DAControlGUI to be built with vbcc.
It also;
Note CX_POPKEY is not implemented - it probably should be.
Note closing the main window still quits the app, maybe it should just hide the window now?
Supercedes #3 #4 - I've merged everything into the same pull request as some later changes were inseparable from earlier ones.