Skip to content

Commit

Permalink
altdialogue fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ThirteenAG committed Jan 28, 2024
1 parent e054ba5 commit a5e642a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 13 deletions.
3 changes: 0 additions & 3 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
*.ixx linguist-language=C++
*.hxx linguist-language=C++

# Auto detect text files and perform LF normalization
* text=auto
18 changes: 9 additions & 9 deletions source/altdialogue.ixx
Original file line number Diff line number Diff line change
Expand Up @@ -191,14 +191,14 @@ std::vector<std::vector<std::tuple<std::string_view, uint32_t>>> gAltDialogueVar
{ "bulgarin2", 42939 },
{ "bulgarin2", 42940 },
{ "bulgarin2", 42927 },
{ "rocco1", 43704 },
{ "rocco1", 43671 },
{ "tony1", 43701 },
{ "tony1", 43708 },
{ "tony1", 43706 },
{ "tony1", 43703 },
{ "tony1", 43707 },
{ "tony1", 43705 },
//{ "rocco1", 43704 }, // conflicts with drink.sco
//{ "rocco1", 43671 },
//{ "tony1", 43701 },
//{ "tony1", 43708 },
//{ "tony1", 43706 },
//{ "tony1", 43703 },
//{ "tony1", 43707 },
//{ "tony1", 43705 },
{ "tony10", 43694 },
{ "tony10", 43695 },
{ "tony11", 43672 },
Expand Down Expand Up @@ -230,7 +230,7 @@ std::vector<std::vector<std::tuple<std::string_view, uint32_t>>> gAltDialogueVar
{ "tonym8", 43691 },
{ "yusuf2", 42910 },
{ "yusuf3", 43668 },
//{ "yusuf4", 42911 },
{ "yusuf4", 42911 },
}
};

Expand Down
3 changes: 2 additions & 1 deletion source/comvars.ixx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ public:
fTimeStep = *pattern.get_first<float*>(4);

pattern = hook::pattern("BE ? ? ? ? 8D 44 24 0C 50 8D 46 10 50");
pCGameConfigReader__ms_imgFiles = *pattern.get_first<decltype(pCGameConfigReader__ms_imgFiles)>(1);
if (!pattern.empty())
pCGameConfigReader__ms_imgFiles = *pattern.get_first<decltype(pCGameConfigReader__ms_imgFiles)>(1);

pattern = hook::pattern("A1 ? ? ? ? 83 F8 08 74 05");
CCutscenes__m_dwCutsceneState = *pattern.get_first<uint32_t*>(1);
Expand Down

0 comments on commit a5e642a

Please sign in to comment.