Skip to content

Commit ed16937

Browse files
committed
Changed structure of solution.
1 parent 4729a76 commit ed16937

13 files changed

+18
-14
lines changed

.gitignore

+1-3
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,4 @@ paket-files/
260260
__pycache__/
261261
*.pyc
262262

263-
# Custom
264-
/QTRHacker_History
265-
/Images
263+
# Custom

README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ All releases: https://github.com/ZQiu233/QTRHackerUpdatesHistory/tree/master/Upd
1515
3. Ctrl + F5
1616

1717
## Screenshots
18-
![](./Screenshots/1.png)
19-
![](./Screenshots/2.png)
20-
![](./Screenshots/3.png)
21-
![](./Screenshots/4.png)
22-
![](./Screenshots/5.png)
23-
![](./Screenshots/6.png)
24-
![](./Screenshots/7.png)
18+
![](./screenshots/1.png)
19+
![](./screenshots/2.png)
20+
![](./screenshots/3.png)
21+
![](./screenshots/4.png)
22+
![](./screenshots/5.png)
23+
![](./screenshots/6.png)
24+
![](./screenshots/7.png)
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/QHackCLR/DacHelpers.h

+7-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ static String^ name(ISOSDacInterface* SOSDac, CLRDATA_ADDRESS addrName) {\
3535
{
3636
IXCLRDataModule* dataModule;
3737
SOSDac->GetModule(module, &dataModule);
38-
IMetaDataImport* result;
38+
IMetaDataImport* result = nullptr;
3939
dataModule->QueryInterface(IID_IMetaDataImport, (void**)&result);
4040
return result;
4141
}
@@ -46,6 +46,8 @@ static String^ name(ISOSDacInterface* SOSDac, CLRDATA_ADDRESS addrName) {\
4646
SOSDac->GetAppDomainStoreData(&adsData);
4747

4848
unsigned int needed = adsData.DomainCount;
49+
if (needed == 0)
50+
return Array::Empty<CLRDATA_ADDRESS>();
4951
array<CLRDATA_ADDRESS>^ buffer = gcnew array<CLRDATA_ADDRESS>(needed);
5052
pin_ptr<CLRDATA_ADDRESS> ptr = &buffer[0];
5153
SOSDac->GetAppDomainList(needed, static_cast<CLRDATA_ADDRESS*>(ptr), &needed);
@@ -57,6 +59,8 @@ static String^ name(ISOSDacInterface* SOSDac, CLRDATA_ADDRESS addrName) {\
5759
SOSDac->GetAppDomainData(appDomain, &data);
5860

5961
int needed = data.AssemblyCount;
62+
if (needed == 0)
63+
return Array::Empty<CLRDATA_ADDRESS>();
6064
array<CLRDATA_ADDRESS>^ buffer = gcnew array<CLRDATA_ADDRESS>(needed);
6165
pin_ptr<CLRDATA_ADDRESS> ptr = &buffer[0];
6266
SOSDac->GetAssemblyList(appDomain, needed, static_cast<CLRDATA_ADDRESS*>(ptr), &needed);
@@ -68,6 +72,8 @@ static String^ name(ISOSDacInterface* SOSDac, CLRDATA_ADDRESS addrName) {\
6872
SOSDac->GetAssemblyData(appDomain, assembly, &data);
6973

7074
unsigned int needed = data.ModuleCount;
75+
if (needed == 0)
76+
return Array::Empty<CLRDATA_ADDRESS>();
7177
array<CLRDATA_ADDRESS>^ buffer = gcnew array<CLRDATA_ADDRESS>(needed);
7278
pin_ptr<CLRDATA_ADDRESS> ptr = &buffer[0];
7379
SOSDac->GetAssemblyModuleList(assembly, needed, static_cast<CLRDATA_ADDRESS*>(ptr), &needed);

src/QTRHacker.Patches/QTRHacker.Patches.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@
3737
<CopyLocal>False</CopyLocal>
3838
</Reference>
3939
<Reference Include="ReLogic">
40-
<HintPath>$(SolutionDir)GameRefs\ReLogic.dll</HintPath>
40+
<HintPath>$(SolutionDir)gamerefs\ReLogic.dll</HintPath>
4141
<CopyLocal>False</CopyLocal>
4242
</Reference>
4343
<Reference Include="Terraria">
44-
<HintPath>$(SolutionDir)GameRefs\Terraria.exe</HintPath>
44+
<HintPath>$(SolutionDir)gamerefs\Terraria.exe</HintPath>
4545
<CopyLocal>False</CopyLocal>
4646
</Reference>
4747
</ItemGroup>

src/QTRHacker/QTRHacker.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
</PropertyGroup>
3131

3232
<ItemGroup>
33-
<None Include="$(SolutionDir)Content\**" CopyToOutputDirectory="PreserveNewest" LinkBase="Content\" />
33+
<None Include="$(SolutionDir)res\**" CopyToOutputDirectory="PreserveNewest" Visible="false" />
3434
</ItemGroup>
3535

3636
<ItemGroup>

0 commit comments

Comments
 (0)