mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-06-09 12:31:40 +12:00
Set up icons
This commit is contained in:
parent
6ae8d084b4
commit
0421eae7ae
4 changed files with 21 additions and 7 deletions
|
@ -1,5 +1,7 @@
|
|||
#include "emulator.hpp"
|
||||
|
||||
#include <glad/gl.h>
|
||||
#include <fstream>
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <windows.h>
|
||||
|
@ -583,7 +585,7 @@ void Emulator::updateDiscord() {
|
|||
void Emulator::updateDiscord() {}
|
||||
#endif
|
||||
|
||||
static void printNode(const RomFS::RomFSNode& node, const char* romFSBase, const std::filesystem::path& path) {
|
||||
static void dumpRomFSNode(const RomFS::RomFSNode& node, const char* romFSBase, const std::filesystem::path& path) {
|
||||
for (auto& file : node.files) {
|
||||
const auto p = path / file->name;
|
||||
std::ofstream outFile(p);
|
||||
|
@ -599,7 +601,7 @@ static void printNode(const RomFS::RomFSNode& node, const char* romFSBase, const
|
|||
std::filesystem::create_directories(newPath, ec);
|
||||
|
||||
if (!ec) {
|
||||
printNode(*directory, romFSBase, newPath);
|
||||
dumpRomFSNode(*directory, romFSBase, newPath);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -638,7 +640,7 @@ RomFS::DumpingResult Emulator::dumpRomFS(const std::filesystem::path& path) {
|
|||
}
|
||||
|
||||
std::unique_ptr<RomFSNode> node = parseRomFSTree((uintptr_t)&romFS[0], size);
|
||||
printNode(*node, (const char*) &romFS[0], path);
|
||||
dumpRomFSNode(*node, (const char*)&romFS[0], path);
|
||||
|
||||
return DumpingResult::Success;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue