mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-12 01:40:47 +00:00
MacOS ZAPD fixes (#606)
* Adding -Wno-return-type to GCC check for MacOS * git subrepo pull --force tools/ZAPD subrepo: subdir: "tools/ZAPD" merged: "0325ec161" upstream: origin: "https://github.com/zeldaret/ZAPD.git" branch: "master" commit: "0325ec161" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo.git" commit: "2f68596" * git subrepo pull --force tools/ZAPD subrepo: subdir: "tools/ZAPD" merged: "605f6972e" upstream: origin: "https://github.com/zeldaret/ZAPD.git" branch: "master" commit: "605f6972e" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo.git" commit: "2f68596" * git subrepo pull --force tools/ZAPD subrepo: subdir: "tools/ZAPD" merged: "6e6ad445a" upstream: origin: "https://github.com/zeldaret/ZAPD.git" branch: "master" commit: "6e6ad445a" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo.git" commit: "2f68596" * Rewrote func to avoid returns without values
This commit is contained in:
parent
115c152b03
commit
bda5b83346
6 changed files with 38 additions and 18 deletions
|
@ -59,6 +59,15 @@ string SetPathways::GenerateSourceCodePass1(string roomName, int baseAddress)
|
|||
currentPtr += 6;
|
||||
}
|
||||
|
||||
if (numPoints == 0) // Hack for SharpOcarina
|
||||
{
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
PathwayEntry* entry = new PathwayEntry();
|
||||
pathways.push_back(entry);
|
||||
}
|
||||
}
|
||||
|
||||
return "";
|
||||
}
|
||||
|
||||
|
@ -82,7 +91,11 @@ string SetPathways::GenerateSourceCodePass2(string roomName, int baseAddress)
|
|||
int index = 0;
|
||||
for (PathwayEntry* entry : pathways)
|
||||
{
|
||||
declaration += StringHelper::Sprintf("{ %i, %i, %i }, //0x%06X \n", entry->x, entry->y, entry->z, listSegmentOffset + (index * 6));
|
||||
declaration += StringHelper::Sprintf(" { %i, %i, %i }, //0x%06X", entry->x, entry->y, entry->z, listSegmentOffset + (index * 6));
|
||||
|
||||
if (index < pathways.size() - 1)
|
||||
declaration += "\n";
|
||||
|
||||
index++;
|
||||
}
|
||||
|
||||
|
@ -111,4 +124,11 @@ string SetPathways::GetCommandCName()
|
|||
RoomCommand SetPathways::GetRoomCommand()
|
||||
{
|
||||
return RoomCommand::SetPathways;
|
||||
}
|
||||
}
|
||||
|
||||
PathwayEntry::PathwayEntry()
|
||||
{
|
||||
x = 0;
|
||||
y = 0;
|
||||
z = 0;
|
||||
}
|
||||
|
|
|
@ -7,6 +7,8 @@ class PathwayEntry
|
|||
{
|
||||
public:
|
||||
int16_t x, y, z;
|
||||
|
||||
PathwayEntry();
|
||||
};
|
||||
|
||||
class SetPathways : public ZRoomCommand
|
||||
|
|
|
@ -80,7 +80,7 @@ std::string ZVector::GetSourceTypeName()
|
|||
}
|
||||
else
|
||||
{
|
||||
std::string output = StringHelper::Sprintf("Encountered unsupported vector type: %d dimensions, %s type", dimensions, ZScalar::MapScalarTypeToOutputType(scalarType));
|
||||
std::string output = StringHelper::Sprintf("Encountered unsupported vector type: %d dimensions, %s type", dimensions, ZScalar::MapScalarTypeToOutputType(scalarType).c_str());
|
||||
|
||||
if (Globals::Instance->verbosity >= VERBOSITY_DEBUG)
|
||||
printf("%s\n", output.c_str());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue