Clear Flash log by default
This commit is contained in:
@@ -952,7 +952,7 @@ class FlashHelper {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public static function tailLog (start:Int = 0):Void {
|
public static function tailLog (start:Int = 0, clear:Bool = true):Void {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
@@ -968,6 +968,16 @@ class FlashHelper {
|
|||||||
|
|
||||||
if (FileSystem.exists (path)) {
|
if (FileSystem.exists (path)) {
|
||||||
|
|
||||||
|
if (clear) {
|
||||||
|
|
||||||
|
try {
|
||||||
|
|
||||||
|
File.saveContent (path, "");
|
||||||
|
|
||||||
|
} catch (e:Dynamic) {}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
|
|
||||||
var input = null;
|
var input = null;
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ namespace lime {
|
|||||||
SRes LZMA_progress (void *p, UInt64 inSize, UInt64 outSize) { return SZ_OK; }
|
SRes LZMA_progress (void *p, UInt64 inSize, UInt64 outSize) { return SZ_OK; }
|
||||||
void *LZMA_alloc (void *p, size_t size) { return malloc (size); }
|
void *LZMA_alloc (void *p, size_t size) { return malloc (size); }
|
||||||
|
|
||||||
void LZMA_free(void *p, void *address) {
|
void LZMA_free (void *p, void *address) {
|
||||||
|
|
||||||
if (address == NULL) return;
|
if (address == NULL) return;
|
||||||
free (address);
|
free (address);
|
||||||
|
|||||||
Reference in New Issue
Block a user