Manage real OBS careers in native save and load dialogs (by Codex)
This commit is contained in:
1 parent
693744a961
commit
e3ea03a05d
25 files changed
+539
-39
No files matched your search
@@ -15,6 +15,7 @@
|
||||
#include "modern/content/press_journal.hpp"
|
||||
#include "modern/content/statistics.hpp"
|
||||
#include "modern/content/world_package.hpp"
|
||||
#include "modern/content/world_save.hpp"
|
||||
#include "modern/game/almanac.hpp"
|
||||
#include "modern/game/desk_actions.hpp"
|
||||
#include "modern/game/environment.hpp"
|
||||
@@ -494,6 +495,12 @@ cli::Json ui_read(const ModernState& g, const UiContext& c, const cli::Json& req
|
||||
const std::string today = *std::get<O>(m.value).at("date").string();
|
||||
if (kind == "session") return snapshot(request_id, std::move(m), session_data(g, c));
|
||||
if (kind == "desktop") return snapshot(request_id, std::move(m), desktop_data(g, c, today));
|
||||
if (kind == "file-metadata") {
|
||||
const auto* world=current_world();
|
||||
if(!world)return failure(request_id,"world_unavailable","Keine aktive Modern-Welt.",c.state_revision);
|
||||
try{return snapshot(request_id,std::move(m),world_career_metadata(*world,g));}
|
||||
catch(const std::exception&){return failure(request_id,"metadata_unavailable","Spielstandangaben nicht verfügbar.",c.state_revision);}
|
||||
}
|
||||
if (kind == "camps") return snapshot(request_id, std::move(m), camps_data(g, c, std::to_string(c.state_revision)));
|
||||
if (kind == "player-rankings" || kind == "fairplay") {
|
||||
J data = query_rankings(g, c.manager, request);
|
||||
|
||||
Reference in new issue
Block a user