Changeset 9 for trunk/src/Lineo.cpp
- Timestamp:
- 03.06.2008 01:24:53 (4 years ago)
- Files:
-
- 1 modified
-
trunk/src/Lineo.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/Lineo.cpp
r8 r9 415 415 #endif // ---------------------------------------------------------------------- 416 416 case EVENT_CREATE_VUE_HOW_TO_PLAY:{ 417 #ifdef __unix418 string fichier=(string)(DATA_PATH) + "aide/comment_jouer_"+Langue::getInstance()->get("iso")+".html &";419 string commande="/usr/bin/sensible-browser "; //fonctionne pour les systÚmes Debian420 if (system((commande+fichier).c_str())== 0) break;421 commande="/usr/bin/firefox "; //devrait fonctionner pour plein d'autres.422 if (system((commande+fichier).c_str())== 0) break;423 printf("default browser not found\n"); //il faut trouver autre chose424 #endif425 #ifdef __WIN32417 #ifdef __unix 418 string fichier=(string)(DATA_PATH) + "aide/comment_jouer_"+Langue::getInstance()->get("iso")+".html &"; 419 string commande="/usr/bin/sensible-browser "; //fonctionne pour les systÚmes Debian 420 if (system((commande+fichier).c_str())== 0) break; 421 commande="/usr/bin/firefox "; //devrait fonctionner pour plein d'autres. 422 if (system((commande+fichier).c_str())== 0) break; 423 printf("default browser not found\n"); //il faut trouver autre chose 424 #endif 425 #ifdef __WIN32 426 426 string fichier=".\\datas\\aide\\comment_jouer_"+Langue::getInstance()->get("iso")+".html"; 427 427 ShellExecute(NULL, // Handle de la fenêtre parent … … 517 517 // plutÃŽt que de quitter brutallement on fait comme si on avait 518 518 // appuyé sur le bouton quitter du menu principal 519 // Mais on vérifie qu'on soit pas déjà dans les crédit ou sur le 520 // dernier écran 519 // Mais on vérifie qu'on ne soit pas déjà sur le dernier écran 521 520 if(_VueActive==VUE_GENERIQUE_FIN){ 522 521 Events::getInstance()->addEvent(EVENT_QUITTER); 523 522 // on joue un simple clic 524 523 Sample::getInstance()->play(SAMPLE_MENU_CLICK); 525 }else if(_VueActive==VUE_CREDITS){524 }else{ 526 525 Events::getInstance()->addEvent(EVENT_CREATE_VUE_GENERIQUE_FIN); 527 // on joue un simple clic528 Sample::getInstance()->play(SAMPLE_MENU_CLICK);529 }else{530 static Uint16 event_retour=EVENT_CREATE_VUE_GENERIQUE_FIN;531 Events::getInstance()->addEvent(EVENT_CREATE_VUE_CREDITS,&event_retour);532 526 // on joue un son pour dire qu'on quitte... 533 527 Sample::getInstance()->play(SAMPLE_MENU_6);
