Skip to content

Commit af05ea9

Browse files
author
Evan Hu
committed
fix PathUtil
1 parent ce46d6a commit af05ea9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<modelVersion>4.0.0</modelVersion>
77
<groupId>info.xiaomo</groupId>
88
<artifactId>g-engine</artifactId>
9-
<version>3.2.4</version>
9+
<version>3.2.5</version>
1010

1111
<properties>
1212
<maven.compiler.source>1.8</maven.compiler.source>

src/main/java/info/xiaomo/gengine/utils/PathUtil.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ public class PathUtil {
88

99
/** 获取项目目录下的game-conf文件夹目录 */
1010
public static String getConfigPath() {
11-
String path = PathUtil.class.getResource("/").getPath();
12-
return findPath(new File(path + "game-conf")) + "/";
11+
String path = System.getProperty("user.dir");
12+
return findPath(new File(path + "/game-conf")) + "/";
1313
}
1414

1515
/**

0 commit comments

Comments
 (0)