feat: replace ArchiveFile with FolderFile for media asset loading
Replace the ArchiveFile-based media asset loading system with a new FolderFile implementation that reads files directly from a folder structure instead of from compressed .arc archives. This change simplifies asset management and eliminates the need for pre-packaged media archives. Key changes: - Added FolderFile class that indexes and reads files from a folder - Updated Consoles_App to use FolderFile instead of ArchiveFile - Modified CMake asset copy configuration to exclude platform-specific media folders instead of .arc files - Updated platform-specific media path references to point to folders instead of .arc files This enables easier development and debugging by allowing direct access to media files without requiring archive extraction or repackaging.
This commit is contained in:
@@ -4560,20 +4560,20 @@ void CMinecraftApp::loadMediaArchive()
|
||||
wstring mediapath = L"";
|
||||
|
||||
#ifdef __PS3__
|
||||
mediapath = L"Common\\Media\\MediaPS3.arc";
|
||||
mediapath = L"Common\\Media\\MediaPS3";
|
||||
#elif _WINDOWS64
|
||||
mediapath = L"Common\\Media\\MediaWindows64.arc";
|
||||
mediapath = L"Common\\Media\\MediaWindows64";
|
||||
#elif __ORBIS__
|
||||
mediapath = L"Common\\Media\\MediaOrbis.arc";
|
||||
mediapath = L"Common\\Media\\MediaOrbis";
|
||||
#elif _DURANGO
|
||||
mediapath = L"Common\\Media\\MediaDurango.arc";
|
||||
mediapath = L"Common\\Media\\MediaDurango";
|
||||
#elif __PSVITA__
|
||||
mediapath = L"Common\\Media\\MediaPSVita.arc";
|
||||
mediapath = L"Common\\Media\\MediaPSVita";
|
||||
#endif
|
||||
|
||||
if (!mediapath.empty())
|
||||
{
|
||||
m_mediaArchive = new ArchiveFile( File(mediapath) );
|
||||
m_mediaArchive = new FolderFile(mediapath);
|
||||
}
|
||||
#if 0
|
||||
string path = "Common\\media.arc";
|
||||
|
||||
Reference in New Issue
Block a user