Skip to content

Commit

Permalink
Updated TestSkyLoad with Utumno's changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Sharlikran committed Jan 26, 2014
1 parent bdf3351 commit 180d377
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 9 deletions.
Binary file modified TestSkyLoad.suo
Binary file not shown.
31 changes: 22 additions & 9 deletions TestSkyLoad/TestSkyLoad.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,19 @@ typedef std::unordered_map<srrectype_t, subrecordinfo_t> CSubrecordInfoMap;

typedef std::unordered_map<srrectype_t, int> CSubrecordCountMap;

namespace std { // utumno: total hack
// see: http://stackoverflow.com/a/18548760/281545
template <>
struct hash<srrectype_t>
{
typedef srrectype_t argument_type;
typedef std::size_t result_type;
std::size_t operator()(srrectype_t key) const {
return key.Value;
}
};
}

struct recordinfo_t
{
srrectype_t Type;
Expand All @@ -56,7 +69,7 @@ struct recordinfo_t
dword MaxSize;
dword MinVersion;
dword MaxVersion;

CSubrecordInfoMap SubrecordInfos;

recordinfo_t()
Expand Down Expand Up @@ -408,25 +421,25 @@ int _tmain(int argc, _TCHAR* argv[])
SystemLog.Open("testload.log");


//Strings1.Load("D:\\Steam\\steamapps\\common\\skyrim\\Data\\Strings\\Skyrim_english.DLSTRINGS");
//Strings2.Load("D:\\Steam\\steamapps\\common\\skyrim\\Data\\Strings\\Skyrim_english.ILSTRINGS");
//Strings3.Load("D:\\Steam\\steamapps\\common\\skyrim\\Data\\Strings\\Skyrim_english.STRINGS");
//Strings1.Load("C:\\Games\\Steam\\SteamApps\\common\\Skyrim\\Data\\Strings\\Skyrim_english.DLSTRINGS");
//Strings2.Load("C:\\Games\\Steam\\SteamApps\\common\\Skyrim\\Data\\Strings\\Skyrim_english.ILSTRINGS");
//Strings3.Load("C:\\Games\\Steam\\SteamApps\\common\\Skyrim\\Data\\Strings\\Skyrim_english.STRINGS");

//Strings1.Dump();
//Strings2.Dump();
//Strings3.Dump();

printf("Loading file...\n");
TestFile1.Load("D:\\Steam\\steamapps\\common\\skyrim\\Data\\Skyrim.esm");
//TestFile.GetEspFile().Save("D:\\Steam\\steamapps\\common\\skyrim\\Data\\Skyrim-2.esm");
TestFile1.Load("C:\\Games\\Steam\\SteamApps\\common\\Skyrim\\Data\\Update.esm");
//TestFile.GetEspFile().Save("C:\\Games\\Steam\\SteamApps\\common\\Skyrim\\Data\\Skyrim-2.esm");
GatherTopLevelInfos(TestFile1);
DumpRecordInfos();
//DumpRecordInfos1();

//CreateRawClasses("d:\\temp\\classes\\");
//CreateRawClasses("C:\\temp\\classes\\");

//BsaFile.Load("D:\\Steam\\steamapps\\common\\skyrim\\Data\\skyrim - animations.bsa");
//BsaFile.Save("D:\\Steam\\steamapps\\common\\skyrim\\Data\\skyrim - animations1.bsa");
//BsaFile.Load("C:\\Games\\Steam\\SteamApps\\common\\Skyrim\\Data\\skyrim - animations.bsa");
//BsaFile.Save("C:\\Games\\Steam\\SteamApps\\common\\Skyrim\\Data\\skyrim - animations1.bsa");

return 0;
}
Expand Down
24 changes: 24 additions & 0 deletions TestSkyLoad/TestSkyLoad.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -959,6 +959,9 @@
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">NotUsing</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">NotUsing</PrecompiledHeader>
</ClCompile>
<ClCompile Include="..\..\Tes5Lib\modfile\subrecords\srepfdsubrecord.cpp">
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">NotUsing</PrecompiledHeader>
</ClCompile>
<ClCompile Include="..\..\tes5lib\modfile\subrecords\srformidarraysubrecord.cpp">
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">NotUsing</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">NotUsing</PrecompiledHeader>
Expand All @@ -975,6 +978,15 @@
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">NotUsing</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">NotUsing</PrecompiledHeader>
</ClCompile>
<ClCompile Include="..\..\Tes5Lib\modfile\subrecords\srmgefsnddsubrecord.cpp">
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">NotUsing</PrecompiledHeader>
</ClCompile>
<ClCompile Include="..\..\Tes5Lib\modfile\subrecords\srperkdatasubrecord.cpp">
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">NotUsing</PrecompiledHeader>
</ClCompile>
<ClCompile Include="..\..\Tes5Lib\modfile\subrecords\srspitsubrecord.cpp">
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">NotUsing</PrecompiledHeader>
</ClCompile>
<ClCompile Include="..\..\tes5lib\modfile\subrecords\srstringsubrecord.cpp">
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">NotUsing</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">NotUsing</PrecompiledHeader>
Expand All @@ -987,6 +999,18 @@
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">NotUsing</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">NotUsing</PrecompiledHeader>
</ClCompile>
<ClCompile Include="..\..\Tes5Lib\modfile\subrecords\SrVmadSubrecord.cpp">
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">NotUsing</PrecompiledHeader>
</ClCompile>
<ClCompile Include="..\..\Tes5Lib\scripts\SrScriptFile.cpp">
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">NotUsing</PrecompiledHeader>
</ClCompile>
<ClCompile Include="..\..\Tes5Lib\scripts\SrScriptFile_Token.cpp">
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">NotUsing</PrecompiledHeader>
</ClCompile>
<ClCompile Include="..\..\Tes5Lib\scripts\SrScriptRecord.cpp">
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">NotUsing</PrecompiledHeader>
</ClCompile>
<ClCompile Include="..\..\tes5lib\strings\SrStringFile.cpp">
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">NotUsing</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">NotUsing</PrecompiledHeader>
Expand Down

0 comments on commit 180d377

Please sign in to comment.