Skip to content

Commit

Permalink
Update main.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
halx99 committed Jul 11, 2023
1 parent 75a720c commit 144ccc7
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ processing file 4: /home/vmroot/dev/axmol/tests/cpp-tests/Content/hd/extensions/
#include <vector>
#include "fmt/compile.h"

#define AX_MIGRATE_VER "1.1.0"
#define AX_MIGRATE_VER "1.1.1"

namespace stdfs = std::filesystem;

Expand Down Expand Up @@ -598,17 +598,15 @@ void migrate_shader_file_one(std::string_view inpath, const std::set<std::string
int hints = 0;
for (auto& item : context.shaderDecls) {
auto& shader = item.second;
auto& outpath = migrate_strip_outpath(item.first, fileNameSet);
if (g_use_ubo) {
auto& outpath = migrate_strip_outpath(item.first, fileNameSet);
hints += migrate_shader_source_one_ast(shader, outpath);
fmt::println("Convert {} to 310 es done.", outpath);
}
else {
auto& outpath = item.first;
migrate_shader_source_one(shader, outpath);
fmt::println("Convert {} to 310 es done.", outpath);
++hints;
}
fmt::println("Convert {} to 310 es done.", outpath);
}
if (hints && context.shaderDecls.size() > 1)
stdfs::remove(inpath);
Expand Down

0 comments on commit 144ccc7

Please sign in to comment.