mirror of
https://github.com/clangen/musikcube.git
synced 2025-01-08 12:40:28 +00:00
Let's put the stderr log in the data dir.
This commit is contained in:
parent
6cd3614641
commit
ed737daa58
@ -104,20 +104,14 @@ int main(int argc, char* argv[]) {
|
|||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
musik::core::RemoveOldDlls();
|
musik::core::RemoveOldDlls();
|
||||||
AddDllDirectory(u8to16(musik::core::GetPluginDirectory()).c_str());
|
AddDllDirectory(u8to16(musik::core::GetPluginDirectory()).c_str());
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef WIN32
|
|
||||||
#if 1 /*DEBUG*/
|
|
||||||
freopen("/tmp/musikcube_error.log", "w", stderr);
|
|
||||||
#else
|
|
||||||
freopen("/dev/null", "w", stderr);
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef __PDCURSES__
|
#ifdef __PDCURSES__
|
||||||
PDC_set_resize_limits(MIN_HEIGHT, 1000, MIN_WIDTH, 1000);
|
PDC_set_resize_limits(MIN_HEIGHT, 1000, MIN_WIDTH, 1000);
|
||||||
resize_term(26, 100); /* must be before app init */
|
resize_term(26, 100); /* must be before app init */
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
std::string errorFn = musik::core::GetDataDirectory() + "stderr.txt";
|
||||||
|
freopen(errorFn.c_str(), "w", stderr);
|
||||||
|
|
||||||
musik::core::MigrateOldDataDirectory();
|
musik::core::MigrateOldDataDirectory();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user