17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-17 03:59:19 +02:00

feat(launcher): -edit without a scenery opens the wizard of a new scenery: file name, title and centre, picked on the OpenStreetMap map of geoportal.gov.pl in PUWG 1992 or given in degrees; the scenery is written with the centre as its //$g reference and opened in the editor; a bare -edit no longer loads the scenery of eu07.ini

This commit is contained in:
maj00r
2026-10-06 22:19:40 +02:00
parent 978b99b7e5
commit 0a3cd55e59
8 changed files with 486 additions and 5 deletions

View File

@@ -256,6 +256,17 @@ bool http_client::get(std::string const &, std::vector<std::uint8_t> &Out, std::
#endif
} // namespace
bool editor_http_get(std::string const &Url, std::vector<std::uint8_t> &Out, std::string &Error)
{
thread_local http_client client;
return client.get(Url, Out, Error, []() { return false; });
}
namespace
{
// ---------------------------------------------------------------------------------------------
// geoportal requests and the disk cache

View File

@@ -27,6 +27,8 @@ http://mozilla.org/MPL/2.0/.
#include "utilities/Classes.h" // material_handle
#include "rendering/geometrybank.h" // gfx::geometry_handle
bool editor_http_get(std::string const &Url, std::vector<std::uint8_t> &Out, std::string &Error);
namespace scene
{
class basic_region;