Ticket #581: bsysapi.patch
| File bsysapi.patch, 844 bytes (added by pulkomandy, 3 years ago) |
|---|
-
bsysapi.cpp
72 72 */ 73 73 bool BeAllegroApp::QuitRequested(void) 74 74 { 75 return false; 75 BApplication::QuitRequested(); 76 return main_thread_id == -1; 76 77 } 77 78 78 79 … … 128 129 using_custom_allegro_app = false; 129 130 130 131 term = getenv("TERM"); 131 if ( !strcmp(term, "dumb")) {132 if (term == NULL || !strcmp(term, "dumb")) { 132 133 /* The TERM environmental variable is set to "dumb" if the app was 133 134 * not started from a terminal. 134 135 */ … … 144 145 145 146 _be_allegro_app->Run(); 146 147 148 delete _be_allegro_app; 149 _be_allegro_app = NULL; 150 147 151 /* XXX commented out due to conflicting TRACE in Haiku 148 152 TRACE(PREFIX_I "system thread exited\n"); 149 153 */
