mirror of
https://github.com/zeldaret/oot
synced 2026-09-11 20:21:46 -04:00
git subrepo pull --force tools/ZAPD (#653)
subrepo: subdir: "tools/ZAPD" merged: "2e1174063" upstream: origin: "https://github.com/zeldaret/ZAPD.git" branch: "master" commit: "2e1174063" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo.git" commit: "2f68596"
This commit is contained in:
@@ -42,7 +42,9 @@ void ZVector::ParseRawData()
|
||||
int currentRawDataIndex = this->rawDataIndex;
|
||||
|
||||
scalars.clear();
|
||||
for (int i = 0; i < this->dimensions; i++) {
|
||||
|
||||
for (int i = 0; i < this->dimensions; i++)
|
||||
{
|
||||
ZScalar* scalar = new ZScalar(this->scalarType);
|
||||
scalar->rawDataIndex = currentRawDataIndex;
|
||||
scalar->rawData = this->rawData;
|
||||
@@ -64,6 +66,11 @@ int ZVector::GetRawDataSize()
|
||||
return size;
|
||||
}
|
||||
|
||||
bool ZVector::DoesSupportArray()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
std::string ZVector::GetSourceTypeName()
|
||||
{
|
||||
if (dimensions == 3 && scalarType == ZSCALAR_F32)
|
||||
@@ -94,7 +101,7 @@ std::string ZVector::GetSourceValue()
|
||||
std::vector<std::string> strings = std::vector<std::string>();
|
||||
for (int i = 0; i < this->scalars.size(); i++)
|
||||
strings.push_back(scalars[i]->GetSourceValue());
|
||||
return StringHelper::Implode(strings, ", ");
|
||||
return "{ " + StringHelper::Implode(strings, ", ") + " }";
|
||||
}
|
||||
|
||||
std::string ZVector::GetSourceOutputCode(const std::string& prefix)
|
||||
|
||||
Reference in New Issue
Block a user