-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Qt: Improve PS3 Binaries Decryption tool
- Loading branch information
Showing
5 changed files
with
152 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,31 @@ | ||
#pragma once | ||
|
||
void decrypt_sprx_libraries(std::vector<std::string> modules, std::function<std::string(std::string old_path, std::string path, bool tried)> input_cb); | ||
class decrypt_binaries_t | ||
{ | ||
std::vector<u128> m_klics; | ||
std::vector<std::string> m_modules; | ||
usz m_index = 0; | ||
|
||
public: | ||
decrypt_binaries_t(std::vector<std::string> modules) noexcept | ||
: m_modules(std::move(modules)) | ||
{ | ||
} | ||
|
||
usz decrypt(std::string klic_input = {}); | ||
|
||
bool errored() const | ||
{ | ||
return m_index == umax; | ||
} | ||
|
||
bool done() const | ||
{ | ||
return m_index >= m_klics.size(); | ||
} | ||
|
||
const std::string& operator[](usz index) const | ||
{ | ||
return ::at32(m_modules, index); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters