Open source Star Ruler 2 source code!

This commit is contained in:
Lucas de Vries
2018-07-17 14:15:37 +02:00
commit cc307720ff
4342 changed files with 2365070 additions and 0 deletions
+23
View File
@@ -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 {
};
};