mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 17:44:56 +00:00
Windows sync fixes for API changes
This commit is contained in:
@@ -22,20 +22,20 @@ public:
|
||||
hecl::MakeDir(dir->c_str());
|
||||
if (hecl::Stat(dir->c_str(), &theStat))
|
||||
{
|
||||
LogModule.report(logvisor::Fatal, _S("unable to stat '%s'"), dir->c_str());
|
||||
LogModule.report(logvisor::Fatal, _SYS_STR("unable to stat '%s'"), dir->c_str());
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (!S_ISDIR(theStat.st_mode))
|
||||
{
|
||||
LogModule.report(logvisor::Fatal, _S("'%s' is not a directory"), dir->c_str());
|
||||
LogModule.report(logvisor::Fatal, _SYS_STR("'%s' is not a directory"), dir->c_str());
|
||||
return;
|
||||
}
|
||||
|
||||
hecl::SystemString testPath = *dir + _S("/.hecl/beacon");
|
||||
hecl::SystemString testPath = *dir + _SYS_STR("/.hecl/beacon");
|
||||
if (!hecl::Stat(testPath.c_str(), &theStat))
|
||||
{
|
||||
LogModule.report(logvisor::Fatal, _S("project already exists at '%s'"), dir->c_str());
|
||||
LogModule.report(logvisor::Fatal, _SYS_STR("project already exists at '%s'"), dir->c_str());
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -50,37 +50,37 @@ public:
|
||||
hecl::Database::Project proj((hecl::ProjectRootPath(*m_dir)));
|
||||
if (logvisor::ErrorCount > ErrorRef)
|
||||
return 1;
|
||||
LogModule.report(logvisor::Info, _S("initialized project at '%s/.hecl'"), m_dir->c_str());
|
||||
LogModule.report(logvisor::Info, _SYS_STR("initialized project at '%s/.hecl'"), m_dir->c_str());
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void Help(HelpOutput& help)
|
||||
{
|
||||
help.secHead(_S("NAME"));
|
||||
help.secHead(_SYS_STR("NAME"));
|
||||
help.beginWrap();
|
||||
help.wrap(_S("hecl-init - Initialize a brand-new project database\n"));
|
||||
help.wrap(_SYS_STR("hecl-init - Initialize a brand-new project database\n"));
|
||||
help.endWrap();
|
||||
|
||||
help.secHead(_S("SYNOPSIS"));
|
||||
help.secHead(_SYS_STR("SYNOPSIS"));
|
||||
help.beginWrap();
|
||||
help.wrap(_S("hecl init [<dir>]\n"));
|
||||
help.wrap(_SYS_STR("hecl init [<dir>]\n"));
|
||||
help.endWrap();
|
||||
|
||||
help.secHead(_S("DESCRIPTION"));
|
||||
help.secHead(_SYS_STR("DESCRIPTION"));
|
||||
help.beginWrap();
|
||||
help.wrap(_S("Creates a "));
|
||||
help.wrapBold(_S(".hecl"));
|
||||
help.wrap(_S(" directory within the selected directory with an initialized database index. ")
|
||||
_S("This constitutes an empty HECL project, ready for making stuff!!\n"));
|
||||
help.wrap(_SYS_STR("Creates a "));
|
||||
help.wrapBold(_SYS_STR(".hecl"));
|
||||
help.wrap(_SYS_STR(" directory within the selected directory with an initialized database index. ")
|
||||
_SYS_STR("This constitutes an empty HECL project, ready for making stuff!!\n"));
|
||||
help.endWrap();
|
||||
|
||||
help.secHead(_S("OPTIONS"));
|
||||
help.optionHead(_S("<dir>"), _S("group directory path"));
|
||||
help.secHead(_SYS_STR("OPTIONS"));
|
||||
help.optionHead(_SYS_STR("<dir>"), _SYS_STR("group directory path"));
|
||||
help.beginWrap();
|
||||
help.wrap(_S("Directory to create new project database in. If not specified, current directory is used.\n"));
|
||||
help.wrap(_SYS_STR("Directory to create new project database in. If not specified, current directory is used.\n"));
|
||||
help.endWrap();
|
||||
}
|
||||
|
||||
hecl::SystemString toolName() const {return _S("init");}
|
||||
hecl::SystemString toolName() const {return _SYS_STR("init");}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user