Permalink
Browse files

Revert "Mark VM loading options as Cvar::CHEAT"

  • Loading branch information...
DolceTriade committed Jan 3, 2016
1 parent 77afd53 commit 67ee133ed5134cac1bf6b4f65bf75e07aaf8bc3e
Showing with 2 additions and 9 deletions.
  1. +0 −5 daemon/src/engine/framework/VirtualMachine.cpp
  2. +2 −4 daemon/src/engine/framework/VirtualMachine.h
@@ -54,11 +54,6 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#endif

namespace VM {
// Map for each VM to its loading cvar flags.
std::unordered_map<std::string, int> vmCvarFlagsMap = {
{ "cgame", Cvar::CHEAT },
{ "sgame", Cvar::NONE }
};

// Platform-specific code to load a module
static std::pair<Sys::OSHandle, IPC::Socket> InternalLoadModule(std::pair<IPC::Socket, IPC::Socket> pair, const char* const* args, bool reserve_mem, FS::File stderrRedirect = FS::File())
@@ -86,14 +86,12 @@ enum vmType_t {
TYPE_END
};

extern std::unordered_map<std::string, int> vmCvarFlagsMap;


struct VMParams {
VMParams(std::string name)
: logSyscalls("vm." + name + ".logSyscalls", "dump all the syscalls in the " + name + ".syscallLog file", Cvar::NONE, false),
vmType("vm." + name + ".type", "how the vm should be loaded for " + name, vmCvarFlagsMap[name], TYPE_NACL, 0, TYPE_END - 1),
debug("vm." + name + ".debug", "run a gdbserver on localhost:4014 to debug the VM", vmCvarFlagsMap[name], false),
vmType("vm." + name + ".type", "how the vm should be loaded for " + name, Cvar::NONE, TYPE_NACL, 0, TYPE_END - 1),
debug("vm." + name + ".debug", "run a gdbserver on localhost:4014 to debug the VM", Cvar::NONE, false),
debugLoader("vm." + name + ".debugLoader", "make nacl_loader dump information to " + name + "-nacl_loader.log", Cvar::NONE, 0, 0, 5) {
}

0 comments on commit 67ee133

Please sign in to comment.