mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-20 03:35:18 +02:00
Clean up menus properly on client exit (#16150)
This commit is contained in:
@@ -26,7 +26,7 @@ struct GameFormSpec
|
||||
{
|
||||
void init(Client *client, RenderingEngine *rendering_engine, InputHandler *input);
|
||||
|
||||
~GameFormSpec();
|
||||
~GameFormSpec() { reset(); }
|
||||
|
||||
void showFormSpec(const std::string &formspec, const std::string &formname);
|
||||
void showCSMFormSpec(const std::string &formspec, const std::string &formname);
|
||||
@@ -43,6 +43,7 @@ struct GameFormSpec
|
||||
void disableDebugView();
|
||||
|
||||
bool handleCallbacks();
|
||||
void reset();
|
||||
|
||||
#ifdef __ANDROID__
|
||||
// Returns false if no formspec open
|
||||
|
Reference in New Issue
Block a user