Skip to content

Commit

Permalink
🤏 More small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
wobbier committed Aug 15, 2024
1 parent 3cc0e5b commit dfbcabd
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
1 change: 0 additions & 1 deletion Engine.sharpmake.cs
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,6 @@ public virtual void ConfigureAll(Solution.Configuration conf, CommonTarget targe
{
conf.AddProject<EntryPointGameProjectUWP>(target);
}
else
{
conf.AddProject<EntryPointGameProject>(target);
}
Expand Down
11 changes: 10 additions & 1 deletion Modules/Dementia/Source/Path.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

Path::Path( const std::string& InFile, bool Raw /*= false*/ )
{
OPTICK_CATEGORY( "Path", Optick::Category::IO);
OPTICK_CATEGORY( "Path", Optick::Category::IO );
std::string LocalPath;
#if USING( ME_PLATFORM_UWP )
size_t pos;
Expand Down Expand Up @@ -93,6 +93,15 @@ Path::Path( const std::string& InFile, bool Raw /*= false*/ )
LocalPath = "Engine/" + LocalPath;
Exists = true;
}
else
{
auto pos = FullPath.rfind( "Engine/Assets" );
if( pos != std::string::npos )
{
// Gross
FullPath.replace( pos, 13, "Assets" );
}
}
}
}
else
Expand Down
2 changes: 1 addition & 1 deletion Source/Cores/AudioCore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ bool AudioCore::OnEvent( const BaseEvent& InEvent )
auto sound = soundPath.GetLocalPath();
if( m_cachedSounds.find( sound.data() ) != m_cachedSounds.end() )
{
std::remove( sound.data() );
m_cachedSounds.erase( sound.data() );
//auto& source = m_cachedSounds[sound.data()] = MakeShared<AudioSource>( sound.data() );
//InitComponent( *source );
}
Expand Down
2 changes: 2 additions & 0 deletions Source/Resources/SoundResource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,13 @@ Sound::Sound( const Path& path, void* fmodSystem, bool isImmediate )

Sound::~Sound()
{
#if USING( ME_FMOD )
if( Handle )
{
Handle->release();
Handle = nullptr;
}
#endif
}

bool Sound::IsReady() const
Expand Down

0 comments on commit dfbcabd

Please sign in to comment.