elif game.find('.gmk')!= -1 or game.find('.gmd')!= -1 or game.find('.gm6')!= -1: #already a gm source file gmfiles.append(startingDir+"/"+game) else: print "ERROR: Not a game maker file!" continue except Exception, exception: print "ERROR: 64Digits probably down: " +str(exception) continue; multiple_files=len(gmfiles) if multiple_files >0: for gmfile in gmfiles: output=ConvertingEnigma.convert(gmfile) ConvertingEnigma.get_specific_errors(output) else: print "No game maker files in this example!"; continue converttime=(time.time() - game_start_time) htmlgamename = "<a href=\"http://64digits.com/games/"+sitelink+"\">"+name+"</a>" ConvertingEnigma.post_data_to_mysql(c,str(id),name,htmlgamename,db_table,str(converttime)) compile_succesful=ConvertingEnigma.Compile_Succesful #used later on to check if its worth compiling to other platform ConvertingEnigma.reset_globals() #now windows: if g_compileForWindows and compile_succesful == 1: winoutput=compile_mingw() #compiles last game to windows (may want to remove) print "=== WINDOWS OUTPUT ===" print winoutput[-250:] print "= END WINDOWS OUTPUT =" windowstime=(time.time() - game_start_time)-converttime ConvertingEnigma.get_specific_errors(winoutput)