CrashSectionLiteLoaderBrand.java
823 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
* This file is part of LiteLoader.
* Copyright (C) 2012-16 Adam Mummery-Smith
* All Rights Reserved.
*/
package com.mumfrey.liteloader.crashreport;
import com.mumfrey.liteloader.core.LiteLoader;
import net.minecraft.crash.CrashReport;
public class CrashSectionLiteLoaderBrand
{
final CrashReport crashReport;
public CrashSectionLiteLoaderBrand(CrashReport report)
{
this.crashReport = report;
}
/* (non-Javadoc)
* @see java.lang.Object#toString()
*/
@Override
public String toString()
{
String brand = null;
try
{
brand = LiteLoader.getBranding();
}
catch (Exception ex)
{
brand = "LiteLoader startup incomplete";
}
return brand == null ? "Unknown / None" : brand;
}
}