mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-18 11:19:10 +00:00
Make it compile and work in GCC / Linux
This commit is contained in:
@ -307,8 +307,8 @@ hsSemaphore::~hsSemaphore()
|
|||||||
status = sem_close(fPSema);
|
status = sem_close(fPSema);
|
||||||
} else {
|
} else {
|
||||||
status = sem_destroy(fPSema);
|
status = sem_destroy(fPSema);
|
||||||
|
delete fPSema;
|
||||||
}
|
}
|
||||||
delete fPSema;
|
|
||||||
hsThrowIfOSErr(status);
|
hsThrowIfOSErr(status);
|
||||||
#else
|
#else
|
||||||
int status = ::pthread_cond_destroy(&fPCond);
|
int status = ::pthread_cond_destroy(&fPCond);
|
||||||
|
@ -394,7 +394,7 @@ std::vector<plFileName> plFileSystem::ListDir(const plFileName &path, const char
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pattern && pattern[0] && fnmatch(pattern, de->d_name, 0))
|
if (pattern && pattern[0] && fnmatch(pattern, de->d_name, 0) == 0)
|
||||||
contents.push_back(dir_name);
|
contents.push_back(dir_name);
|
||||||
else if (!pattern || !pattern[0])
|
else if (!pattern || !pattern[0])
|
||||||
contents.push_back(dir_name);
|
contents.push_back(dir_name);
|
||||||
|
@ -39,6 +39,7 @@ set(plLocalizationEditor_UIC_SOURCES
|
|||||||
qt5_wrap_ui(plLocalizationEditor_UIC ${plLocalizationEditor_UIC_SOURCES})
|
qt5_wrap_ui(plLocalizationEditor_UIC ${plLocalizationEditor_UIC_SOURCES})
|
||||||
|
|
||||||
# For generated ui_*.h files
|
# For generated ui_*.h files
|
||||||
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
|
||||||
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
||||||
|
|
||||||
add_executable(plLocalizationEditor WIN32 ${plLocalizationEditor_HEADERS}
|
add_executable(plLocalizationEditor WIN32 ${plLocalizationEditor_HEADERS}
|
||||||
|
@ -54,16 +54,14 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
|||||||
|
|
||||||
#include <functional>
|
#include <functional>
|
||||||
|
|
||||||
#define ABOUT_TEXT R"(plLocalizationEditor
|
|
||||||
A basic editor for Plasma 21 localization resource files
|
|
||||||
Copyright (C) 2004 Cyan Worlds, Inc.)"
|
|
||||||
|
|
||||||
static void IAboutDialog(QWidget *parent)
|
static void IAboutDialog(QWidget *parent)
|
||||||
{
|
{
|
||||||
QDialog dlg(parent);
|
QDialog dlg(parent);
|
||||||
QLabel *image = new QLabel(&dlg);
|
QLabel *image = new QLabel(&dlg);
|
||||||
image->setPixmap(QPixmap(":/icon1.ico"));
|
image->setPixmap(QPixmap(":/icon1.ico"));
|
||||||
QLabel *text = new QLabel(QObject::tr(ABOUT_TEXT), &dlg);
|
QLabel *text = new QLabel(QObject::tr(R"(plLocalizationEditor
|
||||||
|
A basic editor for Plasma 21 localization resource files
|
||||||
|
Copyright (C) 2004 Cyan Worlds, Inc.)"), &dlg);
|
||||||
QPushButton *ok = new QPushButton(QObject::tr("OK"), &dlg);
|
QPushButton *ok = new QPushButton(QObject::tr("OK"), &dlg);
|
||||||
ok->setDefault(true);
|
ok->setDefault(true);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user