game/speedrunning: Add struct with relevant information to facilitate Auto Splitting (#1775)

* game: add auto-splitter structs

* game/jak1: wire up auto-splitter updating to game when in SR mode

* game/jak1: add info to split on picking up white eco

* game/jak1: add another two tasks for fish and finalboss

* game/jak1: autosplitting code entirely in GOAL
This commit is contained in:
Tyler Wilding
2022-08-22 18:55:08 -04:00
committed by GitHub
parent 06ef52cd25
commit 346a258902
14 changed files with 302 additions and 3 deletions
+4
View File
@@ -412,6 +412,10 @@ int get_monitor_count() {
return Gfx::get_monitor_count();
}
int get_unix_timestamp() {
return std::time(nullptr);
}
void mkdir_path(u32 filepath) {
auto filepath_str = std::string(Ptr<String>(filepath).c()->data());
file_util::create_dir_if_needed_for_file(filepath_str);