1
0
mirror of synced 2025-02-02 04:17:54 +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 <stdexcept>
#include "../Toolkit/AffineTransform.hpp"
namespace Data {

View File

@ -4,6 +4,7 @@
#include <fstream>
#include <iostream>
#include <list>
#include <stdexcept>
#include <memon/memon.hpp>

View File

@ -3,6 +3,7 @@
#include <algorithm>
#include <cassert>
#include <sstream>
#include <stdexcept>
namespace fs = ghc::filesystem;

View File

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

View File

@ -6,6 +6,7 @@
#include <functional>
#include <iostream>
#include <sstream>
#include <stdexcept>
namespace fs = ghc::filesystem;

View File

@ -1,6 +1,7 @@
#include "SplitSpriteSheet.hpp"
#include <sstream>
#include <stdexcept>
#include <SFML/Graphics/RenderTexture.hpp>

View File

@ -1,6 +1,7 @@
#include "SpriteSheet.hpp"
#include <sstream>
#include <stdexcept>
namespace Resources {
void from_json(const nlohmann::json& j, SpriteSheet& s) {

View File

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

View File

@ -1,6 +1,7 @@
#include "PreciseMusic.hpp"
#include <chrono>
#include <stdexcept>
namespace Gameplay {
_PreciseMusic::_PreciseMusic(const std::string& path) {

View File

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