fix smpackage compile
This commit is contained in:
@@ -946,6 +946,7 @@ LuaReference ThemeManager::GetMetricR( const RString &sClassName, const RString
|
|||||||
return ref;
|
return ref;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if !defined(SMPACKAGE)
|
||||||
void ThemeManager::PushMetric( Lua *L, const RString &sClassName, const RString &sValueName )
|
void ThemeManager::PushMetric( Lua *L, const RString &sClassName, const RString &sValueName )
|
||||||
{
|
{
|
||||||
RString sValue = GetMetricRaw( g_pLoadedThemeData->iniMetrics, sClassName, sValueName );
|
RString sValue = GetMetricRaw( g_pLoadedThemeData->iniMetrics, sClassName, sValueName );
|
||||||
@@ -961,6 +962,7 @@ void ThemeManager::PushMetric( Lua *L, const RString &sClassName, const RString
|
|||||||
LuaHelpers::RunExpression( L, sValue, sName );
|
LuaHelpers::RunExpression( L, sValue, sName );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
void ThemeManager::GetMetric( const RString &sClassName, const RString &sValueName, LuaReference &valueOut )
|
void ThemeManager::GetMetric( const RString &sClassName, const RString &sValueName, LuaReference &valueOut )
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -247,10 +247,10 @@
|
|||||||
RelativePath=".\smpackage\resource.h">
|
RelativePath=".\smpackage\resource.h">
|
||||||
</File>
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath="smpackage.ICO">
|
RelativePath="res\smpackage.ico">
|
||||||
</File>
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath="res\smpackage.ico">
|
RelativePath="smpackage.ICO">
|
||||||
</File>
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath=".\smpackage\smpackage.rc">
|
RelativePath=".\smpackage\smpackage.rc">
|
||||||
@@ -306,6 +306,12 @@
|
|||||||
<File
|
<File
|
||||||
RelativePath=".\archutils\Win32\DialogUtil.h">
|
RelativePath=".\archutils\Win32\DialogUtil.h">
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\archutils\Win32\ErrorStrings.cpp">
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\archutils\Win32\ErrorStrings.h">
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath=".\archutils\Win32\GotoURL.cpp">
|
RelativePath=".\archutils\Win32\GotoURL.cpp">
|
||||||
</File>
|
</File>
|
||||||
|
|||||||
@@ -10,6 +10,7 @@
|
|||||||
#include "SMPackageUtil.h"
|
#include "SMPackageUtil.h"
|
||||||
#include ".\createlanguagedlg.h"
|
#include ".\createlanguagedlg.h"
|
||||||
#include "archutils/Win32/DialogUtil.h"
|
#include "archutils/Win32/DialogUtil.h"
|
||||||
|
#include "archutils/Win32/ErrorStrings.h"
|
||||||
|
|
||||||
// CreateLanguageDlg dialog
|
// CreateLanguageDlg dialog
|
||||||
|
|
||||||
|
|||||||
@@ -22,6 +22,7 @@
|
|||||||
#include "arch/Dialog/Dialog.h"
|
#include "arch/Dialog/Dialog.h"
|
||||||
#include "archutils/Win32/SpecialDirs.h"
|
#include "archutils/Win32/SpecialDirs.h"
|
||||||
#include "archutils/Win32/GotoURL.h"
|
#include "archutils/Win32/GotoURL.h"
|
||||||
|
#include "archutils/Win32/ErrorStrings.h"
|
||||||
|
|
||||||
// LanguagesDlg dialog
|
// LanguagesDlg dialog
|
||||||
|
|
||||||
@@ -291,7 +292,7 @@ void LanguagesDlg::OnBnClickedButtonExport()
|
|||||||
TranslationLine tl;
|
TranslationLine tl;
|
||||||
tl.sSection = key->m_sName;
|
tl.sSection = key->m_sName;
|
||||||
tl.sID = value->first;
|
tl.sID = value->first;
|
||||||
tl.sBaseLanguage = value->second;
|
tl.sBaseLanguage = value->second->GetValue<RString>();
|
||||||
ini2.GetValue( tl.sSection, tl.sID, tl.sCurrentLanguage );
|
ini2.GetValue( tl.sSection, tl.sID, tl.sCurrentLanguage );
|
||||||
|
|
||||||
// don't export empty strings
|
// don't export empty strings
|
||||||
@@ -511,7 +512,7 @@ void LanguagesDlg::OnBnClickedCheckLanguage()
|
|||||||
{
|
{
|
||||||
const RString &sSection = key->m_sName;
|
const RString &sSection = key->m_sName;
|
||||||
const RString &sID = value->first;
|
const RString &sID = value->first;
|
||||||
const RString &sBaseLanguage = value->second;
|
const RString &sBaseLanguage = value->second->GetValue<RString>();
|
||||||
RString sCurrentLanguage;
|
RString sCurrentLanguage;
|
||||||
ini2.GetValue( sSection, sID, sCurrentLanguage );
|
ini2.GetValue( sSection, sID, sCurrentLanguage );
|
||||||
|
|
||||||
@@ -581,7 +582,7 @@ void LanguagesDlg::OnBnClickedCheckLanguage()
|
|||||||
{
|
{
|
||||||
const RString &sSection = key->m_sName;
|
const RString &sSection = key->m_sName;
|
||||||
const RString &sID = value->first;
|
const RString &sID = value->first;
|
||||||
const RString &sCurrentLanguage = value->second;
|
const RString &sCurrentLanguage = value->second->GetValue<RString>();
|
||||||
if( utf8_is_valid(sCurrentLanguage) )
|
if( utf8_is_valid(sCurrentLanguage) )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
@@ -628,7 +629,7 @@ void LanguagesDlg::OnBnClickedCheckLanguage()
|
|||||||
FOREACH_CONST_Attr( key, value )
|
FOREACH_CONST_Attr( key, value )
|
||||||
{
|
{
|
||||||
const RString &sID = value->first;
|
const RString &sID = value->first;
|
||||||
const RString &sBaseText = value->second;
|
const RString &sBaseText = value->second->GetValue<RString>();
|
||||||
if( sBaseText.empty() )
|
if( sBaseText.empty() )
|
||||||
continue;
|
continue;
|
||||||
RString sCurrentLanguage;
|
RString sCurrentLanguage;
|
||||||
|
|||||||
@@ -22,6 +22,7 @@
|
|||||||
#include "LocalizedString.h"
|
#include "LocalizedString.h"
|
||||||
#include "RageFileManager.h"
|
#include "RageFileManager.h"
|
||||||
#include "arch/Dialog/Dialog.h"
|
#include "arch/Dialog/Dialog.h"
|
||||||
|
#include "archutils/Win32/ErrorStrings.h"
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
#define new DEBUG_NEW
|
#define new DEBUG_NEW
|
||||||
|
|||||||
Reference in New Issue
Block a user