Browse Source

tags/2021-05-28
jules 18 years ago
parent
commit
f321759eff
5 changed files with 7 additions and 7 deletions
  1. +3
    -3
      extras/the jucer/src/model/jucer_BinaryResources.cpp
  2. +1
    -1
      extras/the jucer/src/model/jucer_BinaryResources.h
  3. +1
    -1
      extras/the jucer/src/model/jucer_JucerDocument.cpp
  4. +1
    -1
      extras/the jucer/src/templates/jucer_ComponentTemplate.cpp
  5. +1
    -1
      extras/the jucer/src/templates/jucer_ComponentTemplate.h

+ 3
- 3
extras/the jucer/src/model/jucer_BinaryResources.cpp View File

@@ -215,7 +215,7 @@ Image* BinaryResources::getImageFromCache (const String& name) const
return 0;
}
void BinaryResources::loadFromCpp (const String& cppFile)
void BinaryResources::loadFromCpp (const File& cppFileLocation, const String& cppFile)
{
StringArray cpp;
cpp.addLines (cppFile);
@@ -233,7 +233,7 @@ void BinaryResources::loadFromCpp (const String& cppFile)
const String resourceName (tokens[0]);
const int size = tokens[1].getIntValue();
const String originalFileName (tokens[2].unquoted());
const String originalFileName (cppFileLocation.getSiblingFile (tokens[2].unquoted()).getFullPathName());
jassert (resourceName.isNotEmpty() && size > 0);
@@ -302,7 +302,7 @@ void BinaryResources::fillInGeneratedCode (GeneratedCode& code) const
const MemoryBlock& mb = resources[i]->data;
defs << "// JUCER_RESOURCE: " << name << ", " << mb.getSize()
<< ", \"" << resources[i]->originalFilename << "\"\n";
<< ", \"" << File (resources[i]->originalFilename).getRelativePathFrom (code.document->getFile()) << "\"\n";
String line1;
line1 << "static const unsigned char resource_"


+ 1
- 1
extras/the jucer/src/model/jucer_BinaryResources.h View File

@@ -49,7 +49,7 @@ public:
const BinaryResources& operator= (const BinaryResources& other);
void loadFromCpp (const String& cpp);
void loadFromCpp (const File& cppFileLocation, const String& cpp);
//==============================================================================
struct BinaryResource


+ 1
- 1
extras/the jucer/src/model/jucer_JucerDocument.cpp View File

@@ -420,7 +420,7 @@ const String JucerDocument::loadDocument (const File& file)
const String cppFileString (cppFile.loadFileAsString());
resources.loadFromCpp (cppFileString);
resources.loadFromCpp (file, cppFileString);
XmlElement* const xml = pullMetaDataFromCppFile (cppFileString);


+ 1
- 1
extras/the jucer/src/templates/jucer_ComponentTemplate.cpp View File

@@ -9,7 +9,7 @@
the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded
and re-saved.
Jucer version: 1.10
Jucer version: 1.11
------------------------------------------------------------------------------


+ 1
- 1
extras/the jucer/src/templates/jucer_ComponentTemplate.h View File

@@ -9,7 +9,7 @@
the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded
and re-saved.
Jucer version: 1.10
Jucer version: 1.11
------------------------------------------------------------------------------


Loading…
Cancel
Save