From 2009d42eab537ae18116eeb7b3a5fff7c0c51078 Mon Sep 17 00:00:00 2001 From: mgosselinUTC Date: Mon, 16 Mar 2015 15:05:01 -0400 Subject: [PATCH] made it like...work --- src/MAndEngine/AppHelper.java | 6 ++++-- src/MAndEngine/Engine.java | 2 +- src/MAndEngine/Variable.java | 27 +++++++++------------------ 3 files changed, 14 insertions(+), 21 deletions(-) diff --git a/src/MAndEngine/AppHelper.java b/src/MAndEngine/AppHelper.java index 23f2493..1f17322 100644 --- a/src/MAndEngine/AppHelper.java +++ b/src/MAndEngine/AppHelper.java @@ -7,8 +7,10 @@ import java.util.ArrayList; import java.util.Scanner; /** - * also a bit of an app helper class thing - * well... i renamed it so, now it just is an app helper class thing. + * this class is a jack of all trades when it comes to information about apps. + * it can tell you things about apps and as well, initialize a list of them + * so that you can later use them in your main menu app! + * * @author Marcus * */ diff --git a/src/MAndEngine/Engine.java b/src/MAndEngine/Engine.java index a5e1f55..36585c4 100644 --- a/src/MAndEngine/Engine.java +++ b/src/MAndEngine/Engine.java @@ -135,7 +135,7 @@ public class Engine extends Canvas implements KeyListener, MouseMotionListener, /** * debug level. */ - public static int debug = 0; + public static int debug = 2; /** * SRSLY CALL DYS ONCE. DAS IT. ALL YOU GET. ONE SHOT. because this is a diff --git a/src/MAndEngine/Variable.java b/src/MAndEngine/Variable.java index 7388ffa..f6fc77b 100644 --- a/src/MAndEngine/Variable.java +++ b/src/MAndEngine/Variable.java @@ -7,11 +7,9 @@ import java.util.Formatter; import java.util.Scanner; /** - * to note, will not work on Mac yet. - * - * edit: WILL WORK ON MAC MOTHER FUCKERS - * - * edit: idek if this will work on macs because app data... + * helpful little class that creates a string variable that gets saved in application + * data. when you write to it, it gets saved as that file. and yes it only works on + * windows because i used backslashes and not the respective seperative character. * * @author Marcus * @@ -62,8 +60,8 @@ public class Variable { String str = getValueFromFile(); // if we could not load a value from the file - // AKA didnt fucking exist. - // ORRRRRRR if you were an ass, and forced + // AKA didnt exist. + // ORRRRRRR if you forced // the value. if (str == null) { this.value = value; @@ -113,9 +111,6 @@ public class Variable { f.format("" + value); f.close(); } catch (Exception e) { - // if(weArriveHere){ - // we.are("fucked"); - // } e.printStackTrace(); } } @@ -134,19 +129,15 @@ public class Variable { private void createFile() { //make the directory because god knows, java can't do that for us //when we say we want a new file in an unknown folder noooooo.... - //jackass java - File f = new File(fileDir); - f.mkdirs(); + File file = new File(fileDir); + file.mkdirs(); //no onto the file itself. create the object - f = new File(filePath); + file = new File(filePath); try { //hopefully make the file... - f.createNewFile(); + file.createNewFile(); } catch (IOException e) { - // if(weArriveHere){ - // we.are("fucked"); - // } e.printStackTrace(); } }