Saving and loading settings now working
It seems I misunderstanding something on how some function works because if I call
To:
Code: Select all
VOID ch_blitter(P(BOOLEAN) set)
PP(BOOLEAN set;)
{
int32_t data;
int16_t temp;
/* Handle BitBlt */
if ((temp = Blitmode(-1)) & 0x2) /* Check if Blitter is present */
{
Blitmode(cbit_save ? 1 : 0);
/* Update BITBLT menu item */
menu_addr[BITBLT].ob_state &= ~DISABLED; /* Enable menu item */
if (cbit_save)
menu_addr[BITBLT].ob_state |= CHECKED;
else
menu_addr[BITBLT].ob_state &= ~CHECKED;
} else {
/* Disable BITBLT menu item if Blitter not present */
menu_addr[BITBLT].ob_state |= DISABLED;
}
}
Id assume SET gets the variable passed with ch_blitter(cbit_save) but it seems not.. So I avoided using SET and just "hardwired" cbit_save into the function and it seems to all work now!
I see my confusion before , blitter is saved in byte 1 and cache in byte 4. So I need to get rid of my bit 5 thing really now and it *should* more more compatible with original 206 newdesk.inf then...... Actually nope, oddly cdele_save is used in the first byte and overlaps with the blitter flags.. im just going to keep them seperate cos it doesn't make sense to me. Seems like 2 variables are using the same bit in the first byte somehow
So should I now call it EXXOSDESK.INF ?!
