mirror of
https://github.com/open-goal/jak-project
synced 2026-05-27 08:09:29 -04:00
db66ae4627
For example, `AppData/OpenGOAL/jak2/features/speedrun-categories.json`
is defined as such:
```json
[
{
"cheats": 0,
"completed_task": 0,
"continue_point_name": "",
"features": 0,
"forbidden_features": 992,
"name": "Gunless",
"secrets": 0
},
{
"cheats": 1,
"completed_task": 29,
"continue_point_name": "ctypal-shaft",
"features": 1024,
"forbidden_features": 0,
"name": "Turbo Jetboard - After Praxis 1",
"secrets": 0
}
]
```
> These entries can be created using the in-game menu as well.
https://github.com/open-goal/jak-project/assets/13153231/9b17a116-4aa9-40ad-b9f5-02b04e0ad4f3
---------
Co-authored-by: dallmeyer <2515356+dallmeyer@users.noreply.github.com>
57 lines
1.4 KiB
C++
57 lines
1.4 KiB
C++
#pragma once
|
|
|
|
#include <optional>
|
|
|
|
#include "common/common_types.h"
|
|
#include "common/sqlite/sqlite.h"
|
|
|
|
namespace jak2 {
|
|
void InitParms(int argc, const char* const* argv);
|
|
void InitIOP();
|
|
int InitMachine();
|
|
int ShutdownMachine();
|
|
void InitMachineScheme();
|
|
|
|
extern sqlite::SQLiteDatabase sql_db;
|
|
void initialize_sql_db();
|
|
sqlite::GenericResponse run_sql_query(const std::string& query);
|
|
|
|
struct MouseInfo {
|
|
// ((active symbol :offset-assert 4)
|
|
u32 active;
|
|
// (cursor basic :offset-assert 8)
|
|
u32 cursor;
|
|
// (valid symbol :offset-assert 12)
|
|
u32 valid;
|
|
// (id uint8 :offset-assert 16)
|
|
u8 id;
|
|
u8 pad;
|
|
// (status uint16 :offset-assert 18)
|
|
u16 status;
|
|
// (button0 uint16 :offset-assert 20)
|
|
u16 button0;
|
|
// (deltax int8 :offset-assert 22)
|
|
s8 deltax;
|
|
// (deltay int8 :offset-assert 23)
|
|
s8 deltay;
|
|
// (wheel uint8 :offset-assert 24)
|
|
u8 wheel;
|
|
u8 pad1[3];
|
|
// (change-time time-frame :offset-assert 32)
|
|
// (button0-abs uint32 3 :offset-assert 40)
|
|
// (button0-shadow-abs uint32 1 :offset-assert 52)
|
|
// (button0-rel uint32 3 :offset-assert 56)
|
|
// (pos vector 2 :inline :offset-assert 80)
|
|
u32 pad2[13];
|
|
// (posx float :offset 80)
|
|
float posx;
|
|
// (posy float :offset 84)
|
|
float posy;
|
|
// (oldposx float :offset 96 :do-not-decompile)
|
|
// (oldposy float :offset 100)
|
|
// (speedx float :offset 92)
|
|
// (speedy float :offset 108)
|
|
};
|
|
|
|
} // namespace jak2
|