mirror of
https://github.com/PrimeDecomp/prime.git
synced 2025-08-09 14:59:08 +00:00
Quick reformat
This commit is contained in:
parent
292dfa1eea
commit
85aad63173
@ -7,8 +7,7 @@
|
|||||||
|
|
||||||
static FourCC mCurrentLanguage = 'ENGL';
|
static FourCC mCurrentLanguage = 'ENGL';
|
||||||
|
|
||||||
CStringTable::CStringTable(CInputStream& in)
|
CStringTable::CStringTable(CInputStream& in) : x0_stringCount(0), x4_data(NULL) {
|
||||||
: x0_stringCount(0), x4_data(NULL) {
|
|
||||||
in.ReadLong();
|
in.ReadLong();
|
||||||
in.ReadLong();
|
in.ReadLong();
|
||||||
size_t langCount = in.Get< size_t >();
|
size_t langCount = in.Get< size_t >();
|
||||||
|
@ -82,8 +82,7 @@ void CMain::ResetGameState() {
|
|||||||
gpGameState->SystemOptions() = persistentOptions;
|
gpGameState->SystemOptions() = persistentOptions;
|
||||||
gpGameState->GameOptions() = gameOptions;
|
gpGameState->GameOptions() = gameOptions;
|
||||||
gpGameState->GameOptions().EnsureOptions();
|
gpGameState->GameOptions().EnsureOptions();
|
||||||
gpGameState->PlayerState()->SetIsFusionEnabled(
|
gpGameState->PlayerState()->SetIsFusionEnabled(gpGameState->SystemOptions().GetHasFusion());
|
||||||
gpGameState->SystemOptions().GetHasFusion());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 800044A4
|
// 800044A4
|
||||||
@ -92,8 +91,7 @@ void CMain::StreamNewGameState(CInputStream& in, int saveIdx) {
|
|||||||
x128_gameGlobalObjects->SetGameState(nullptr);
|
x128_gameGlobalObjects->SetGameState(nullptr);
|
||||||
x128_gameGlobalObjects->SetGameState(new CGameState(in, saveIdx));
|
x128_gameGlobalObjects->SetGameState(new CGameState(in, saveIdx));
|
||||||
gpGameState->SystemOptions().SetHasFusion(hasFusion);
|
gpGameState->SystemOptions().SetHasFusion(hasFusion);
|
||||||
gpGameState->PlayerState()->SetIsFusionEnabled(
|
gpGameState->PlayerState()->SetIsFusionEnabled(gpGameState->SystemOptions().GetHasFusion());
|
||||||
gpGameState->SystemOptions().GetHasFusion());
|
|
||||||
gpGameState->HintOptions().SetHintNextTime();
|
gpGameState->HintOptions().SetHintNextTime();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -106,8 +104,7 @@ void CMain::RefreshGameState() {
|
|||||||
CGameOptions gameOptions = gpGameState->GameOptions();
|
CGameOptions gameOptions = gpGameState->GameOptions();
|
||||||
x128_gameGlobalObjects->SetGameState(nullptr);
|
x128_gameGlobalObjects->SetGameState(nullptr);
|
||||||
{
|
{
|
||||||
CMemoryInStream stream(backupBuf.data(), backupBuf.size(),
|
CMemoryInStream stream(backupBuf.data(), backupBuf.size(), CMemoryInStream::Owned);
|
||||||
CMemoryInStream::Owned);
|
|
||||||
x128_gameGlobalObjects->SetGameState(new CGameState(stream, saveIdx));
|
x128_gameGlobalObjects->SetGameState(new CGameState(stream, saveIdx));
|
||||||
}
|
}
|
||||||
// gpGameState = x128_gameGlobalObjects->x134_gameState.get();
|
// gpGameState = x128_gameGlobalObjects->x134_gameState.get();
|
||||||
@ -115,8 +112,7 @@ void CMain::RefreshGameState() {
|
|||||||
gpGameState->GameOptions() = gameOptions;
|
gpGameState->GameOptions() = gameOptions;
|
||||||
gpGameState->GameOptions().EnsureOptions();
|
gpGameState->GameOptions().EnsureOptions();
|
||||||
gpGameState->CardSerial() = cardSerial;
|
gpGameState->CardSerial() = cardSerial;
|
||||||
gpGameState->PlayerState()->SetIsFusionEnabled(
|
gpGameState->PlayerState()->SetIsFusionEnabled(gpGameState->SystemOptions().GetHasFusion());
|
||||||
gpGameState->SystemOptions().GetHasFusion());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 8000487C
|
// 8000487C
|
||||||
@ -135,10 +131,7 @@ void CMain::AddWorldPaks() {
|
|||||||
rstl::rmemory_allocator allocator;
|
rstl::rmemory_allocator allocator;
|
||||||
rstl::string basePath = gpTweakGame->GetWorldPrefix();
|
rstl::string basePath = gpTweakGame->GetWorldPrefix();
|
||||||
for (int i = 0; i < 9; ++i) {
|
for (int i = 0; i < 9; ++i) {
|
||||||
rstl::string pak =
|
rstl::string pak = basePath + (i == 0 ? rstl::string_l("") : rstl::string(CBasics::Stringize("%d", i), -1, allocator));
|
||||||
basePath +
|
|
||||||
(i == 0 ? rstl::string_l("")
|
|
||||||
: rstl::string(CBasics::Stringize("%d", i), -1, allocator));
|
|
||||||
if (CDvdFile::FileExists((pak + rstl::string_l(".pak")).data())) {
|
if (CDvdFile::FileExists((pak + rstl::string_l(".pak")).data())) {
|
||||||
gpResourceFactory->GetResLoader().AddPakFileAsync(pak, false, true);
|
gpResourceFactory->GetResLoader().AddPakFileAsync(pak, false, true);
|
||||||
}
|
}
|
||||||
@ -174,8 +167,7 @@ int CMain::RsMain(int argc, char** argv) {
|
|||||||
CStopwatch timer;
|
CStopwatch timer;
|
||||||
LCEnable();
|
LCEnable();
|
||||||
|
|
||||||
rstl::single_ptr< CGameGlobalObjects > gameGlobalObjects(
|
rstl::single_ptr< CGameGlobalObjects > gameGlobalObjects(new CGameGlobalObjects(x0_osContext, x6d_memorySys));
|
||||||
new CGameGlobalObjects(x0_osContext, x6d_memorySys));
|
|
||||||
x128_gameGlobalObjects = gameGlobalObjects.get();
|
x128_gameGlobalObjects = gameGlobalObjects.get();
|
||||||
|
|
||||||
for (int i = 0; i < 4; ++i) {
|
for (int i = 0; i < 4; ++i) {
|
||||||
@ -203,8 +195,7 @@ int CMain::RsMain(int argc, char** argv) {
|
|||||||
|
|
||||||
FillInAssetIDs();
|
FillInAssetIDs();
|
||||||
|
|
||||||
rstl::single_ptr< CGameArchitectureSupport > archSupport(
|
rstl::single_ptr< CGameArchitectureSupport > archSupport(new CGameArchitectureSupport(x0_osContext));
|
||||||
new CGameArchitectureSupport(x0_osContext));
|
|
||||||
x164_ = archSupport.get();
|
x164_ = archSupport.get();
|
||||||
archSupport->PreloadAudio();
|
archSupport->PreloadAudio();
|
||||||
|
|
||||||
@ -222,8 +213,7 @@ int CMain::RsMain(int argc, char** argv) {
|
|||||||
while (!x160_24_finished) {
|
while (!x160_24_finished) {
|
||||||
archSupport->GetStopwatch2().Reset();
|
archSupport->GetStopwatch2().Reset();
|
||||||
gpResourceFactory->GetResLoader().AsyncIdlePakLoading();
|
gpResourceFactory->GetResLoader().AsyncIdlePakLoading();
|
||||||
if (gpMemoryCard == nullptr &&
|
if (gpMemoryCard == nullptr && gpResourceFactory->GetResLoader().AreAllPaksLoaded()) {
|
||||||
gpResourceFactory->GetResLoader().AreAllPaksLoaded()) {
|
|
||||||
MemoryCardInitializePump();
|
MemoryCardInitializePump();
|
||||||
}
|
}
|
||||||
CARAMManager::CollectGarbage();
|
CARAMManager::CollectGarbage();
|
||||||
@ -291,8 +281,7 @@ int CMain::RsMain(int argc, char** argv) {
|
|||||||
sub_8036ccfc();
|
sub_8036ccfc();
|
||||||
|
|
||||||
archSupport = nullptr;
|
archSupport = nullptr;
|
||||||
CGameArchitectureSupport* tmp =
|
CGameArchitectureSupport* tmp = new CGameArchitectureSupport(x0_osContext);
|
||||||
new CGameArchitectureSupport(x0_osContext);
|
|
||||||
archSupport = tmp;
|
archSupport = tmp;
|
||||||
x164_ = archSupport.get();
|
x164_ = archSupport.get();
|
||||||
tmp->PreloadAudio();
|
tmp->PreloadAudio();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user