mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-10 00:58:43 +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();
|
||||
|
||||
if (args.length == 0) {
|
||||
loadSkeleton(
|
||||
Gdx.files.internal(Gdx.app.getPreferences("spine-skeletonviewer").getString("lastFile", "spineboy/spineboy.json")));
|
||||
FileHandle file = Gdx.files
|
||||
.internal(Gdx.app.getPreferences("spine-skeletonviewer").getString("lastFile", "spineboy/spineboy.json"));
|
||||
if (file.exists()) loadSkeleton(file);
|
||||
} else
|
||||
loadSkeleton(Gdx.files.internal(args[0]));
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user