diff options
author | KuroiIeWa5Da <tyuki@adu.me> | 2012-01-23 01:51:24 -0600 |
---|---|---|
committer | KuroiIeWa5Da <tyuki@adu.me> | 2012-01-23 01:51:24 -0600 |
commit | 7b23ef09829ac2c8afc842d96b3b15fdc2c91719 (patch) | |
tree | bd0962fee3d11412db573f9f087444c126b2943d /music/pokeredmusicdisasm/AbstractData.cpp | |
parent | 6b49a9f14161e6398b5cf4e1ce633197009b82f3 (diff) | |
parent | 4e9fe0f8acd2301937c38b0b085f39aa4fd51bff (diff) |
Merge
hg-commit-id: eecb568bd9b6
Diffstat (limited to 'music/pokeredmusicdisasm/AbstractData.cpp')
-rw-r--r-- | music/pokeredmusicdisasm/AbstractData.cpp | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/music/pokeredmusicdisasm/AbstractData.cpp b/music/pokeredmusicdisasm/AbstractData.cpp new file mode 100644 index 00000000..542922fe --- /dev/null +++ b/music/pokeredmusicdisasm/AbstractData.cpp @@ -0,0 +1,37 @@ +#include "AbstractData.h"
+using namespace std;
+
+AbstractData::AbstractData()
+{
+ error = false;
+}
+
+// This method must always return "" if true but can return
+// any other value for false
+string AbstractData::GenAsm()
+{
+ if(error) return ";#Error";
+ else return "";
+}
+
+bool AbstractData::IsValid(unsigned char* byte)
+{
+ return true;
+}
+
+bool AbstractData::Parse(unsigned char* byte)
+{
+ // If it's not valid, don't even bother parsing
+ if(!IsValid(byte)) return false;
+ return true;
+}
+
+unsigned int AbstractData::Arguments()
+{
+ return 0;
+}
+
+bool AbstractData::GetError()
+{
+ return error;
+}
\ No newline at end of file |