~mjmendoza/quixie/trunk

« back to all changes in this revision

Viewing changes to src/core/kse_Main.cpp

  • Committer: creek23
  • Date: 2018-06-24 21:04:24 UTC
  • Revision ID: svn-v4:5d579d6f-57a3-4165-9b1e-6dacaf8da75a:quixie:686
* separated trigger of Main on a thread
* added kse_gui.cpp for main screen
* fixed RGBA_R/G/B/A
* fixed unsigned long issue with ProcessScript_Statement_Define
* implemented a thread safe (pseudo) MessageBox
* initialized variables to avoid random script-parsing problem (somehow)
* "Common Gateway Interface"-related changes; didn't actually resumed work on this
* added gtk_main_quit on Engine_Exit
* implemented chrono sleep
* updated LICENSE info; still hoping for site's come-back :(

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
                //kse_String_Equation->SynQuotes is causing a bug with string value of
56
56
                //      "hello \"there\"!"
57
57
                //caused by the line: (bKONSoLE_Reading || bREAD_ESCAPE_CHARS)
58
 
                //That is why I//m setting 
 
58
                //That is why I'm setting 
59
59
                        bREAD_ESCAPE_CHARS = true;
60
60
                        
61
61
                ProcessScript_CheckSyntax();  //-- to be fully implemented once KonsolScript is stable
66
66
        #ifndef QUIXIE_CGI
67
67
                Engine_ScreenShow();                                                    //engine now defaults to showing the screen
68
68
        #endif
69
 
                
 
69
        
70
70
        Engine_Run();
71
71
        
72
72
        if (LCase(Right(sStartScript, 3)) == ".kh") { Engine_CompileHeader(); }
864
864
                if (sleepintvl > 1) {
865
865
                        //sleep(sleepintvl, 1);
866
866
                        #ifdef WIN32
867
 
                                Sleep(sleepintvl);
 
867
                                //Sleep(sleepintvl);
 
868
                                std::this_thread::sleep_for(std::chrono::milliseconds(sleepintvl));
868
869
                        #else
869
870
                                usleep(sleepintvl* 1000);
870
871
                        #endif // win32
871
872
                } else {
872
873
                        #ifdef WIN32
873
 
                                Sleep(1);
 
874
                                //Sleep(1);
 
875
                                std::this_thread::sleep_for(std::chrono::milliseconds(1));
874
876
                        #else
875
877
                                usleep(1* 1000);
876
878
                        #endif // win32