-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
224 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,29 @@ | ||
#pragma once | ||
#include <3ds.h> | ||
#include <stdexcept> | ||
|
||
#pragma once | ||
#include <3ds.h> | ||
#include <stdexcept> | ||
|
||
|
||
struct Error : public std::runtime_error { | ||
Error(u32 code) : std::runtime_error("It failed"), errorCode(code) {} | ||
Error(u32 code, const char* fn, int l) : std::runtime_error("It failed"), errorCode(code), fileName(fn), line(l) {} | ||
|
||
u32 getErrorCode(void) const throw(){ | ||
u32 getErrorCode(void) const throw(){ | ||
return errorCode; | ||
} | ||
|
||
const char* getFileName(void) const throw(){ | ||
return fileName; | ||
} | ||
|
||
int getLine(void) const throw(){ | ||
return line; | ||
} | ||
|
||
virtual const char* what() const throw(){ | ||
return "It failed"; | ||
} | ||
|
||
protected: | ||
u32 errorCode; | ||
const char* fileName; | ||
int line; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
388c9d8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is for DSiWare, not for the NDS card manager I want to make.
Thanks anyways :)
388c9d8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you :D
0xD0688 (but not 0xE0284) is used by PokéTransporter. This function seems to have no less than 33 args ...