early-access version 2370

This commit is contained in:
pineappleEA 2022-01-04 04:04:27 +01:00
parent d2a21afa95
commit 349ec14ec3
3 changed files with 5 additions and 5 deletions

View file

@ -1,7 +1,7 @@
yuzu emulator early access yuzu emulator early access
============= =============
This is the source code for early-access 2369. This is the source code for early-access 2370.
## Legal Notice ## Legal Notice

View file

@ -59,7 +59,7 @@ static Shader::TextureType ConvertType(const Tegra::Texture::TICEntry& entry) {
} }
} }
static std::string_view StageToPreffix(Shader::Stage stage) { static std::string_view StageToPrefix(Shader::Stage stage) {
switch (stage) { switch (stage) {
case Shader::Stage::VertexB: case Shader::Stage::VertexB:
return "VB"; return "VB";
@ -83,12 +83,12 @@ static std::string_view StageToPreffix(Shader::Stage stage) {
static void DumpImpl(u64 hash, const u64* code, u32 read_highest, u32 read_lowest, static void DumpImpl(u64 hash, const u64* code, u32 read_highest, u32 read_lowest,
u32 initial_offset, Shader::Stage stage) { u32 initial_offset, Shader::Stage stage) {
const auto shader_dir{Common::FS::GetYuzuPath(Common::FS::YuzuPath::DumpDir)}; const auto shader_dir{Common::FS::GetYuzuPath(Common::FS::YuzuPath::DumpDir)};
const auto base_dir{shader_dir / fmt::format("shaders")}; const auto base_dir{shader_dir / "shaders"};
if (!Common::FS::CreateDir(shader_dir) || !Common::FS::CreateDir(base_dir)) { if (!Common::FS::CreateDir(shader_dir) || !Common::FS::CreateDir(base_dir)) {
LOG_ERROR(Common_Filesystem, "Failed to create shader dump directories"); LOG_ERROR(Common_Filesystem, "Failed to create shader dump directories");
return; return;
} }
const auto prefix = StageToPreffix(stage); const auto prefix = StageToPrefix(stage);
const auto name{base_dir / fmt::format("{}{:016x}.ash", prefix, hash)}; const auto name{base_dir / fmt::format("{}{:016x}.ash", prefix, hash)};
const size_t real_size = read_highest - read_lowest + initial_offset; const size_t real_size = read_highest - read_lowest + initial_offset;
const size_t padding_needed = ((32 - (real_size % 32)) % 32); const size_t padding_needed = ((32 - (real_size % 32)) % 32);

View file

@ -57,7 +57,7 @@ public:
[[nodiscard]] u64 CalculateHash() const; [[nodiscard]] u64 CalculateHash() const;
void Dump(u64 hash); void Dump(u64 hash) override;
void Serialize(std::ofstream& file) const; void Serialize(std::ofstream& file) const;