mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[10150] Disableand exclude code use for gui promt from G3D
* It mostly useless becase we use console error reporting way for other cases * It have porblem with G3D_OSX based build Original patch provided by Imbecile.
This commit is contained in:
parent
0cb3a01833
commit
59871ac550
2 changed files with 11 additions and 2 deletions
|
|
@ -21,6 +21,7 @@
|
|||
# define _getch getchar
|
||||
#endif
|
||||
|
||||
#if 0 /* MANGOS exclude for disabled gui prompt */
|
||||
#ifdef G3D_OSX
|
||||
|
||||
/*#ifdef __LP64__
|
||||
|
|
@ -37,9 +38,11 @@
|
|||
*/
|
||||
|
||||
#endif
|
||||
#endif /* MANGOS exclude for disabled gui prompt */
|
||||
|
||||
namespace G3D {
|
||||
|
||||
#if 0 /* MANGOS exclude for disabled gui prompt */
|
||||
#ifdef G3D_WIN32
|
||||
|
||||
namespace _internal {
|
||||
|
|
@ -469,6 +472,7 @@ static int guiPrompt(
|
|||
}
|
||||
|
||||
#endif
|
||||
#endif /* MANGOS exclude for disabled gui prompt */
|
||||
|
||||
|
||||
/**
|
||||
|
|
@ -531,6 +535,8 @@ static int textPrompt(
|
|||
return c;
|
||||
}
|
||||
|
||||
#if 0 /* MANGOS exclude for disabled gui prompt */
|
||||
|
||||
#ifdef G3D_OSX
|
||||
|
||||
// See http://developer.apple.com/documentation/Carbon/Reference/Carbon_Event_Manager_Ref/index.html
|
||||
|
|
@ -689,13 +695,15 @@ static int guiPrompt
|
|||
|
||||
#endif
|
||||
|
||||
#endif /* MANGOS exclude for disabled gui prompt */
|
||||
|
||||
int prompt(
|
||||
const char* windowTitle,
|
||||
const char* prompt,
|
||||
const char** choice,
|
||||
int numChoices,
|
||||
bool useGui) {
|
||||
|
||||
#if 0 /* MANGOS: disable guid prompt at all platforms, MacOS case have build problems, other just useless */
|
||||
#ifdef G3D_WIN32
|
||||
if (useGui) {
|
||||
// Build the message box
|
||||
|
|
@ -709,6 +717,7 @@ int prompt(
|
|||
return guiPrompt(windowTitle, prompt, choice, numChoices);
|
||||
}
|
||||
#endif
|
||||
#endif /* MANGOS exclude for disabled gui prompt */
|
||||
return textPrompt(windowTitle, prompt, choice, numChoices);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "10149"
|
||||
#define REVISION_NR "10150"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue