summaryrefslogtreecommitdiff
path: root/Source/Library/Userland/App/Application.proto.h
diff options
context:
space:
mode:
authorAlexis211 <alexis211@gmail.com>2009-12-17 11:18:19 +0100
committerAlexis211 <alexis211@gmail.com>2009-12-17 11:18:19 +0100
commit4f9078c0f06e0cf0cb7bb164fc72fb9918c68e6a (patch)
tree34815307b54bf8639ba89f2efddf03e96ee4c0d0 /Source/Library/Userland/App/Application.proto.h
parent3d5aca66b9712758aecb2e80bc5b2fb3df6256a4 (diff)
downloadMelon-4f9078c0f06e0cf0cb7bb164fc72fb9918c68e6a.tar.gz
Melon-4f9078c0f06e0cf0cb7bb164fc72fb9918c68e6a.zip
Added some option handling featurs to the default ShellApp class
Diffstat (limited to 'Source/Library/Userland/App/Application.proto.h')
-rw-r--r--Source/Library/Userland/App/Application.proto.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/Library/Userland/App/Application.proto.h b/Source/Library/Userland/App/Application.proto.h
index 1f3a963..46b0975 100644
--- a/Source/Library/Userland/App/Application.proto.h
+++ b/Source/Library/Userland/App/Application.proto.h
@@ -12,14 +12,13 @@ extern u32int start_dtors, end_dtors;
class Application {
public:
Process pr;
- Vector<String> args;
- Application() : pr(Process::get()), args(pr.argc()) {
- for (u32int i = 0; i < args.size(); i++) args[i] = pr.argv(i);
+ Application() : pr(Process::get()) {
//TODO : add default signal handlers
}
virtual ~Application() {}
+ virtual void init() {} //Do anything that can't be done in the constructor
virtual int run() = 0; //Application's main loop
virtual void doEvents() {