equal
deleted
inserted
replaced
44 void GameConfig::cmdMapgen(int mapgen) |
44 void GameConfig::cmdMapgen(int mapgen) |
45 { |
45 { |
46 cfgAppend("e$mapgen " + QByteArray::number(mapgen)); |
46 cfgAppend("e$mapgen " + QByteArray::number(mapgen)); |
47 } |
47 } |
48 |
48 |
|
49 bool GameConfig::isPreview() |
|
50 { |
|
51 return true; |
|
52 } |
|
53 |
49 void GameConfig::cfgAppend(const QByteArray& cmd) |
54 void GameConfig::cfgAppend(const QByteArray& cmd) |
50 { |
55 { |
51 quint8 len = cmd.size(); |
56 quint8 len = cmd.size(); |
52 m_cfg.append(QByteArray::fromRawData(reinterpret_cast<const char*>(&len), 1) + cmd); |
57 m_cfg.append(QByteArray::fromRawData(reinterpret_cast<const char*>(&len), 1) + cmd); |
53 } |
58 } |