mirror of
https://github.com/zeldaret/tmc
synced 2026-06-05 03:08:20 -04:00
Fix incbin dependencies to assets
This commit is contained in:
@@ -93,9 +93,15 @@ int main(int argc, char **argv)
|
||||
includeDirs.push_back(file.GetSrcDir());
|
||||
for (auto incbin : file.GetIncbins())
|
||||
{
|
||||
// TODO add incbin dependencies in correct folder?
|
||||
if (incbin.rfind("translations", 0) == 0) {
|
||||
dependencies.insert(incbin);
|
||||
// Search for the incbin in the include directories as well.
|
||||
for (auto includeDir : includeDirs)
|
||||
{
|
||||
std::string path(includeDir + incbin);
|
||||
if (CanOpenFile(path))
|
||||
{
|
||||
dependencies.insert(path).second;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
for (auto include : file.GetIncludes())
|
||||
|
||||
@@ -8,7 +8,9 @@ export INCLUDES := -I./
|
||||
export DIFF := diff
|
||||
export HEXDUMP := hexdump -C
|
||||
|
||||
all:
|
||||
all: tmc_strings
|
||||
|
||||
tmc_strings: main.cpp
|
||||
$(CC) -o tmc_strings main.cpp $(CXXFLAGS) $(INCLUDES)
|
||||
|
||||
run: extract pack
|
||||
|
||||
Reference in New Issue
Block a user