case ClientReceiveServerInfo:
{
network::Utils::Deserialize(command->body(), & stage_);
- const auto& model_list = ResourceManager::GetModelNameList();
- if (std::find(model_list.begin(),model_list.end(), stage_) == model_list.end()) {
+ if (ResourceManager::NameToFullPath(unicode::ToTString(stage_)).empty()) {
status_ = STATUS_ERROR_NOSTAGE;
} else {
status_ = STATUS_READY;
static void BuildModelFileTree();
static void CacheBakedModel();
static ModelHandle LoadModelFromName(const tstring&, bool async = false);
+
static void RequestModelFromName(const tstring&);
static bool IsCachedModelName(const tstring&);
static const std::vector<std::string>& GetModelNameList();
+
static void SetModelEdgeSize(int handle);
static void set_model_edge_size(float edge_size);
- private:
static tstring NameToFullPath(const tstring& name);
private:
zip.write(os.path.join(base_dir, 'license.txt'), 'license.txt')
zip.write(os.path.join(base_dir, 'mmd.txt'), 'mmd.txt')
+zip.write(os.path.join(base_dir, 'server/config.json'), 'server/config.json')
+
zip.write(os.path.join(bin_path, 'config.json'), 'config.json')
zip.write(os.path.join(bin_path, 'server/server.exe'), 'server/server.exe')
{
"port": 39390,
- "server_name": "MMO Server 公式",
- "stage": "stage:ã\81\8cã\82\8cã\81\8d町",
+ "server_name": "MMO Server",
+ "stage": "stage:ã\82±ã\83ã\83ªã\83³町",
"capacity": 20
}
\ No newline at end of file