mirror of
https://github.com/revanced/smali.git
synced 2025-05-28 11:50:12 +02:00
Don't use con.smali to test if we're on a windows system.
This commit is contained in:
parent
06bc17a75e
commit
4374e7babc
@ -121,23 +121,6 @@ public class ClassFileNameHandler {
|
||||
return false;
|
||||
} catch (IOException ex) {
|
||||
//if an exception occured, it's likely that we're on a windows system.
|
||||
}
|
||||
|
||||
//let's try one more reserved filename
|
||||
f = new File(path, "con.smali");
|
||||
if (f.exists()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
try {
|
||||
FileWriter writer = new FileWriter(f);
|
||||
writer.write("test");
|
||||
writer.flush();
|
||||
writer.close();
|
||||
f.delete(); //doesn't throw IOException
|
||||
return false;
|
||||
} catch (IOException ex) {
|
||||
//yup, looks like we're on a windows system
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user