Подпишитесь на наш Telegram-канал, чтобы всегда быть в курсе важных обновлений! Перейти

Вопрос Making a delete config button for weave

[QUOTE = "YakkiZew, post: 1702504, member: 382968"]
hand over the code
[/ QUOTE]
"hand over the code" hahhah bruh there are 100k sources and u asking for one hahha fuck me, love how u asking for code when u dont even what he said to do ahha
 


menu.cpp:
#include <filesystem>
void c_menu::reinit_config()

static TCHAR path[256];
C++:
Expand Collapse Copy
config_child->add_element(new c_button("delete", []() { filesystem::remove(std::string(path) + ("\\cheatname\\") + vars.menu.active_config_name + ".json"), Config.ResetToDefault(), g_Menu->should_reinit_config = true, vars.menu.active_config_name.clear(); }));
change the \\cheatname\\ to your weave.su or whatever, and if it doesn't work reply (i didn't test it xD)
 
[QUOTE = "- Spice, post: 1703005, member: 295211"]
menu.cpp:
#include <filesystem>
void c_menu :: reinit_config ()

static TCHAR path [256];
[CODE = cpp] config_child-> add_element (new c_button ("delete", [] () {filesystem :: remove (std :: string (path) + ("\\ cheatname \\") + vars.menu.active_config_name + ".json"), Config.ResetToDefault (), g_Menu-> should_reinit_config = true, vars.menu.active_config_name.clear ();})); [/ CODE]
change the \\ cheatname \\ to your weave.su or whatever, and if it doesn't work reply (i didn't test it xD)
[/ QUOTE]
Trying atm
 
[QUOTE = "- Spice, post: 1703005, member: 295211"]
menu.cpp:
#include <filesystem>
void c_menu :: reinit_config ()

static TCHAR path [256];
[CODE = cpp] config_child-> add_element (new c_button ("delete", [] () {filesystem :: remove (std :: string (path) + ("\\ cheatname \\") + vars.menu.active_config_name + ".json"), Config.ResetToDefault (), g_Menu-> should_reinit_config = true, vars.menu.active_config_name.clear ();})); [/ CODE]
change the \\ cheatname \\ to your weave.su or whatever, and if it doesn't work reply (i didn't test it xD)
[/ QUOTE]
dosent work sadly :/ dosent do anything
 
[QUOTE = "- Spice, post: 1703005, member: 295211"]
menu.cpp:
#include <filesystem>
void c_menu :: reinit_config ()

static TCHAR path [256];
[CODE = cpp] config_child-> add_element (new c_button ("delete", [] () {filesystem :: remove (std :: string (path) + ("\\ cheatname \\") + vars.menu.active_config_name + ".json"), Config.ResetToDefault (), g_Menu-> should_reinit_config = true, vars.menu.active_config_name.clear ();})); [/ CODE]
change the \\ cheatname \\ to your weave.su or whatever, and if it doesn't work reply (i didn't test it xD)
[/ QUOTE]
dosent work sadly :/ dosent do anything
retard alert, all works perfect lmao
 
Назад
Сверху Снизу