mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
Don't try to load last file if missing.
This commit is contained in:
parent
a40fdb4865
commit
26cce82206
@ -102,8 +102,9 @@ public class SkeletonViewer extends ApplicationAdapter {
|
|||||||
ui.loadPrefs();
|
ui.loadPrefs();
|
||||||
|
|
||||||
if (args.length == 0) {
|
if (args.length == 0) {
|
||||||
loadSkeleton(
|
FileHandle file = Gdx.files
|
||||||
Gdx.files.internal(Gdx.app.getPreferences("spine-skeletonviewer").getString("lastFile", "spineboy/spineboy.json")));
|
.internal(Gdx.app.getPreferences("spine-skeletonviewer").getString("lastFile", "spineboy/spineboy.json"));
|
||||||
|
if (file.exists()) loadSkeleton(file);
|
||||||
} else
|
} else
|
||||||
loadSkeleton(Gdx.files.internal(args[0]));
|
loadSkeleton(Gdx.files.internal(args[0]));
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user