mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-19 13:29:54 +00:00
Fix library blacklist and GTK dialogs
This commit is contained in:
parent
b8c6434a14
commit
acef1b4c0e
2 changed files with 4 additions and 3 deletions
|
|
@ -17,7 +17,7 @@ line = gets
|
|||
files = []
|
||||
while line
|
||||
if line =~ / => (\/.*) \(/
|
||||
if not BLACKLIST.include? $1
|
||||
if not BLACKLIST.any? {|library| $1.end_with? library }
|
||||
files << $1
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -485,12 +485,12 @@ bool Oneshot::msgbox(int type, const char *body, const char *title)
|
|||
{
|
||||
if (!title)
|
||||
title = "";
|
||||
#if defined OS_LINUX
|
||||
#ifdef OS_LINUX
|
||||
linux_DialogData data = {type, body, title, 0};
|
||||
gdk_threads_add_idle(linux_dialog, &data);
|
||||
gtk_main();
|
||||
return data.result;
|
||||
#endif
|
||||
#else
|
||||
|
||||
// SDL message box
|
||||
// Button data
|
||||
|
|
@ -570,6 +570,7 @@ bool Oneshot::msgbox(int type, const char *body, const char *title)
|
|||
#endif
|
||||
|
||||
return button ? true : false;
|
||||
#endif // #ifdef OS_LINUX
|
||||
}
|
||||
|
||||
std::string Oneshot::textinput(const char* prompt, int char_limit, const char* fontName) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue