mirror of
https://github.com/N64Recomp/N64ModernRuntime.git
synced 2026-05-11 03:12:15 +00:00
Implement get_program_id and set_program_id
This commit is contained in:
parent
7e66a9af84
commit
0dfd52de2b
1 changed files with 10 additions and 0 deletions
|
|
@ -49,6 +49,16 @@ std::mutex current_game_mutex;
|
||||||
std::vector<char> patch_data;
|
std::vector<char> patch_data;
|
||||||
std::unordered_map<std::u8string, recomp::GameEntry> game_roms {};
|
std::unordered_map<std::u8string, recomp::GameEntry> game_roms {};
|
||||||
|
|
||||||
|
static std::u8string program_id = u8"";
|
||||||
|
|
||||||
|
const std::u8string& recomp::get_program_id() {
|
||||||
|
return program_id;
|
||||||
|
}
|
||||||
|
|
||||||
|
void recomp::set_program_id(const std::u8string& program_id_) {
|
||||||
|
program_id = program_id_;
|
||||||
|
}
|
||||||
|
|
||||||
std::u8string recomp::GameEntry::stored_filename() const {
|
std::u8string recomp::GameEntry::stored_filename() const {
|
||||||
return game_id + u8".z64";
|
return game_id + u8".z64";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue