[nostalgia] Make almost everyting noexcept

This commit is contained in:
2021-04-20 01:56:41 -05:00
parent 161780cb91
commit 6ece0b6f9b
22 changed files with 139 additions and 136 deletions
+3 -3
View File
@@ -14,7 +14,7 @@
namespace nostalgia::core {
char *loadRom(const char*) {
ox::Result<char*> loadRom(const char*) noexcept {
// put the header in the wrong order to prevent mistaking this code for the
// media section
constexpr auto headerP2 = "_HEADER_________";
@@ -29,10 +29,10 @@ char *loadRom(const char*) {
return current + headerLen;
}
}
return nullptr;
return OxError(1);
}
void unloadRom(char*) {
void unloadRom(char*) noexcept {
}
}