浏览代码

Fixed naming of pck file

Bastiaan Olij 8 年之前
父节点
当前提交
913e5cabbd
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      core/project_settings.cpp

+ 2 - 2
core/project_settings.cpp

@@ -307,8 +307,8 @@ Error ProjectSettings::setup(const String &p_path, const String &p_main_pack) {
 	if (exec_path != "") {
 	if (exec_path != "") {
 		bool found = false;
 		bool found = false;
 
 
-		// get our filename without our path (note, not using exec_path.get_basename anymore because not all file systems have dots in their file names!)
-		String filebase_name = exec_path.get_file();
+		// get our filename without our path (note, using exec_path.get_file before get_basename anymore because not all file systems have dots in their file names!)
+		String filebase_name = exec_path.get_file().get_basename();
 
 
 		// try to open at the location of executable
 		// try to open at the location of executable
 		String datapack_name = exec_path.get_base_dir().plus_file(filebase_name) + ".pck";
 		String datapack_name = exec_path.get_base_dir().plus_file(filebase_name) + ".pck";