Commit 97707cc9 authored by Jack Jansen's avatar Jack Jansen

Added a "compile-time" flag PPC_ONLY, if set we make ppc-only applications...

Added a "compile-time" flag PPC_ONLY, if set we make ppc-only applications without posting the dialog. This is the normal situation since 1.6alfa (no more 68k support).
parent 930c2c3f
...@@ -34,6 +34,9 @@ GENFAT_BUTTON = 4 ...@@ -34,6 +34,9 @@ GENFAT_BUTTON = 4
GENPPC_BUTTON = 5 GENPPC_BUTTON = 5
GEN68K_BUTTON = 6 GEN68K_BUTTON = 6
# Define this if we cannot generate 68/fat binaries (Python 1.6)
PPC_ONLY=1
try: try:
Res.GetResource('DITL', DLG_ID) Res.GetResource('DITL', DLG_ID)
...@@ -108,6 +111,8 @@ class radio: ...@@ -108,6 +111,8 @@ class radio:
def interact(scriptname): def interact(scriptname):
if PPC_ONLY:
return 'pwpc'
d = Dlg.GetNewDialog(DLG_ID, -1) d = Dlg.GetNewDialog(DLG_ID, -1)
if not d: if not d:
print "Can't get DLOG resource with id =", DLG_ID print "Can't get DLOG resource with id =", DLG_ID
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment