ExportStrings.* -> CommandLineActions.*
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#include "global.h"
|
||||
#include "ExportStrings.h"
|
||||
#include "CommandLineActions.h"
|
||||
#include "RageFile.h"
|
||||
#include "RageUtil.h"
|
||||
#include "IniFile.h"
|
||||
@@ -47,7 +47,7 @@ static void GetPackageFilesToInstall( vector<RString> &vs )
|
||||
vs.clear();
|
||||
}
|
||||
|
||||
bool ExportStrings::AnyPackageFilesInCommandLine()
|
||||
bool CommandLineActions::AnyPackageFilesInCommandLine()
|
||||
{
|
||||
vector<RString> vs;
|
||||
GetPackageFilesToInstall( vs );
|
||||
@@ -61,7 +61,7 @@ struct FileCopyResult
|
||||
RString sFile, sComment;
|
||||
};
|
||||
|
||||
void ExportStrings::Install()
|
||||
void CommandLineActions::Install()
|
||||
{
|
||||
vector<FileCopyResult> vSucceeded;
|
||||
vector<FileCopyResult> vFailed;
|
||||
@@ -118,7 +118,7 @@ void ExportStrings::Install()
|
||||
Dialog::OK( sMessage );
|
||||
}
|
||||
|
||||
void ExportStrings::Nsis()
|
||||
void CommandLineActions::Nsis()
|
||||
{
|
||||
RageFile out;
|
||||
if( !out.Open( "nsis_strings_temp.inc", RageFile::WRITE ) )
|
||||
@@ -152,7 +152,7 @@ void ExportStrings::Nsis()
|
||||
}
|
||||
}
|
||||
|
||||
void ExportStrings::LuaInformation()
|
||||
void CommandLineActions::LuaInformation()
|
||||
{
|
||||
XNode *pNode = LuaHelpers::GetLuaInformation();
|
||||
pNode->AppendAttr( "xmlns", "http://www.stepmania.com" );
|
||||
@@ -1,7 +1,7 @@
|
||||
#ifndef ExportStrings_H
|
||||
#define ExportStrings_H
|
||||
#ifndef CommandLineActions_H
|
||||
#define CommandLineActions_H
|
||||
|
||||
namespace ExportStrings
|
||||
namespace CommandLineActions
|
||||
{
|
||||
bool AnyPackageFilesInCommandLine();
|
||||
void Install();
|
||||
@@ -3206,10 +3206,10 @@ cl /Zl /nologo /c verstub.cpp /Fo"$(IntDir)"\
|
||||
Name="StepMania"
|
||||
Filter="">
|
||||
<File
|
||||
RelativePath=".\ExportStrings.cpp">
|
||||
RelativePath=".\CommandLineActions.cpp">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\ExportStrings.h">
|
||||
RelativePath=".\CommandLineActions.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\GameLoop.cpp">
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
#include "RageSurface.h"
|
||||
#include "RageSurface_Load.h"
|
||||
#include "CatalogXml.h"
|
||||
#include "ExportStrings.h"
|
||||
#include "CommandLineActions.h"
|
||||
|
||||
#if !defined(SUPPORT_OPENGL) && !defined(SUPPORT_D3D)
|
||||
#define SUPPORT_OPENGL
|
||||
@@ -932,7 +932,7 @@ int main(int argc, char* argv[])
|
||||
RunMode_ExportLuaInformation,
|
||||
};
|
||||
RunMode runmode = RunMode_Normal;
|
||||
if( ExportStrings::AnyPackageFilesInCommandLine() )
|
||||
if( CommandLineActions::AnyPackageFilesInCommandLine() )
|
||||
runmode = RunMode_Install;
|
||||
else if( GetCommandlineArgument("ExportNsisStrings") )
|
||||
runmode = RunMode_ExportNsisStrings;
|
||||
@@ -1066,13 +1066,13 @@ int main(int argc, char* argv[])
|
||||
{
|
||||
DEFAULT_FAIL( runmode );
|
||||
case RunMode_Install:
|
||||
ExportStrings::Install();
|
||||
CommandLineActions::Install();
|
||||
break;
|
||||
case RunMode_ExportNsisStrings:
|
||||
ExportStrings::Nsis();
|
||||
CommandLineActions::Nsis();
|
||||
break;
|
||||
case RunMode_ExportLuaInformation:
|
||||
ExportStrings::LuaInformation();
|
||||
CommandLineActions::LuaInformation();
|
||||
break;
|
||||
};
|
||||
exit(0);
|
||||
|
||||
Reference in New Issue
Block a user