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:
@@ -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
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user