#include <stdexcept> when using std::invalid_argument
This commit is contained in:
parent
a9776b53f8
commit
88321d3ff0
@ -1,5 +1,7 @@
|
|||||||
#include "Chart.hpp"
|
#include "Chart.hpp"
|
||||||
|
|
||||||
|
#include <stdexcept>
|
||||||
|
|
||||||
#include "../Toolkit/AffineTransform.hpp"
|
#include "../Toolkit/AffineTransform.hpp"
|
||||||
|
|
||||||
namespace Data {
|
namespace Data {
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <list>
|
#include <list>
|
||||||
|
#include <stdexcept>
|
||||||
|
|
||||||
#include <memon/memon.hpp>
|
#include <memon/memon.hpp>
|
||||||
|
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
#include <stdexcept>
|
||||||
|
|
||||||
namespace fs = ghc::filesystem;
|
namespace fs = ghc::filesystem;
|
||||||
|
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
#include <stdexcept>
|
||||||
|
|
||||||
namespace Resources {
|
namespace Resources {
|
||||||
LNMarker::LNMarker(const fs::path& t_folder) :
|
LNMarker::LNMarker(const fs::path& t_folder) :
|
||||||
@ -134,6 +135,7 @@ namespace Resources {
|
|||||||
throw std::runtime_error("No long note markers found, jujube needs at least one to operate");
|
throw std::runtime_error("No long note markers found, jujube needs at least one to operate");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void LNMarkers::load_from_folder(const fs::path& lnmarkers_folder) {
|
void LNMarkers::load_from_folder(const fs::path& lnmarkers_folder) {
|
||||||
if (fs::exists(lnmarkers_folder)) {
|
if (fs::exists(lnmarkers_folder)) {
|
||||||
for (auto& p : fs::directory_iterator(lnmarkers_folder)) {
|
for (auto& p : fs::directory_iterator(lnmarkers_folder)) {
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
#include <functional>
|
#include <functional>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
#include <stdexcept>
|
||||||
|
|
||||||
namespace fs = ghc::filesystem;
|
namespace fs = ghc::filesystem;
|
||||||
|
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
#include "SplitSpriteSheet.hpp"
|
#include "SplitSpriteSheet.hpp"
|
||||||
|
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
#include <stdexcept>
|
||||||
|
|
||||||
#include <SFML/Graphics/RenderTexture.hpp>
|
#include <SFML/Graphics/RenderTexture.hpp>
|
||||||
|
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
#include "SpriteSheet.hpp"
|
#include "SpriteSheet.hpp"
|
||||||
|
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
#include <stdexcept>
|
||||||
|
|
||||||
namespace Resources {
|
namespace Resources {
|
||||||
void from_json(const nlohmann::json& j, SpriteSheet& s) {
|
void from_json(const nlohmann::json& j, SpriteSheet& s) {
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
#include "TextureCache.hpp"
|
#include "TextureCache.hpp"
|
||||||
|
|
||||||
|
#include <stdexcept>
|
||||||
|
|
||||||
namespace Textures {
|
namespace Textures {
|
||||||
AutoloadedTexture load_texture_from_path(const fs::path& path) {
|
AutoloadedTexture load_texture_from_path(const fs::path& path) {
|
||||||
auto texture = std::make_shared<sf::Texture>();
|
auto texture = std::make_shared<sf::Texture>();
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
#include "PreciseMusic.hpp"
|
#include "PreciseMusic.hpp"
|
||||||
|
|
||||||
#include <chrono>
|
#include <chrono>
|
||||||
|
#include <stdexcept>
|
||||||
|
|
||||||
namespace Gameplay {
|
namespace Gameplay {
|
||||||
_PreciseMusic::_PreciseMusic(const std::string& path) {
|
_PreciseMusic::_PreciseMusic(const std::string& path) {
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include <stdexcept>
|
||||||
|
|
||||||
namespace Toolkit {
|
namespace Toolkit {
|
||||||
template<typename T>
|
template<typename T>
|
||||||
class AffineTransform {
|
class AffineTransform {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user