- changed path for prj files to /home/jens/.rbm
git-svn-id: http://moon:8086/svn/software/trunk/projects/RBM@362 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
@@ -20,6 +20,9 @@
|
|||||||
//[Headers] You can add your own extra header files here...
|
//[Headers] You can add your own extra header files here...
|
||||||
//[/Headers]
|
//[/Headers]
|
||||||
|
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <pwd.h>
|
||||||
#include "MainComponent.h"
|
#include "MainComponent.h"
|
||||||
|
|
||||||
|
|
||||||
@@ -817,7 +820,7 @@ void MainComponent::save ()
|
|||||||
|
|
||||||
void MainComponent::create(juce::String const &projectName)
|
void MainComponent::create(juce::String const &projectName)
|
||||||
{
|
{
|
||||||
size_t id = m_rbmSelect->getSelectedId()-1;
|
int id = m_rbmSelect->getSelectedId()-1;
|
||||||
bool shouldAddItem = true;
|
bool shouldAddItem = true;
|
||||||
if (id == 0)
|
if (id == 0)
|
||||||
{
|
{
|
||||||
@@ -868,7 +871,12 @@ void MainComponent::destroy()
|
|||||||
|
|
||||||
const juce::String& MainComponent::getBaseDir()
|
const juce::String& MainComponent::getBaseDir()
|
||||||
{
|
{
|
||||||
m_baseDir = String("./") + projectNameLabel->getText();
|
struct passwd *pw = getpwuid(getuid());
|
||||||
|
|
||||||
|
const char *homedir = pw->pw_dir;
|
||||||
|
|
||||||
|
|
||||||
|
m_baseDir = String(homedir) + String("/.rbm/") + projectNameLabel->getText();
|
||||||
|
|
||||||
return m_baseDir;
|
return m_baseDir;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user