MCPcopy Create free account
hub / github.com/agateau/pixelwheels / setExtraAssetsDir

Method setExtraAssetsDir

core/src/com/agateau/utils/FileUtils.java:70–78  ·  view source on GitHub ↗
(String dir)

Source from the content-addressed store, hash-verified

68 }
69
70 public static void setExtraAssetsDir(String dir) {
71 FileHandle handle = Gdx.files.absolute(dir);
72 if (!handle.isDirectory()) {
73 NLog.e("'%s' is not a directory", dir);
74 return;
75 }
76 NLog.i("Set '%s' as the extra asset directory", handle.path());
77 sExtraAssetsHandle = handle;
78 }
79
80 public static FileHandle assets(String path) {
81 if (sExtraAssetsHandle != null) {

Callers 1

setupExtraAssetsDirMethod · 0.95

Calls 3

eMethod · 0.95
iMethod · 0.95
absoluteMethod · 0.80

Tested by

no test coverage detected