diff options
| author | StapleButter <thetotalworm@gmail.com> | 2018-09-15 02:32:13 +0200 | 
|---|---|---|
| committer | StapleButter <thetotalworm@gmail.com> | 2018-09-15 02:32:13 +0200 | 
| commit | fea79556757d01450826cbbaca888885e5d409cd (patch) | |
| tree | ced3144eeee28eedf497cd211769a226f74e8b84 /src/libui_sdl/main.cpp | |
| parent | 1d19145983069c622b72acfc5528eff3cef4f5f0 (diff) | |
fixor copyright years.
Diffstat (limited to 'src/libui_sdl/main.cpp')
| -rw-r--r-- | src/libui_sdl/main.cpp | 44 | 
1 files changed, 43 insertions, 1 deletions
| diff --git a/src/libui_sdl/main.cpp b/src/libui_sdl/main.cpp index 6736fbc..873d95a 100644 --- a/src/libui_sdl/main.cpp +++ b/src/libui_sdl/main.cpp @@ -1,5 +1,5 @@  /* -    Copyright 2016-2017 StapleButter +    Copyright 2016-2019 StapleButter      This file is part of melonDS. @@ -37,6 +37,8 @@  #include "../Platform.h"  #include "../Config.h" +#include "../Savestate.h" +  const int kScreenRot[4] = {0, 1, 2, 3};  const int kScreenGap[6] = {0, 1, 8, 64, 90, 128}; @@ -1046,6 +1048,46 @@ int main(int argc, char** argv)          return 1;      } +    // TESTORZ + +    u32 zab = 12; +    u16 zib = 18; +    u8 zob = 9; +    u32 zub = 42; + +    Savestate* dorp = new Savestate("dorp.zog", true); +    dorp->Section("BAKA"); +    dorp->Var32(&zab); +    dorp->Var8(&zob); +    dorp->Section("SHIT"); +    dorp->Var16(&zib); +    dorp->Var32(&zub); +    delete dorp; + +    zab = 0; zib = 0; zob = 0; zub = 0; +    dorp = new Savestate("dorp.zog", false); +    dorp->Section("BAKA"); +    dorp->Var32(&zab); +    dorp->Var8(&zob); +    dorp->Section("SHIT"); +    dorp->Var16(&zib); +    dorp->Var32(&zub); +    delete dorp; +    printf("-> %d %d %d %d\n", zab, zib, zob, zub); + +    zab = 0; zib = 0; zob = 0; zub = 0; +    dorp = new Savestate("dorp.zog", false); +    dorp->Section("SHIT"); +    dorp->Var16(&zib); +    dorp->Var32(&zub); +    dorp->Section("BAKA"); +    dorp->Var32(&zab); +    dorp->Var8(&zob); +    delete dorp; +    printf("-> %d %d %d %d\n", zab, zib, zob, zub); + +    // TESTORZ END +      Config::Load();      if (!Config::HasConfigFile("bios7.bin") || !Config::HasConfigFile("bios9.bin") || !Config::HasConfigFile("firmware.bin")) |