Skip to content

Commit

Permalink
Public key is a resource in archive and should use ResourceExist()
Browse files Browse the repository at this point in the history
…function (#7859)

* public key is a reasource and should use resource exist function

* Revert "Auxiliary commit to revert individual files from 1d6d712"

This reverts commit 7aea7a73befd1bb9b96f08dd3dd4c046ed12097b.
  • Loading branch information
AGulev committed Aug 5, 2023
1 parent 36e67f2 commit d0b08c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine/resource/src/resource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ HFactory NewFactory(NewFactoryParams* params, const char* uri)
char public_key_path[DMPATH_MAX_PATH];
dmPath::Concat(app_path, BUNDLE_PUBLIC_KEY_FILENAME, public_key_path, DMPATH_MAX_PATH);

if (dmSys::Exists(public_key_path))
if (dmSys::ResourceExists(public_key_path))
{
factory->m_PublicKeyPath = strdup(public_key_path);
}
Expand Down

0 comments on commit d0b08c6

Please sign in to comment.