Don't ignore warning 4100
This commit is contained in:
parent
f064966ec0
commit
256b463411
@ -8,10 +8,10 @@ namespace Components
|
|||||||
public:
|
public:
|
||||||
virtual ~IAsset() {};
|
virtual ~IAsset() {};
|
||||||
virtual Game::XAssetType GetType() { return Game::XAssetType::ASSET_TYPE_INVALID; };
|
virtual Game::XAssetType GetType() { return Game::XAssetType::ASSET_TYPE_INVALID; };
|
||||||
virtual void Mark(Game::XAssetHeader header, ZoneBuilder::Zone* builder) { /*ErrorTypeNotSupported(this);*/ };
|
virtual void Mark(Game::XAssetHeader /*header*/, ZoneBuilder::Zone* /*builder*/) { /*ErrorTypeNotSupported(this);*/ };
|
||||||
virtual void Save(Game::XAssetHeader header, ZoneBuilder::Zone* builder) { /*ErrorTypeNotSupported(this);*/ };
|
virtual void Save(Game::XAssetHeader /*header*/, ZoneBuilder::Zone* /*builder*/) { /*ErrorTypeNotSupported(this);*/ };
|
||||||
virtual void Dump(Game::XAssetHeader header) { /*ErrorTypeNotSupported(this);*/ };
|
virtual void Dump(Game::XAssetHeader /*header*/) { /*ErrorTypeNotSupported(this);*/ };
|
||||||
virtual void Load(Game::XAssetHeader* header, std::string name, ZoneBuilder::Zone* builder) { /*ErrorTypeNotSupported(this);*/ };
|
virtual void Load(Game::XAssetHeader* /*header*/, std::string name, ZoneBuilder::Zone* /*builder*/) { /*ErrorTypeNotSupported(this);*/ };
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef Game::XAssetHeader(Callback)(Game::XAssetType type, std::string name);
|
typedef Game::XAssetHeader(Callback)(Game::XAssetType type, std::string name);
|
||||||
|
@ -247,7 +247,7 @@ namespace Components
|
|||||||
Proto::Auth::Certificate cert;
|
Proto::Auth::Certificate cert;
|
||||||
if (cert.ParseFromString(::Utils::IO::ReadFile("players/guid.dat")))
|
if (cert.ParseFromString(::Utils::IO::ReadFile("players/guid.dat")))
|
||||||
{
|
{
|
||||||
Auth::GuidKey.Import(cert.privatekey(), PK_PRIVATE);
|
Auth::GuidKey.Import(cert.privatekey());
|
||||||
Auth::GuidToken = cert.token();
|
Auth::GuidToken = cert.token();
|
||||||
Auth::ComputeToken = cert.ctoken();
|
Auth::ComputeToken = cert.ctoken();
|
||||||
}
|
}
|
||||||
@ -386,7 +386,7 @@ namespace Components
|
|||||||
Utils::Hook(0x41D3E3, Auth::SendConnectDataStub, HOOK_CALL).Install()->Quick();
|
Utils::Hook(0x41D3E3, Auth::SendConnectDataStub, HOOK_CALL).Install()->Quick();
|
||||||
|
|
||||||
// Guid command
|
// Guid command
|
||||||
Command::Add("guid", [] (Command::Params params)
|
Command::Add("guid", [] (Command::Params)
|
||||||
{
|
{
|
||||||
Logger::Print("Your guid: %llX\n", Steam::SteamUser()->GetSteamID().Bits);
|
Logger::Print("Your guid: %llX\n", Steam::SteamUser()->GetSteamID().Bits);
|
||||||
});
|
});
|
||||||
|
@ -137,7 +137,7 @@ namespace Components
|
|||||||
// Disable native noclip command
|
// Disable native noclip command
|
||||||
Utils::Hook::Nop(0x474846, 5);
|
Utils::Hook::Nop(0x474846, 5);
|
||||||
|
|
||||||
Command::Add("noclip", [] (Command::Params params)
|
Command::Add("noclip", [] (Command::Params)
|
||||||
{
|
{
|
||||||
if (!Game::CL_IsCgameInitialized())
|
if (!Game::CL_IsCgameInitialized())
|
||||||
{
|
{
|
||||||
@ -170,7 +170,7 @@ namespace Components
|
|||||||
Logger::Print("Noclip toggled\n");
|
Logger::Print("Noclip toggled\n");
|
||||||
});
|
});
|
||||||
|
|
||||||
Command::Add("ufo", [] (Command::Params params)
|
Command::Add("ufo", [] (Command::Params)
|
||||||
{
|
{
|
||||||
if (!Game::CL_IsCgameInitialized())
|
if (!Game::CL_IsCgameInitialized())
|
||||||
{
|
{
|
||||||
|
@ -40,7 +40,7 @@ namespace Components
|
|||||||
nc->flags |= MG_F_SEND_AND_CLOSE;
|
nc->flags |= MG_F_SEND_AND_CLOSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Download::ListHandler(mg_connection *nc, int ev, void *ev_data)
|
void Download::ListHandler(mg_connection* nc, int ev, void* /*ev_data*/)
|
||||||
{
|
{
|
||||||
// Only handle http requests
|
// Only handle http requests
|
||||||
if (ev != MG_EV_HTTP_REQUEST) return;
|
if (ev != MG_EV_HTTP_REQUEST) return;
|
||||||
@ -150,7 +150,7 @@ namespace Components
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Download::InfoHandler(mg_connection *nc, int ev, void *ev_data)
|
void Download::InfoHandler(mg_connection* nc, int ev, void* /*ev_data*/)
|
||||||
{
|
{
|
||||||
// Only handle http requests
|
// Only handle http requests
|
||||||
if (ev != MG_EV_HTTP_REQUEST) return;
|
if (ev != MG_EV_HTTP_REQUEST) return;
|
||||||
|
@ -136,7 +136,7 @@ namespace Components
|
|||||||
Dvar::RegistrationSignal.connect(callback);
|
Dvar::RegistrationSignal.connect(callback);
|
||||||
}
|
}
|
||||||
|
|
||||||
Game::dvar_t* Dvar::RegisterName(const char* name, const char* default, Game::dvar_flag flag, const char* description)
|
Game::dvar_t* Dvar::RegisterName(const char* name, const char* /*default*/, Game::dvar_flag flag, const char* description)
|
||||||
{
|
{
|
||||||
// Run callbacks
|
// Run callbacks
|
||||||
Dvar::RegistrationSignal();
|
Dvar::RegistrationSignal();
|
||||||
|
@ -236,7 +236,7 @@ namespace Components
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Test pipe functionality by sending pings
|
// Test pipe functionality by sending pings
|
||||||
Command::Add("ipcping", [] (Command::Params params)
|
Command::Add("ipcping", [] (Command::Params)
|
||||||
{
|
{
|
||||||
Logger::Print("Sending ping to pipe!\n");
|
Logger::Print("Sending ping to pipe!\n");
|
||||||
IPCPipe::Write("ping", "");
|
IPCPipe::Write("ping", "");
|
||||||
|
@ -113,7 +113,7 @@ namespace Components
|
|||||||
Localization::TempLocalizeMap.clear();
|
Localization::TempLocalizeMap.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
void __stdcall Localization::SetStringStub(const char* key, const char* value, bool isEnglish)
|
void __stdcall Localization::SetStringStub(const char* key, const char* value, bool /*isEnglish*/)
|
||||||
{
|
{
|
||||||
Localization::Set(key, value);
|
Localization::Set(key, value);
|
||||||
}
|
}
|
||||||
|
@ -41,7 +41,7 @@ namespace Components
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Game::Com_PrintMessage(0, message.data(), 0);
|
Game::Com_PrintMessage(channel, message.data(), 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -506,7 +506,7 @@ namespace Components
|
|||||||
Menus::MenuList.clear();
|
Menus::MenuList.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
Game::XAssetHeader Menus::MenuLoad(Game::XAssetType type, std::string filename)
|
Game::XAssetHeader Menus::MenuLoad(Game::XAssetType /*type*/, std::string filename)
|
||||||
{
|
{
|
||||||
return { Game::Menus_FindByName(Game::uiContext, filename.data()) };
|
return { Game::Menus_FindByName(Game::uiContext, filename.data()) };
|
||||||
}
|
}
|
||||||
@ -644,7 +644,7 @@ namespace Components
|
|||||||
Game::Menus_OpenByName(Game::uiContext, params[1]);
|
Game::Menus_OpenByName(Game::uiContext, params[1]);
|
||||||
});
|
});
|
||||||
|
|
||||||
Command::Add("reloadmenus", [] (Command::Params params)
|
Command::Add("reloadmenus", [] (Command::Params)
|
||||||
{
|
{
|
||||||
// Close all menus
|
// Close all menus
|
||||||
Game::Menus_CloseAll(Game::uiContext);
|
Game::Menus_CloseAll(Game::uiContext);
|
||||||
|
@ -25,7 +25,7 @@ namespace Components
|
|||||||
return ModList::Mods.size();
|
return ModList::Mods.size();
|
||||||
}
|
}
|
||||||
|
|
||||||
const char* ModList::GetItemText(unsigned int index, int column)
|
const char* ModList::GetItemText(unsigned int index, int /*column*/)
|
||||||
{
|
{
|
||||||
if (index < ModList::Mods.size())
|
if (index < ModList::Mods.size())
|
||||||
{
|
{
|
||||||
|
@ -778,7 +778,7 @@ namespace Components
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
Command::Add("listnodes", [] (Command::Params params)
|
Command::Add("listnodes", [] (Command::Params)
|
||||||
{
|
{
|
||||||
Logger::Print("Nodes: %d (%d)\n", Node::Nodes.size(), Node::GetValidNodeCount());
|
Logger::Print("Nodes: %d (%d)\n", Node::Nodes.size(), Node::GetValidNodeCount());
|
||||||
|
|
||||||
@ -803,7 +803,7 @@ namespace Components
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
Command::Add("syncnodes", [] (Command::Params params)
|
Command::Add("syncnodes", [] (Command::Params)
|
||||||
{
|
{
|
||||||
Logger::Print("Re-Synchronizing nodes...\n");
|
Logger::Print("Re-Synchronizing nodes...\n");
|
||||||
|
|
||||||
|
@ -69,7 +69,7 @@ namespace Components
|
|||||||
Command::Execute("openmenu menu_xboxlive_partyended");
|
Command::Execute("openmenu menu_xboxlive_partyended");
|
||||||
}
|
}
|
||||||
|
|
||||||
Game::dvar_t* Party::RegisterMinPlayers(const char* name, int value, int min, int max, Game::dvar_flag flag, const char* description)
|
Game::dvar_t* Party::RegisterMinPlayers(const char* name, int /*value*/, int /*min*/, int max, Game::dvar_flag flag, const char* description)
|
||||||
{
|
{
|
||||||
return Dvar::Register<int>(name, 1, 1, max, Game::dvar_flag::DVAR_FLAG_WRITEPROTECTED | flag, description).Get<Game::dvar_t*>();
|
return Dvar::Register<int>(name, 1, 1, max, Game::dvar_flag::DVAR_FLAG_WRITEPROTECTED | flag, description).Get<Game::dvar_t*>();
|
||||||
}
|
}
|
||||||
@ -249,7 +249,7 @@ namespace Components
|
|||||||
|
|
||||||
Party::Connect(Network::Address(params[1]));
|
Party::Connect(Network::Address(params[1]));
|
||||||
});
|
});
|
||||||
Command::Add("reconnect", [] (Command::Params params)
|
Command::Add("reconnect", [] (Command::Params)
|
||||||
{
|
{
|
||||||
Party::Connect(Party::Container.Target);
|
Party::Connect(Party::Container.Target);
|
||||||
});
|
});
|
||||||
|
@ -17,7 +17,7 @@ namespace Components
|
|||||||
|
|
||||||
void QuickPatch::ShutdownStub(int channel, const char* message)
|
void QuickPatch::ShutdownStub(int channel, const char* message)
|
||||||
{
|
{
|
||||||
Game::Com_Printf(0, message);
|
Game::Com_Printf(channel, message);
|
||||||
QuickPatch::ShutdownSignal();
|
QuickPatch::ShutdownSignal();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -362,12 +362,12 @@ namespace Components
|
|||||||
// Patch selectStringTableEntryInDvar
|
// Patch selectStringTableEntryInDvar
|
||||||
Utils::Hook::Set(0x405959, QuickPatch::SelectStringTableEntryInDvarStub);
|
Utils::Hook::Set(0x405959, QuickPatch::SelectStringTableEntryInDvarStub);
|
||||||
|
|
||||||
Command::Add("unlockstats", [] (Command::Params params)
|
Command::Add("unlockstats", [] (Command::Params)
|
||||||
{
|
{
|
||||||
QuickPatch::UnlockStats();
|
QuickPatch::UnlockStats();
|
||||||
});
|
});
|
||||||
|
|
||||||
Command::Add("crash", [] (Command::Params params)
|
Command::Add("crash", [] (Command::Params)
|
||||||
{
|
{
|
||||||
throw new std::exception();
|
throw new std::exception();
|
||||||
});
|
});
|
||||||
|
@ -84,7 +84,7 @@ namespace Components
|
|||||||
// Only execute this when building zones
|
// Only execute this when building zones
|
||||||
if (!ZoneBuilder::IsEnabled()) return;
|
if (!ZoneBuilder::IsEnabled()) return;
|
||||||
|
|
||||||
AssetHandler::OnLoad([] (Game::XAssetType type, Game::XAssetHeader asset, std::string filename, bool* restrict)
|
AssetHandler::OnLoad([] (Game::XAssetType type, Game::XAssetHeader asset, std::string filename, bool* /*restrict*/)
|
||||||
{
|
{
|
||||||
// Only intercept playerdatadef loading
|
// Only intercept playerdatadef loading
|
||||||
if (filename != "mp/playerdata.def" || type != Game::XAssetType::ASSET_TYPE_STRUCTUREDDATADEF) return;
|
if (filename != "mp/playerdata.def" || type != Game::XAssetType::ASSET_TYPE_STRUCTUREDDATADEF) return;
|
||||||
|
@ -252,7 +252,7 @@ namespace Components
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Omit column here
|
// Omit column here
|
||||||
const char* Theatre::GetDemoText(unsigned int item, int column)
|
const char* Theatre::GetDemoText(unsigned int item, int /*column*/)
|
||||||
{
|
{
|
||||||
if (item < Theatre::DemoContainer.Demos.size())
|
if (item < Theatre::DemoContainer.Demos.size())
|
||||||
{
|
{
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
namespace Components
|
namespace Components
|
||||||
{
|
{
|
||||||
Game::XAssetHeader Weapon::WeaponFileLoad(Game::XAssetType type, std::string filename)
|
Game::XAssetHeader Weapon::WeaponFileLoad(Game::XAssetType /*type*/, std::string filename)
|
||||||
{
|
{
|
||||||
Game::XAssetHeader header = { 0 };
|
Game::XAssetHeader header = { 0 };
|
||||||
|
|
||||||
|
@ -500,7 +500,7 @@ namespace Components
|
|||||||
Utils::Hook::Set<DWORD>(0x64A029, 0x38400000); // 900 MiB
|
Utils::Hook::Set<DWORD>(0x64A029, 0x38400000); // 900 MiB
|
||||||
Utils::Hook::Set<DWORD>(0x64A057, 0x38400000);
|
Utils::Hook::Set<DWORD>(0x64A057, 0x38400000);
|
||||||
|
|
||||||
AssetHandler::OnLoad([](Game::XAssetType type, Game::XAssetHeader asset, std::string name, bool* restrict)
|
AssetHandler::OnLoad([](Game::XAssetType type, Game::XAssetHeader /*asset*/, std::string name, bool* /*restrict*/)
|
||||||
{
|
{
|
||||||
if (!ZoneBuilder::TraceZone.empty() && ZoneBuilder::TraceZone == FastFiles::Current())
|
if (!ZoneBuilder::TraceZone.empty() && ZoneBuilder::TraceZone == FastFiles::Current())
|
||||||
{
|
{
|
||||||
|
@ -317,11 +317,16 @@ namespace Game
|
|||||||
float UI_GetScoreboardLeft(void* a1)
|
float UI_GetScoreboardLeft(void* a1)
|
||||||
{
|
{
|
||||||
static int func = 0x590390;
|
static int func = 0x590390;
|
||||||
|
float result = 0;
|
||||||
|
|
||||||
__asm
|
__asm
|
||||||
{
|
{
|
||||||
mov eax, [esp + 4h]
|
mov eax, a1
|
||||||
call func
|
call func
|
||||||
|
mov result, eax
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *DB_GetXAssetName(XAsset *asset)
|
const char *DB_GetXAssetName(XAsset *asset)
|
||||||
|
@ -46,7 +46,7 @@ namespace Main
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved)
|
BOOL APIENTRY DllMain(HMODULE /*hModule*/, DWORD ul_reason_for_call, LPVOID /*lpReserved*/)
|
||||||
{
|
{
|
||||||
if (ul_reason_for_call == DLL_PROCESS_ATTACH)
|
if (ul_reason_for_call == DLL_PROCESS_ATTACH)
|
||||||
{
|
{
|
||||||
|
@ -5,9 +5,6 @@
|
|||||||
|
|
||||||
#ifndef RESOURCE_DATA
|
#ifndef RESOURCE_DATA
|
||||||
|
|
||||||
// Disable irrelevant warnings
|
|
||||||
#pragma warning(disable: 4100) // Unreferenced parameter (steam has to have them and other stubs as well, due to their calling convention)
|
|
||||||
|
|
||||||
#define VC_EXTRALEAN
|
#define VC_EXTRALEAN
|
||||||
#define WIN32_LEAN_AND_MEAN
|
#define WIN32_LEAN_AND_MEAN
|
||||||
|
|
||||||
@ -46,6 +43,7 @@
|
|||||||
// Ignore the warnings, it's no our code!
|
// Ignore the warnings, it's no our code!
|
||||||
#pragma warning(push)
|
#pragma warning(push)
|
||||||
#pragma warning(disable: 4005)
|
#pragma warning(disable: 4005)
|
||||||
|
#pragma warning(disable: 4100)
|
||||||
#pragma warning(disable: 4389)
|
#pragma warning(disable: 4389)
|
||||||
#pragma warning(disable: 4702)
|
#pragma warning(disable: 4702)
|
||||||
#pragma warning(disable: 6001)
|
#pragma warning(disable: 6001)
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
using namespace Components;
|
using namespace Components;
|
||||||
|
|
||||||
|
STEAM_IGNORE_WARNINGS_START
|
||||||
|
|
||||||
namespace Steam
|
namespace Steam
|
||||||
{
|
{
|
||||||
const char *Friends::GetPersonaName()
|
const char *Friends::GetPersonaName()
|
||||||
@ -118,3 +120,5 @@ namespace Steam
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
STEAM_IGNORE_WARNINGS_END
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
#include "STDInclude.hpp"
|
#include "STDInclude.hpp"
|
||||||
|
|
||||||
|
STEAM_IGNORE_WARNINGS_START
|
||||||
|
|
||||||
namespace Steam
|
namespace Steam
|
||||||
{
|
{
|
||||||
void GameServer::LogOn()
|
void GameServer::LogOn()
|
||||||
@ -89,3 +91,5 @@ namespace Steam
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
STEAM_IGNORE_WARNINGS_END
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
#include "STDInclude.hpp"
|
#include "STDInclude.hpp"
|
||||||
|
|
||||||
|
STEAM_IGNORE_WARNINGS_START
|
||||||
|
|
||||||
namespace Steam
|
namespace Steam
|
||||||
{
|
{
|
||||||
void MasterServerUpdater::SetActive(bool bActive)
|
void MasterServerUpdater::SetActive(bool bActive)
|
||||||
@ -65,3 +67,5 @@ namespace Steam
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
STEAM_IGNORE_WARNINGS_END
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
#include "STDInclude.hpp"
|
#include "STDInclude.hpp"
|
||||||
|
|
||||||
|
STEAM_IGNORE_WARNINGS_START
|
||||||
|
|
||||||
namespace Steam
|
namespace Steam
|
||||||
{
|
{
|
||||||
int Matchmaking::GetFavoriteGameCount()
|
int Matchmaking::GetFavoriteGameCount()
|
||||||
@ -191,3 +193,5 @@ namespace Steam
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
STEAM_IGNORE_WARNINGS_END
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
#include "STDInclude.hpp"
|
#include "STDInclude.hpp"
|
||||||
|
|
||||||
|
STEAM_IGNORE_WARNINGS_START
|
||||||
|
|
||||||
namespace Steam
|
namespace Steam
|
||||||
{
|
{
|
||||||
bool Networking::SendP2PPacket(SteamID steamIDRemote, const void *pubData, unsigned int cubData, int eP2PSendType)
|
bool Networking::SendP2PPacket(SteamID steamIDRemote, const void *pubData, unsigned int cubData, int eP2PSendType)
|
||||||
@ -102,3 +104,5 @@ namespace Steam
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
STEAM_IGNORE_WARNINGS_END
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
#include "STDInclude.hpp"
|
#include "STDInclude.hpp"
|
||||||
|
|
||||||
|
STEAM_IGNORE_WARNINGS_START
|
||||||
|
|
||||||
namespace Steam
|
namespace Steam
|
||||||
{
|
{
|
||||||
bool RemoteStorage::FileWrite(const char *pchFile, const void *pvData, int cubData)
|
bool RemoteStorage::FileWrite(const char *pchFile, const void *pvData, int cubData)
|
||||||
@ -41,3 +43,5 @@ namespace Steam
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
STEAM_IGNORE_WARNINGS_END
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
#include "STDInclude.hpp"
|
#include "STDInclude.hpp"
|
||||||
|
|
||||||
|
STEAM_IGNORE_WARNINGS_START
|
||||||
|
|
||||||
namespace Steam
|
namespace Steam
|
||||||
{
|
{
|
||||||
int User::GetHSteamUser()
|
int User::GetHSteamUser()
|
||||||
@ -100,3 +102,5 @@ namespace Steam
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
STEAM_IGNORE_WARNINGS_END
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
#include "STDInclude.hpp"
|
#include "STDInclude.hpp"
|
||||||
|
|
||||||
|
STEAM_IGNORE_WARNINGS_START
|
||||||
|
|
||||||
namespace Steam
|
namespace Steam
|
||||||
{
|
{
|
||||||
unsigned int Utils::GetSecondsSinceAppActive()
|
unsigned int Utils::GetSecondsSinceAppActive()
|
||||||
@ -95,3 +97,5 @@ namespace Steam
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
STEAM_IGNORE_WARNINGS_END
|
||||||
|
@ -2,6 +2,11 @@
|
|||||||
|
|
||||||
#define STEAM_EXPORT extern "C" __declspec(dllexport)
|
#define STEAM_EXPORT extern "C" __declspec(dllexport)
|
||||||
|
|
||||||
|
#define STEAM_IGNORE_WARNINGS_START __pragma(warning(push)) \
|
||||||
|
__pragma(warning(disable: 4100))
|
||||||
|
|
||||||
|
#define STEAM_IGNORE_WARNINGS_END __pragma(warning(pop))
|
||||||
|
|
||||||
typedef union
|
typedef union
|
||||||
{
|
{
|
||||||
struct
|
struct
|
||||||
|
@ -194,7 +194,7 @@ namespace Utils
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Import(std::string key, int type = PK_PRIVATE)
|
void Import(std::string key)
|
||||||
{
|
{
|
||||||
this->Free();
|
this->Free();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user