Skip to content

Commit 2846095

Browse files
committed
64-bit Mac build
1 parent 2deaba7 commit 2846095

File tree

5 files changed

+71
-51
lines changed

5 files changed

+71
-51
lines changed

Info.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<key>CFBundleIconFile</key>
2525
<string>eos.icns</string>
2626
<key>CFBundleIdentifier</key>
27-
<string>com.etc.OSCRouter</string>
27+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
2828
<key>CFBundlePackageType</key>
2929
<string>APPL</string>
3030
<key>CFBundleSignature</key>

OSCRouter.xcodeproj/project.pbxproj

+59-33
Large diffs are not rendered by default.

OSCRouter/MainWindow.cpp

+4-6
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
////////////////////////////////////////////////////////////////////////////////
3535

36-
#define APP_VERSION "0.9"
36+
#define APP_VERSION "0.10"
3737
#define SETTING_LOG_DEPTH "LogDepth"
3838
#define SETTING_FILE_DEPTH "FileDepth"
3939
#define SETTING_LAST_FILE "LastFile"
@@ -1543,7 +1543,7 @@ MainWindow::MainWindow(QWidget* parent/*=0*/, Qt::WindowFlags f/*=0*/)
15431543
if( !m_Platform->Initialize(error) )
15441544
{
15451545
m_Log.AddError("platform initialization failed");
1546-
m_Platform->Shutdown();
1546+
delete m_Platform;
15471547
m_Platform = 0;
15481548
}
15491549
}
@@ -1616,7 +1616,6 @@ MainWindow::~MainWindow()
16161616
{
16171617
if( m_Platform )
16181618
{
1619-
m_Platform->Shutdown();
16201619
delete m_Platform;
16211620
m_Platform = 0;
16221621
}
@@ -1671,9 +1670,8 @@ void MainWindow::FlushLogQ(EosLog::LOG_Q &logQ)
16711670
{
16721671
const EosLog::sLogMsg logMsg = *i;
16731672

1674-
//tm *t = localtime( &logMsg.timestamp );
1675-
QDateTime dt;
1676-
dt.setTime_t(logMsg.timestamp);
1673+
QDateTime dt;
1674+
dt.setTime_t(static_cast<uint>(logMsg.timestamp));
16771675
QString msgText;
16781676
if( logMsg.text.c_str() )
16791677
msgText = QString::fromUtf8( logMsg.text.c_str() );

OSCRouter/Router.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ bool EosTcpClientThread::SendFramed(const EosPacket &packet)
445445
char *frame = OSCStream::CreateFrame(m_FrameMode, packet.GetDataConst(), frameSize);
446446
if( frame )
447447
{
448-
m_SendQ.push_back( EosPacket(frame,frameSize) );
448+
m_SendQ.push_back( EosPacket(frame,static_cast<int>(frameSize)) );
449449
m_Mutex.unlock();
450450
delete[] frame;
451451
return true;

OSCRouter/main.cpp

+6-10
Original file line numberDiff line numberDiff line change
@@ -41,18 +41,14 @@ int main(int argc, char* argv[])
4141

4242
EosTimer::Init();
4343

44+
QApplication app(argc, argv);
45+
4446
#ifndef WIN32
45-
if(argc > 0)
46-
{
47-
QDir dir( argv[0] );
48-
dir.cdUp();
49-
dir.cdUp();
50-
dir.cd("Plugins");
51-
QCoreApplication::setLibraryPaths( QStringList(dir.canonicalPath()) );
52-
}
47+
QDir dir( app.applicationDirPath() );
48+
dir.cdUp();
49+
dir.cd("Plugins");
50+
app.setLibraryPaths( QStringList(dir.canonicalPath()) );
5351
#endif
54-
55-
QApplication app(argc, argv);
5652

5753
app.setDesktopSettingsAware(false);
5854
app.setStyle( QStyleFactory::create("Fusion") );

0 commit comments

Comments
 (0)