sample programs updated for new GEOS exit/return/MainLoop policy
git-svn-id: svn://svn.cc65.org/cc65/trunk@1899 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -5,8 +5,8 @@
|
|||||||
|
|
||||||
using DlgBoxFileSelect
|
using DlgBoxFileSelect
|
||||||
|
|
||||||
Maciej 'YTM/Alliance' Witkowiak
|
Maciej 'YTM/Elysium' Witkowiak
|
||||||
<ytm@friko.onet.pl>
|
<ytm@elysium.pl>
|
||||||
|
|
||||||
26.12.1999
|
26.12.1999
|
||||||
*/
|
*/
|
||||||
@@ -24,5 +24,4 @@ void main (void)
|
|||||||
DlgBoxFileSelect("",APPLICATION,fName);
|
DlgBoxFileSelect("",APPLICATION,fName);
|
||||||
DlgBoxOk("You've chosen:" CBOLDON, fName);
|
DlgBoxOk("You've chosen:" CBOLDON, fName);
|
||||||
|
|
||||||
EnterDeskTop();
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -55,6 +55,4 @@ char ch;
|
|||||||
|
|
||||||
DlgBoxOk("Bye,", "Bye.");
|
DlgBoxOk("Bye,", "Bye.");
|
||||||
|
|
||||||
EnterDeskTop();
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,8 +5,8 @@
|
|||||||
|
|
||||||
Hello, world example - with DBox
|
Hello, world example - with DBox
|
||||||
|
|
||||||
Maciej 'YTM/Alliance' Witkowiak
|
Maciej 'YTM/Elysium' Witkowiak
|
||||||
<ytm@friko.onet.pl>
|
<ytm@elysium.pl>
|
||||||
|
|
||||||
26.12.1999
|
26.12.1999
|
||||||
*/
|
*/
|
||||||
@@ -24,6 +24,12 @@ void main (void)
|
|||||||
/* Normal apps exit from main into system's mainloop, and app finish
|
/* Normal apps exit from main into system's mainloop, and app finish
|
||||||
when user selects it from icons or menu, but here we want to exit
|
when user selects it from icons or menu, but here we want to exit
|
||||||
immediately.
|
immediately.
|
||||||
|
So instead:
|
||||||
|
MainLoop();
|
||||||
|
we can do:
|
||||||
|
(nothing as this is the end of main function)
|
||||||
|
exit(0);
|
||||||
|
return;
|
||||||
*/
|
*/
|
||||||
EnterDeskTop();
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -45,6 +45,12 @@ void main (void)
|
|||||||
/* Normal apps exit from main into system's mainloop, and app finish
|
/* Normal apps exit from main into system's mainloop, and app finish
|
||||||
when user selects it from icons or menu, but here we want to exit
|
when user selects it from icons or menu, but here we want to exit
|
||||||
immediately.
|
immediately.
|
||||||
|
So instead:
|
||||||
|
MainLoop();
|
||||||
|
we can do:
|
||||||
|
(nothing as this is the end of main function)
|
||||||
|
exit(0);
|
||||||
|
return;
|
||||||
*/
|
*/
|
||||||
EnterDeskTop();
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,8 +6,8 @@
|
|||||||
This small application removes GEOS disk write protection tag.
|
This small application removes GEOS disk write protection tag.
|
||||||
e.g. boot disk is always protected after boot-up
|
e.g. boot disk is always protected after boot-up
|
||||||
|
|
||||||
Maciej 'YTM/Alliance' Witkowiak
|
Maciej 'YTM/Elysium' Witkowiak
|
||||||
<ytm@friko.onet.pl>
|
<ytm@elysium.pl>
|
||||||
|
|
||||||
21.03.2000
|
21.03.2000
|
||||||
*/
|
*/
|
||||||
@@ -81,7 +81,7 @@ void main(void)
|
|||||||
GetPtrCurDkNm(diskName);
|
GetPtrCurDkNm(diskName);
|
||||||
break;
|
break;
|
||||||
default: /* CANCEL is the third option */
|
default: /* CANCEL is the third option */
|
||||||
EnterDeskTop();
|
return;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,8 +5,8 @@
|
|||||||
|
|
||||||
example of using DlgBoxYesNo, DlgBoxOkCancel and DlgBoxOk functions
|
example of using DlgBoxYesNo, DlgBoxOkCancel and DlgBoxOk functions
|
||||||
|
|
||||||
Maciej 'YTM/Alliance' Witkowiak
|
Maciej 'YTM/Elysium' Witkowiak
|
||||||
<ytm@friko.onet.pl>
|
<ytm@elysium.pl>
|
||||||
|
|
||||||
26.12.1999
|
26.12.1999
|
||||||
*/
|
*/
|
||||||
@@ -23,5 +23,4 @@ void main(void)
|
|||||||
};
|
};
|
||||||
} while (DlgBoxOkCancel("Do you want to try again?", "") == OK);
|
} while (DlgBoxOkCancel("Do you want to try again?", "") == OK);
|
||||||
|
|
||||||
EnterDeskTop();
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user