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