mirror of https://github.com/odrling/Aegisub
Add some debug trace info.
Originally committed to SVN as r4418.
This commit is contained in:
parent
709718ffb6
commit
401560b190
|
@ -24,12 +24,14 @@
|
|||
#endif
|
||||
|
||||
#include "libaegisub/access.h"
|
||||
#include "libaegisub/log.h"
|
||||
#include "libaegisub/mru.h"
|
||||
#include "libaegisub/io.h"
|
||||
|
||||
namespace agi {
|
||||
|
||||
MRUManager::MRUManager(const std::string &config, const std::string &default_config): config_name(config) {
|
||||
LOG_D("agi/mru") << "Loading MRU List";
|
||||
|
||||
json::UnknownElement root;
|
||||
std::istream *stream;
|
||||
|
|
|
@ -25,12 +25,15 @@
|
|||
#endif
|
||||
|
||||
#include "libaegisub/io.h"
|
||||
#include "libaegisub/log.h"
|
||||
|
||||
#include "option_visit.h"
|
||||
|
||||
namespace agi {
|
||||
|
||||
Options::Options(const std::string &file, const std::string& default_config):
|
||||
config_file(file), config_default(default_config), config_loaded(false) {
|
||||
LOG_D("agi/options") << "New Options object";
|
||||
std::istringstream stream(default_config);
|
||||
LoadConfig(stream);
|
||||
}
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
#endif
|
||||
|
||||
#include "libaegisub/io.h"
|
||||
#include "libaegisub/log.h"
|
||||
#include "libaegisub/util.h"
|
||||
|
||||
|
||||
|
@ -34,6 +35,7 @@ namespace agi {
|
|||
namespace io {
|
||||
|
||||
std::ifstream* Open(const std::string &file) {
|
||||
LOG_D("agi/io/open/file") << file;
|
||||
acs::CheckFileRead(file);
|
||||
|
||||
std::ifstream *stream = new std::ifstream(file.c_str());
|
||||
|
@ -46,7 +48,7 @@ std::ifstream* Open(const std::string &file) {
|
|||
|
||||
|
||||
Save::Save(const std::string& file): file_name(file) {
|
||||
|
||||
LOG_D("agi/io/save/file") << file;
|
||||
const std::string pwd = util::DirName(file);
|
||||
|
||||
acs::CheckDirWrite(pwd.c_str());
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
#endif
|
||||
|
||||
#include "libaegisub/io.h"
|
||||
#include "libaegisub/log.h"
|
||||
#include "libaegisub/util.h"
|
||||
|
||||
|
||||
|
@ -34,6 +35,7 @@ namespace agi {
|
|||
namespace io {
|
||||
|
||||
std::ifstream* Open(const std::string &file) {
|
||||
LOG_D("agi/io/open/file") << file;
|
||||
acs::CheckFileRead(file);
|
||||
|
||||
std::ifstream *stream = new std::ifstream(file.c_str());
|
||||
|
@ -48,7 +50,7 @@ std::ifstream* Open(const std::string &file) {
|
|||
|
||||
|
||||
Save::Save(const std::string& file): file_name(file) {
|
||||
|
||||
LOG_D("agi/io/save/file") << file;
|
||||
const std::string pwd = util::DirName(file);
|
||||
|
||||
acs::CheckDirWrite(pwd.c_str());
|
||||
|
|
Loading…
Reference in New Issue