1
0
mirror of synced 2025-02-02 12:27:20 +01:00

#include <stdexcept> when using std::invalid_argument

This commit is contained in:
Stepland 2020-05-22 16:15:18 +02:00
parent a9776b53f8
commit 88321d3ff0
10 changed files with 14 additions and 0 deletions

View File

@ -1,5 +1,7 @@
#include "Chart.hpp" #include "Chart.hpp"
#include <stdexcept>
#include "../Toolkit/AffineTransform.hpp" #include "../Toolkit/AffineTransform.hpp"
namespace Data { namespace Data {

View File

@ -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>

View File

@ -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;

View File

@ -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)) {

View File

@ -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;

View File

@ -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>

View File

@ -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) {

View File

@ -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>();

View File

@ -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) {

View File

@ -1,5 +1,7 @@
#pragma once #pragma once
#include <stdexcept>
namespace Toolkit { namespace Toolkit {
template<typename T> template<typename T>
class AffineTransform { class AffineTransform {