Skip to content

Commit

Permalink
ShitCore 최신 버전으로 업데이트
Browse files Browse the repository at this point in the history
  • Loading branch information
kmc7468 committed Aug 17, 2023
1 parent 9884487 commit 29211b8
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
2 changes: 2 additions & 0 deletions include/sgn/ExternModule.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ namespace sgn::detail {
using svm::core::Loader<VirtualFunctionInfo>::Create;

private:
using svm::core::Loader<VirtualFunctionInfo>::AddLibraryDirectory;

using svm::core::Loader<VirtualFunctionInfo>::Load;
using svm::core::Loader<VirtualFunctionInfo>::Build;

Expand Down
8 changes: 4 additions & 4 deletions src/ByteFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ namespace sgn {
GeneralArrayIndex ByteFile::MakeArray(GeneralTypeIndex type) const {
if (std::holds_alternative<TypeIndex>(type)) {
return MakeArray(std::get<TypeIndex>(type));
} else if (std::holds_alternative<MappedTypeIndex>(type)) {
} else {
return MakeArray(std::get<MappedTypeIndex>(type));
}
}
Expand Down Expand Up @@ -129,7 +129,7 @@ namespace sgn {
}

ExternModuleIndex ByteFile::AddExternModule(const std::string& path) {
GetDependencies().push_back(path);
GetDependencies().push_back({ path });
return m_ExternModuleManager.CreateModule(path);
}
ExternModuleIndex ByteFile::GetExternModule(const std::string& path) const noexcept {
Expand Down Expand Up @@ -213,14 +213,14 @@ namespace sgn {
const StructureInfo* ByteFile::GetStructureInfo(GeneralTypeIndex index) const noexcept {
if (std::holds_alternative<TypeIndex>(index)) {
return GetStructureInfo(std::get<TypeIndex>(index));
} else if (std::holds_alternative<MappedTypeIndex>(index)) {
} else {
return GetStructureInfo(std::get<MappedTypeIndex>(index));
}
}
StructureInfo* ByteFile::GetStructureInfo(GeneralTypeIndex index) noexcept {
if (std::holds_alternative<TypeIndex>(index)) {
return GetStructureInfo(std::get<TypeIndex>(index));
} else if (std::holds_alternative<MappedTypeIndex>(index)) {
} else {
return GetStructureInfo(std::get<MappedTypeIndex>(index));
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/Generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ namespace sgn {
Write(static_cast<std::uint32_t>(dependencies.size()));
for (std::uint32_t i = 0; i < dependencies.size(); ++i) {
const auto& depen = dependencies[i];
Write(static_cast<std::uint32_t>(depen.size()));
m_Stream.write(depen.c_str(), depen.size());
Write(static_cast<std::uint32_t>(depen.Path.size()));
m_Stream.write(depen.Path.c_str(), depen.Path.size());
}

Generate(m_ByteFile.GetMappings());
Expand Down Expand Up @@ -86,7 +86,7 @@ namespace sgn {
const auto typeIndex = m_ByteFile.GetTypeIndex(fields[j].Type);
if (std::holds_alternative<TypeIndex>(typeIndex)) {
typeCode = static_cast<std::uint32_t>(fields[j].Type->Code);
} else if (std::holds_alternative<MappedTypeIndex>(typeIndex)) {
} else {
typeCode = m_ByteFile.TransformMappedIndex(std::get<MappedTypeIndex>(typeIndex));
}

Expand Down

0 comments on commit 29211b8

Please sign in to comment.