mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
Build type information on first use (load-time), instead of using a hardcoded list
--HG-- branch : dynamiccore2
This commit is contained in:
@@ -25,8 +25,10 @@ namespace love
|
||||
namespace audio
|
||||
{
|
||||
|
||||
Source::Source(Type type)
|
||||
: type(type)
|
||||
love::Type Source::type(&Object::type);
|
||||
|
||||
Source::Source(Type sourceType)
|
||||
: sourceType(sourceType)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -36,7 +38,7 @@ Source::~Source()
|
||||
|
||||
Source::Type Source::getType() const
|
||||
{
|
||||
return type;
|
||||
return sourceType;
|
||||
}
|
||||
|
||||
bool Source::getConstant(const char *in, Type &out)
|
||||
|
||||
Reference in New Issue
Block a user