src/video/dedicated_v.cpp
changeset 10201 4c181fbe8f2a
parent 10039 1f236afd6cd1
child 10207 c291a21b304e
equal deleted inserted replaced
10200:23946c066035 10201:4c181fbe8f2a
   224 
   224 
   225 #if defined(UNIX) || defined(__OS2__) || defined(PSP)
   225 #if defined(UNIX) || defined(__OS2__) || defined(PSP)
   226 	if (fgets(input_line, lengthof(input_line), stdin) == NULL) return;
   226 	if (fgets(input_line, lengthof(input_line), stdin) == NULL) return;
   227 #else
   227 #else
   228 	/* Handle console input, and singal console thread, it can accept input again */
   228 	/* Handle console input, and singal console thread, it can accept input again */
   229 	strncpy(input_line, _win_console_thread_buffer, lengthof(input_line));
   229 	assert_compile(lengthof(_win_console_thread_buffer) <= lengthof(input_line));
       
   230 	strcpy(input_line, _win_console_thread_buffer);
   230 	SetEvent(_hWaitForInputHandling);
   231 	SetEvent(_hWaitForInputHandling);
   231 #endif
   232 #endif
   232 
   233 
   233 	/* strtok() does not 'forget' \r\n if the string starts with it,
   234 	/* strtok() does not 'forget' \r\n if the string starts with it,
   234 	 * so we have to manually remove that! */
   235 	 * so we have to manually remove that! */