some helper functions added
-
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
#include "../main.h"
|
||||
#include "../settings/settings.hpp"
|
||||
|
||||
#include "misc/misc.h"
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
@@ -187,7 +189,7 @@ void DrawMapSpecificTab() {
|
||||
}
|
||||
|
||||
if (ImGui::Button("Force start game")) {
|
||||
//Misc::ForceStart();
|
||||
Misc::ForceStart();
|
||||
}
|
||||
|
||||
if (ImGui::Button("Knock out everyone")) {
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#include "pch-il2cpp.h"
|
||||
|
||||
#include "misc.h"
|
||||
#include "ClientHelper.h"
|
||||
|
||||
void Misc::SetRank(int rank)
|
||||
{
|
||||
@@ -9,4 +10,12 @@ void Misc::SetRank(int rank)
|
||||
|
||||
void Misc::SetSteamName(std::string& name)
|
||||
{
|
||||
get_HorrorMenu()->fields.steamName = reinterpret_cast<app::String*>(il2cpp_string_new("0x"));
|
||||
}
|
||||
|
||||
void Misc::ForceStart()
|
||||
{
|
||||
if (IsHost()) {
|
||||
app::Menu_OnLobbyStartButtonClick(get_HorrorMenu(), nullptr);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,4 +7,5 @@
|
||||
namespace Misc {
|
||||
void SetRank(int rank);
|
||||
void SetSteamName(std::string& name);
|
||||
void ForceStart();
|
||||
}
|
||||
Reference in New Issue
Block a user