uase2 发表于 2025-3-31 20:29:07

现在的客户端为啥在win11下无法启动

xx00 发表于 2025-4-8 17:42:14

看看能不能用 感谢分享

13049582598 发表于 2025-4-20 14:15:57

11111111111111111111111111

love13141008 发表于 2025-7-14 00:07:29

看看能不能用 感谢分享

雷堤斯 发表于 2025-7-16 18:27:45

楼主发贴辛苦了,谢谢楼主分享!

jiahai2003 发表于 2025-7-19 14:47:37

支持一下,感谢分享~~~

时尚优优 发表于 2025-7-24 13:18:28

大佬能发给完整服务端吗 我找了好几个服务端替换启动都是直接闪退

liguohu999 发表于 2025-10-24 10:37:45

黑归来 服务端主程序+客户端 12职业端

ghostdeall 发表于 4 天前

class Config {
public:
    static std::string GetSharePath() {
      // 优先检查 share 目录
      if (DirectoryExists("./share/")) {
            return "./share/";
      }
      // 如果 share 目录不存在,使用当前目录
      return "./";
    }
   
    static std::string GetItemetcPath() {
      return GetSharePath() + "itemetc.csv";
    }
   
    static std::string GetItemarmorPath() {
      return GetSharePath() + "itemarmor.csv";
    }
   
    static std::string GetItemweaponPath() {
      return GetSharePath() + "itemweapon.csv";
    }
   
    static std::string GetSkillnamePath() {
      return GetSharePath() + "skillname.csv";
    }
   
private:
    static bool DirectoryExists(const std::string& path) {
      // 实现目录存在性检查
      struct stat info;
      return stat(path.c_str(), &info) == 0 && (info.st_mode & S_IFDIR);
    }
};

f5222622 发表于 4 天前

6666666666
页: 1 2 3 4 5 6 [7] 8
查看完整版本: 挑战 暗黑归来 服务端主程序+客户端 12职业端