Open source Star Ruler 2 source code!
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
#pragma once
|
||||
|
||||
#include <exception>
|
||||
|
||||
namespace audio {
|
||||
|
||||
class SLoadError : public std::exception {
|
||||
bool badFile;
|
||||
public:
|
||||
#ifdef LIN_MODE
|
||||
SLoadError(const char* msg, bool wasBadFile = false) : std::exception(), badFile(wasBadFile) {
|
||||
#else
|
||||
SLoadError(const char* msg, bool wasBadFile = false) : std::exception(msg, 0), badFile(wasBadFile) {
|
||||
#endif
|
||||
}
|
||||
|
||||
inline bool wasBadFile() const { return badFile; }
|
||||
};
|
||||
|
||||
class NotThisType {
|
||||
};
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user