/[pcsx2_0.9.7]/trunk/plugins/spu2-x/src/Linux/Dialogs.cpp
ViewVC logotype

Contents of /trunk/plugins/spu2-x/src/Linux/Dialogs.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 62 - (show annotations) (download)
Tue Sep 7 11:08:22 2010 UTC (9 years, 9 months ago) by william
File size: 2153 byte(s)
Auto Commited Import of: pcsx2-0.9.7-r3738-debug in ./trunk
1 /* SPU2-X, A plugin for Emulating the Sound Processing Unit of the Playstation 2
2 * Developed and maintained by the Pcsx2 Development Team.
3 *
4 * Original portions from SPU2ghz are (c) 2008 by David Quintana [gigaherz]
5 *
6 * SPU2-X is free software: you can redistribute it and/or modify it under the terms
7 * of the GNU Lesser General Public License as published by the Free Software Found-
8 * ation, either version 3 of the License, or (at your option) any later version.
9 *
10 * SPU2-X is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
11 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 * PURPOSE. See the GNU Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public License
15 * along with SPU2-X. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18 // To be continued...
19
20 #include "Dialogs.h"
21 #include <gtk/gtk.h>
22 #include <cstring>
23
24 void SysMessage(const char *fmt, ...)
25 {
26 va_list list;
27 char msg[512];
28
29 va_start(list, fmt);
30 vsprintf(msg, fmt, list);
31 va_end(list);
32
33 if (msg[strlen(msg)-1] == '\n') msg[strlen(msg)-1] = 0;
34
35 GtkWidget *dialog;
36 dialog = gtk_message_dialog_new (NULL,
37 GTK_DIALOG_DESTROY_WITH_PARENT,
38 GTK_MESSAGE_INFO,
39 GTK_BUTTONS_OK,
40 "%s", msg);
41 gtk_dialog_run (GTK_DIALOG (dialog));
42 gtk_widget_destroy (dialog);
43 }
44
45 void SysMessage(const wchar_t *fmt, ...)
46 {
47 va_list list;
48 va_start(list,fmt);
49 wxString msg;
50 msg.PrintfV( fmt, list );
51 va_end(list);
52
53 GtkWidget *dialog;
54 dialog = gtk_message_dialog_new (NULL,
55 GTK_DIALOG_DESTROY_WITH_PARENT,
56 GTK_MESSAGE_INFO,
57 GTK_BUTTONS_OK,
58 "%s", msg.ToUTF8().data());
59 gtk_dialog_run (GTK_DIALOG (dialog));
60 gtk_widget_destroy (dialog);
61 }
62
63 void DspUpdate()
64 {
65 }
66
67 s32 DspLoadLibrary(wchar_t* fileName, int modnum)
68 {
69 return 0;
70 }
71

  ViewVC Help
Powered by ViewVC 1.1.22