mirror of https://github.com/odrling/Aegisub
Now attempting to solve automation issues with Evolutionary programming: keep changing random shit until something works well, repeat until fixed.
Originally committed to SVN as r2002.
This commit is contained in:
parent
ed7a434a9e
commit
c833156e8b
|
@ -690,6 +690,17 @@ namespace Automation4 {
|
||||||
return backtr;
|
return backtr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
RubyScriptFactory::RubyScriptFactory()
|
||||||
|
{
|
||||||
|
engine_name = _T("Ruby");
|
||||||
|
filename_pattern = _T("*.rb");
|
||||||
|
Register(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
RubyScriptFactory::~RubyScriptFactory()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
Script* RubyScriptFactory::Produce(const wxString &filename) const
|
Script* RubyScriptFactory::Produce(const wxString &filename) const
|
||||||
{
|
{
|
||||||
// Just check if file extension is .rb
|
// Just check if file extension is .rb
|
||||||
|
|
|
@ -41,17 +41,8 @@ namespace Automation4 {
|
||||||
// Factory class for Ruby scripts
|
// Factory class for Ruby scripts
|
||||||
class RubyScriptFactory : public ScriptFactory {
|
class RubyScriptFactory : public ScriptFactory {
|
||||||
public:
|
public:
|
||||||
RubyScriptFactory()
|
RubyScriptFactory();
|
||||||
{
|
~RubyScriptFactory();
|
||||||
engine_name = _T("Ruby");
|
|
||||||
filename_pattern = _T("*.rb");
|
|
||||||
Register(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
~RubyScriptFactory()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
Script* Produce(const wxString &filename) const;
|
Script* Produce(const wxString &filename) const;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue